@sanity/ui 2.1.4-canary.0 → 2.1.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/dist/index.esm.js +1 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +37 -35
- package/src/core/components/dialog/dialog.tsx +2 -2
- package/src/core/components/toast/toastProvider.tsx +2 -4
- package/src/core/hooks/useDelayedState.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -6286,9 +6286,7 @@ function ToastProvider(props) {
|
|
|
6286
6286
|
id,
|
|
6287
6287
|
params: { ...params, duration }
|
|
6288
6288
|
}
|
|
6289
|
-
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = {
|
|
6290
|
-
timeoutId: setTimeout(dismiss, duration)
|
|
6291
|
-
}, id;
|
|
6289
|
+
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = { timeoutId: setTimeout(dismiss, duration) }, id;
|
|
6292
6290
|
} }), []);
|
|
6293
6291
|
return react.useEffect(
|
|
6294
6292
|
() => () => {
|