@sanity/ui 2.14.4-canary.0 → 2.14.4-canary.2
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/_chunks-cjs/_visual-editing.js +4 -4
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +4 -4
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_legacy/_visual-editing.esm.js +4 -4
- package/dist/_legacy/_visual-editing.esm.js.map +1 -1
- package/dist/index.esm.js +25 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/components/toast/toastProvider.tsx +24 -20
- package/src/core/constants.ts +2 -2
- package/src/core/hooks/useDelayedState.ts +1 -2
|
@@ -17,7 +17,7 @@ const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslT
|
|
|
17
17
|
opacity: 1,
|
|
18
18
|
transition: {
|
|
19
19
|
when: "beforeChildren",
|
|
20
|
-
duration: 0.
|
|
20
|
+
duration: 0.1
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
scaleIn: {
|
|
@@ -37,7 +37,7 @@ const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslT
|
|
|
37
37
|
},
|
|
38
38
|
transition: {
|
|
39
39
|
type: "spring",
|
|
40
|
-
visualDuration: 0.
|
|
40
|
+
visualDuration: 0.2,
|
|
41
41
|
bounce: 0.25
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -4407,9 +4407,9 @@ function useDelayedState(initialState) {
|
|
|
4407
4407
|
const action = () => {
|
|
4408
4408
|
setState(nextState);
|
|
4409
4409
|
};
|
|
4410
|
-
if (!delay)
|
|
4410
|
+
if (delayedAction.current && (clearTimeout(delayedAction.current), delayedAction.current = void 0), !delay)
|
|
4411
4411
|
return action();
|
|
4412
|
-
delayedAction.current
|
|
4412
|
+
delayedAction.current = setTimeout(action, delay);
|
|
4413
4413
|
}, $[0] = t0) : t0 = $[0];
|
|
4414
4414
|
const onStateChange = t0;
|
|
4415
4415
|
let t1;
|