@geekapps/silo-elements-nextjs 0.2.66 → 0.2.68

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
@@ -801,7 +801,7 @@ function FileUploader({
801
801
  const result = await single.upload(file, {
802
802
  ...bucket !== void 0 && { bucket },
803
803
  image: effectiveImage,
804
- video: effectiveVideo,
804
+ video: effectiveVideo ? { ...effectiveVideo, ...captionLanguages?.length && { languages: captionLanguages } } : captionLanguages?.length ? { languages: captionLanguages } : effectiveVideo,
805
805
  ...isPrivate !== void 0 && { isPrivate }
806
806
  });
807
807
  if (result) onUpload?.(result);
@@ -1648,6 +1648,7 @@ function Video({
1648
1648
  const video = videoRef.current;
1649
1649
  let cancelled = false;
1650
1650
  if (!video || !activeSource) {
1651
+ setIsLoading(false);
1651
1652
  return;
1652
1653
  }
1653
1654
  destroyMediaEngines();