@synerise/ds-toast 2.0.4 → 2.0.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.
- package/CHANGELOG.md +11 -0
- package/CLAUDE.md +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toast@2.0.4...@synerise/ds-toast@2.0.5) (2026-09-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** move test helpers to a ./testing subpath export ([b38cd82](https://github.com/Synerise/synerise-design/commit/b38cd82c956111d2331d5c1e0efd1935366f1139))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toast@2.0.3...@synerise/ds-toast@2.0.4) (2026-09-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-toast
|
package/CLAUDE.md
CHANGED
|
@@ -14,7 +14,7 @@ src/
|
|
|
14
14
|
removeToast.ts — Re-exports toast.remove from react-hot-toast (instant removal)
|
|
15
15
|
index.ts — Re-exports both utils
|
|
16
16
|
__specs__/
|
|
17
|
-
Toast.spec.tsx — Vitest tests (renderWithProvider + TOASTER_DEFAULTS from ds-core)
|
|
17
|
+
Toast.spec.tsx — Vitest tests (renderWithProvider from ds-core/testing + TOASTER_DEFAULTS from ds-core)
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Public exports
|
|
@@ -132,6 +132,6 @@ import Toast from '@synerise/ds-toast';
|
|
|
132
132
|
- `onDismiss` is fired from a `useEffect` cleanup (component unmount), not from the close click handler. It therefore fires for both manual dismissal and timeout expiry.
|
|
133
133
|
- `onCloseClick` fires first, then `toast.dismiss(toastId)` is called — both only if `toastId` is present.
|
|
134
134
|
- `Toast.error` maps to type `'negative'` (not `'error'`). There is no `'error'` type in `ToastType`.
|
|
135
|
-
- The Toaster must be mounted for imperative toasts to render. In tests this is done via `renderWithProvider(.., { toasterProps: TOASTER_DEFAULTS })` from `@synerise/ds-core`.
|
|
135
|
+
- The Toaster must be mounted for imperative toasts to render. In tests this is done via `renderWithProvider(.., { toasterProps: TOASTER_DEFAULTS })` — `renderWithProvider` from `@synerise/ds-core/testing`, `TOASTER_DEFAULTS` from `@synerise/ds-core`.
|
|
136
136
|
- Tests use **Jest** (not Vitest) — see `jest.config.js`.
|
|
137
137
|
- `FirstButtonWrapper` and `Wrapper` styled-components are exported from `dist/Toast.styles` (not from the package root) and used in Storybook stories for layout.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-toast",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Toast UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-icon": "^2.1.
|
|
46
|
-
"@synerise/ds-unordered-list": "^2.0.
|
|
47
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-icon": "^2.1.3",
|
|
46
|
+
"@synerise/ds-unordered-list": "^2.0.5",
|
|
47
|
+
"@synerise/ds-utils": "^2.2.0",
|
|
48
48
|
"react-hot-toast": "^2.6.0",
|
|
49
49
|
"uuid": "^8.3.2"
|
|
50
50
|
},
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"styled-components": "^5.3.3",
|
|
55
55
|
"vitest": "4"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "5e795fa4fd23f6b07277edb517a84bb9b5b6d256"
|
|
58
58
|
}
|