sanity-plugin-mux-input 2.3.1 → 2.3.2

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.
Files changed (41) hide show
  1. package/lib/index.cjs +36 -25
  2. package/lib/index.cjs.map +1 -1
  3. package/lib/index.esm.js +14 -3
  4. package/lib/index.esm.js.map +1 -1
  5. package/lib/index.js +14 -3
  6. package/lib/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/ConfigureApi.styled.tsx +1 -2
  9. package/src/components/ConfigureApi.tsx +1 -0
  10. package/src/components/FileInputButton.tsx +1 -1
  11. package/src/components/FileInputMenuItem.styled.tsx +1 -1
  12. package/src/components/IconInfo.tsx +0 -1
  13. package/src/components/ImportVideosFromMux.tsx +2 -1
  14. package/src/components/Input.styled.tsx +0 -1
  15. package/src/components/InputBrowser.tsx +1 -1
  16. package/src/components/InputError.tsx +1 -1
  17. package/src/components/Player.styled.tsx +1 -1
  18. package/src/components/PlayerActionsMenu.tsx +3 -1
  19. package/src/components/SpinnerBox.tsx +0 -1
  20. package/src/components/StudioTool.tsx +2 -3
  21. package/src/components/UploadConfiguration.tsx +1 -0
  22. package/src/components/UploadPlaceholder.tsx +1 -1
  23. package/src/components/UploadProgress.tsx +1 -2
  24. package/src/components/Uploader.styled.tsx +1 -1
  25. package/src/components/VideoDetails/DeleteDialog.tsx +1 -0
  26. package/src/components/VideoDetails/VideoDetails.tsx +2 -0
  27. package/src/components/VideoDetails/VideoReferences.tsx +2 -3
  28. package/src/components/VideoInBrowser.tsx +2 -1
  29. package/src/components/VideoMetadata.tsx +1 -2
  30. package/src/components/VideoThumbnail.tsx +1 -1
  31. package/src/components/VideosBrowser.tsx +4 -4
  32. package/src/components/documentPreview/DraftStatus.tsx +1 -1
  33. package/src/components/documentPreview/MissingSchemaType.tsx +0 -1
  34. package/src/components/documentPreview/PaneItemPreview.tsx +5 -5
  35. package/src/components/documentPreview/PublishedStatus.tsx +1 -1
  36. package/src/components/documentPreview/TimeAgo.tsx +0 -1
  37. package/src/components/icons/Resolution.tsx +1 -1
  38. package/src/components/icons/StopWatch.tsx +1 -1
  39. package/src/components/icons/ToolIcon.tsx +0 -2
  40. package/src/components/withFocusRing/withFocusRing.ts +2 -2
  41. package/src/hooks/useImportMuxAssets.ts +2 -1
package/lib/index.js CHANGED
@@ -8,7 +8,7 @@ import toLower from "lodash/toLower.js";
8
8
  import trim from "lodash/trim.js";
9
9
  import uniq from "lodash/uniq.js";
10
10
  import words from "lodash/words.js";
11
- import styled, { css } from "styled-components";
11
+ import { styled, css } from "styled-components";
12
12
  import { uuid } from "@sanity/uuid";
13
13
  import { defer, timer, of, Observable, concat, throwError, from, Subject } from "rxjs";
14
14
  import { expand, concatMap, tap, switchMap, mergeMap, catchError, mergeMapTo, takeUntil } from "rxjs/operators";
