sanity-plugin-media 6.1.7 → 6.1.8
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 +15 -10
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -6356,27 +6356,32 @@ function createReduxStore(props) {
|
|
|
6356
6356
|
}
|
|
6357
6357
|
}
|
|
6358
6358
|
});
|
|
6359
|
-
|
|
6359
|
+
epicMiddleware.run((action$, state$, dependencies) => rootEpic(action$, state$, dependencies).pipe(takeUntil(action$.pipe(ofType(EPIC_END_TYPE)))));
|
|
6360
|
+
let pendingEnd = null;
|
|
6361
|
+
return {
|
|
6360
6362
|
store,
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
+
scheduleEnd: () => {
|
|
6364
|
+
pendingEnd === null && (pendingEnd = setTimeout(() => {
|
|
6365
|
+
pendingEnd = null, store.dispatch({ type: EPIC_END_TYPE });
|
|
6366
|
+
}, 0));
|
|
6367
|
+
},
|
|
6368
|
+
cancelEnd: () => {
|
|
6369
|
+
pendingEnd !== null && (clearTimeout(pendingEnd), pendingEnd = null);
|
|
6363
6370
|
}
|
|
6364
6371
|
};
|
|
6365
6372
|
}
|
|
6366
6373
|
function ReduxProvider(t0) {
|
|
6367
|
-
let $ = c(
|
|
6374
|
+
let $ = c(12), children, props;
|
|
6368
6375
|
$[0] === t0 ? (children = $[1], props = $[2]) : ({children, ...props} = t0, $[0] = t0, $[1] = children, $[2] = props);
|
|
6369
6376
|
let t1;
|
|
6370
6377
|
$[3] === props ? t1 = $[4] : (t1 = () => createReduxStore(props), $[3] = props, $[4] = t1);
|
|
6371
|
-
let [t2] = useState(t1), {
|
|
6372
|
-
$[5]
|
|
6373
|
-
endEpics();
|
|
6374
|
-
}, t4 = [endEpics], $[5] = endEpics, $[6] = t3, $[7] = t4), useEffect(t3, t4);
|
|
6378
|
+
let [t2] = useState(t1), { cancelEnd, scheduleEnd, store } = t2, t3, t4;
|
|
6379
|
+
$[5] !== cancelEnd || $[6] !== scheduleEnd ? (t3 = () => (cancelEnd(), () => scheduleEnd()), t4 = [cancelEnd, scheduleEnd], $[5] = cancelEnd, $[6] = scheduleEnd, $[7] = t3, $[8] = t4) : (t3 = $[7], t4 = $[8]), useEffect(t3, t4);
|
|
6375
6380
|
let t5;
|
|
6376
|
-
return $[
|
|
6381
|
+
return $[9] !== children || $[10] !== store ? (t5 = /* @__PURE__ */ jsx(Provider, {
|
|
6377
6382
|
store,
|
|
6378
6383
|
children
|
|
6379
|
-
}), $[
|
|
6384
|
+
}), $[9] = children, $[10] = store, $[11] = t5) : t5 = $[11], t5;
|
|
6380
6385
|
}
|
|
6381
6386
|
/**
|
|
6382
6387
|
* Fetches the already-selected asset into the store and opens the `assetEdit`
|