@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.js CHANGED
@@ -2880,7 +2880,7 @@ const ElementQuery = react.forwardRef(function(props, ref) {
2880
2880
  }
2881
2881
  );
2882
2882
  });
2883
- 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);
2883
+ 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);
2884
2884
  class ErrorBoundary extends react.Component {
2885
2885
  constructor() {
2886
2886
  super(...arguments), __publicField(this, "state", { error: null });
@@ -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
  () => () => {