sanity-plugin-cloudinary
2.1.32.1.4
dist/index.js~
dist/index.jsModified+4−4
Index: package/dist/index.js
===================================================================
--- package/dist/index.js
+++ package/dist/index.js
@@ -137,9 +137,9 @@
onClose: props.onClose
}), $[0] = props.onClose, $[1] = t0), t0;
}, Widget = styled.div.withConfig({
displayName: "Widget",
- componentId: "sc-o96p6o-0"
+ componentId: "sc-a9tl7n-0"
})`height:70vh;`;
function CloudinaryAssetSource(props) {
let $ = c(30), { onClose, dialogHeaderTitle } = props, [loadingMessage, setLoadingMessage] = useState("Loading Cloudinary Media Library"), library = useRef(void 0), contentRef = useRef(null), { secrets } = useSecrets(namespace), cloudName = secrets?.cloudName, apiKey = secrets?.apiKey, [widgetId] = useState(_temp$1), [showSettings, setShowSettings] = useState(!1), propsRef = useRef(props), t0, t1;
$[0] === props ? (t0 = $[1], t1 = $[2]) : (t0 = () => {
@@ -429,9 +429,9 @@
} else t1 = $[3];
if (t1 !== Symbol.for("react.early_return_sentinel")) return t1;
}, SetupButtonContainer = styled.div.withConfig({
displayName: "SetupButtonContainer",
- componentId: "sc-7cj258-0"
+ componentId: "sc-ipri01-0"
})`position:relative;display:block;font-size:0.8em;transform:translate(0%,-10%);`, WidgetInput = (props) => {
let $ = c(21), { onChange, readOnly, value, openMediaSelector } = props, t0;
$[0] === onChange ? t0 = $[1] : (t0 = () => {
onChange(PatchEvent.from([unset()]));
@@ -839,10 +839,10 @@
return;
}
setIsLoading(!0), fallbackTimerRef.current && clearTimeout(fallbackTimerRef.current);
try {
- openMediaSelector(cloudName, apiKey, !1, (payload_0) => {
- fallbackTimerRef.current &&= (clearTimeout(fallbackTimerRef.current), void 0), handleSelect(payload_0);
+ openMediaSelector(cloudName, apiKey, !1, (payload) => {
+ fallbackTimerRef.current &&= (clearTimeout(fallbackTimerRef.current), void 0), handleSelect(payload);
}, void 0, () => {
saveInProgressRef.current || setIsLoading(!1);
}, folderOption), fallbackTimerRef.current = setTimeout(() => {
saveInProgressRef.current || setIsLoading(!1);