@sanity/ui 2.1.4-canary.0 → 2.1.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/dist/index.esm.js CHANGED
@@ -2883,7 +2883,7 @@ const ElementQuery = forwardRef(function(props, ref) {
2883
2883
  }
2884
2884
  );
2885
2885
  });
2886
- var __defProp = Object.defineProperty, __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key2] = value, __publicField = (obj, key2, value) => (__defNormalProp(obj, typeof key2 != "symbol" ? key2 + "" : key2, value), value);
2886
+ var __defProp = Object.defineProperty, __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key2] = value, __publicField = (obj, key2, value) => (__defNormalProp(obj, key2 + "", value), value);
2887
2887
  class ErrorBoundary extends Component {
2888
2888
  constructor() {
2889
2889
  super(...arguments), __publicField(this, "state", { error: null });
@@ -6289,9 +6289,7 @@ function ToastProvider(props) {
6289
6289
  id,
6290
6290
  params: { ...params, duration }
6291
6291
  }
6292
- ])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = {
6293
- timeoutId: setTimeout(dismiss, duration)
6294
- }, id;
6292
+ ])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = { timeoutId: setTimeout(dismiss, duration) }, id;
6295
6293
  } }), []);
6296
6294
  return useEffect(
6297
6295
  () => () => {