@glasshome/ui 1.21.2 → 1.22.0
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/dist/solid/sonner.d.ts +1 -0
- package/package.json +1 -1
- package/src/solid/sonner.tsx +1 -0
package/dist/solid/sonner.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ declare const toast: ((message: ToastMessage, data?: ExternalToast) => string |
|
|
|
25
25
|
warning: (message: ToastMessage, data?: ExternalToast) => string | number;
|
|
26
26
|
info: (message: ToastMessage, data?: ExternalToast) => string | number;
|
|
27
27
|
message: (message: ToastMessage, data?: ExternalToast) => string | number;
|
|
28
|
+
/** @deprecated Use `toast.promise`, which ends the loading toast when the promise settles. Removed in 2.0.0. */
|
|
28
29
|
loading: (message: ToastMessage, data?: ExternalToast) => string | number;
|
|
29
30
|
custom: (jsx: (id: number | string) => JSX.Element, data?: ExternalToast) => string | number;
|
|
30
31
|
dismiss: (id?: number | string) => string | number | undefined;
|
package/package.json
CHANGED
package/src/solid/sonner.tsx
CHANGED
|
@@ -176,6 +176,7 @@ const toast = Object.assign(
|
|
|
176
176
|
warning: show("warning"),
|
|
177
177
|
info: show("info"),
|
|
178
178
|
message: show("message"),
|
|
179
|
+
/** @deprecated Use `toast.promise`, which ends the loading toast when the promise settles. Removed in 2.0.0. */
|
|
179
180
|
loading: (message: ToastMessage, data: ExternalToast = {}) => {
|
|
180
181
|
const { description, icon, action, ...rest } = data;
|
|
181
182
|
return sonnerToast.custom(
|