@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
|
@@ -23,7 +23,7 @@ const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = h
|
|
|
23
23
|
opacity: 1,
|
|
24
24
|
transition: {
|
|
25
25
|
when: "beforeChildren",
|
|
26
|
-
duration: 0.
|
|
26
|
+
duration: 0.1
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
scaleIn: {
|
|
@@ -43,7 +43,7 @@ const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = h
|
|
|
43
43
|
},
|
|
44
44
|
transition: {
|
|
45
45
|
type: "spring",
|
|
46
|
-
visualDuration: 0.
|
|
46
|
+
visualDuration: 0.2,
|
|
47
47
|
bounce: 0.25
|
|
48
48
|
}
|
|
49
49
|
};
|
|
@@ -4411,9 +4411,9 @@ function useDelayedState(initialState) {
|
|
|
4411
4411
|
const action = () => {
|
|
4412
4412
|
setState(nextState);
|
|
4413
4413
|
};
|
|
4414
|
-
if (!delay)
|
|
4414
|
+
if (delayedAction.current && (clearTimeout(delayedAction.current), delayedAction.current = void 0), !delay)
|
|
4415
4415
|
return action();
|
|
4416
|
-
delayedAction.current
|
|
4416
|
+
delayedAction.current = setTimeout(action, delay);
|
|
4417
4417
|
}, $[0] = t0) : t0 = $[0];
|
|
4418
4418
|
const onStateChange = t0;
|
|
4419
4419
|
let t1;
|