@@ -540,6 +540,7 @@ function ImportVideosDialog(props) {
540
540
  return /* @__PURE__ */ jsx(
541
541
  Dialog,
542
542
  {
543
+ animate: !0,
543
544
  header: "Import videos from Mux",
544
545
  zOffset: DIALOGS_Z_INDEX,
545
546
  id: "video-details-dialog",
@@ -768,7 +769,7 @@ function getVideoSrc({ asset, client }) {
768
769
  }
769
770
  return `https://stream.mux.com/${playbackId}.m3u8?${searchParams}`;
770
771
  }
771
- var name = "sanity-plugin-mux-input", version = "2.3.1", description = "An input component that integrates Sanity Studio with Mux video encoding/hosting service.", keywords = [
772
+ var name = "sanity-plugin-mux-input", version = "2.3.2", description = "An input component that integrates Sanity Studio with Mux video encoding/hosting service.", keywords = [
772
773
  "sanity",
773
774
  "video",
774
775
  "mux",
@@ -1021,6 +1022,7 @@ function DraftStatus(props) {
1021
1022
  return /* @__PURE__ */ jsx(
1022
1023
  Tooltip,
1023
1024
  {
1025
+ animate: !0,
1024
1026
  portal: !0,
1025
1027
  content: /* @__PURE__ */ jsx(Box, { padding: 2, children: /* @__PURE__ */ jsx(Text, { size: 1, children: document2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1026
1028
  "Edited ",
@@ -1035,6 +1037,7 @@ function PublishedStatus(props) {
1035
1037
  return /* @__PURE__ */ jsx(
1036
1038
  Tooltip,
1037
1039
  {
1040
+ animate: !0,
1038
1041
  portal: !0,
1039
1042
  content: /* @__PURE__ */ jsx(Box, { padding: 2, children: /* @__PURE__ */ jsx(Text, { size: 1, children: document2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1040
1043
  "Published ",
@@ -1174,6 +1177,7 @@ function DeleteDialog({
1174
1177
  return /* @__PURE__ */ jsx(
1175
1178
  Dialog,
1176
1179
  {
1180
+ animate: !0,
1177
1181
  header: "Delete video",
1178
1182
  zOffset: DIALOGS_Z_INDEX,
1179
1183
  id: "deleting-video-details-dialog",
@@ -1369,6 +1373,7 @@ const AssetInput = (props) => /* @__PURE__ */ jsx(FormField$1, { title: props.la
1369
1373
  }, []), /* @__PURE__ */ jsxs(
1370
1374
  Dialog,
1371
1375
  {
1376
+ animate: !0,
1372
1377
  header: displayInfo.title,
1373
1378
  zOffset: DIALOGS_Z_INDEX,
1374
1379
  id: "video-details-dialog",
@@ -1422,6 +1427,7 @@ const AssetInput = (props) => /* @__PURE__ */ jsx(FormField$1, { title: props.la
1422
1427
  state === "closing" && /* @__PURE__ */ jsx(
1423
1428
  Dialog,
1424
1429
  {
1430
+ animate: !0,
1425
1431
  header: "You have unsaved changes",
1426
1432
  zOffset: DIALOGS_Z_INDEX,
1427
1433
  id: "closing-video-details-dialog",
@@ -1714,6 +1720,7 @@ function VideoInBrowser({
1714
1720
  playbackPolicy === "signed" && /* @__PURE__ */ jsx(
1715
1721
  Tooltip,
1716
1722
  {
1723
+ animate: !0,
1717
1724
  content: /* @__PURE__ */ jsx(Card, { padding: 2, radius: 2, children: /* @__PURE__ */ jsx(IconInfo, { icon: LockIcon, text: "Signed playback policy", size: 2 }) }),
1718
1725
  placement: "right",
1719
1726
  fallbackPlacements: ["top", "bottom"],
@@ -1797,7 +1804,7 @@ function VideoInBrowser({
1797
1804
  );
1798
1805
  }
1799
1806
  function VideosBrowser({ onSelect }) {
1800
- const { assets, isLoading, searchQuery, setSearchQuery, setSort, sort } = useAssets(), [editedAsset, setEditedAsset] = React.useState(null), freshEditedAsset = React.useMemo(
1807
+ const { assets, isLoading, searchQuery, setSearchQuery, setSort, sort } = useAssets(), [editedAsset, setEditedAsset] = useState(null), freshEditedAsset = useMemo(
1801
1808
  () => assets.find((a) => a._id === (editedAsset == null ? void 0 : editedAsset._id)) || editedAsset,
1802
1809
  [editedAsset, assets]
1803
1810
  ), placement = onSelect ? "input" : "tool";
@@ -2679,6 +2686,7 @@ function ConfigureApi({ secrets, setDialogState }) {
2679
2686
  }, [firstField]), /* @__PURE__ */ jsx(
2680
2687
  Dialog,
2681
2688
  {
2689
+ animate: !0,
2682
2690
  id,
2683
2691
  onClose: handleClose,
2684
2692
  header: /* @__PURE__ */ jsx(Header, {}),
@@ -3355,6 +3363,7 @@ function PlayerActionsMenu(props) {
3355
3363
  isSigned && /* @__PURE__ */ jsx(
3356
3364
  Tooltip,
3357
3365
  {
3366
+ animate: !0,
3358
3367
  content: /* @__PURE__ */ jsx(Box, { padding: 2, children: /* @__PURE__ */ jsx(Text, { muted: !0, size: 1, children: "Signed playback policy" }) }),
3359
3368
  placement: "right",
3360
3369
  portal: !0,
@@ -3364,6 +3373,7 @@ function PlayerActionsMenu(props) {
3364
3373
  /* @__PURE__ */ jsx(
3365
3374
  Popover,
3366
3375
  {
3376
+ animate: !0,
3367
3377
  content: /* @__PURE__ */ jsxs(Menu, { ref: setMenuRef, children: [
3368
3378
  /* @__PURE__ */ jsx(Box, { padding: 2, children: /* @__PURE__ */ jsx(Label$1, { muted: !0, size: 1, children: "Replace" }) }),
3369
3379
  /* @__PURE__ */ jsx(
@@ -3682,6 +3692,7 @@ function UploadConfiguration({
3682
3692
  return /* @__PURE__ */ jsx(
3683
3693
  Dialog,
3684
3694
  {
3695
+ animate: !0,
3685
3696
  open: !0,
3686
3697
  id: "upload-configuration",
3687
3698
  zOffset: 1e3,