sanity-plugin-mux-input 2.2.1 → 2.2.3

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/lib/index.js CHANGED
@@ -44,7 +44,7 @@ function tokenize(string) {
44
44
  function toGroqParams(terms) {
45
45
  const params = {};
46
46
  return terms.reduce((acc, term, i) => {
47
- acc["t".concat(i)] = "*".concat(term, "*");
47
+ acc["t".concat(i)] = "".concat(term, "*");
48
48
  return acc;
49
49
  }, params);
50
50
  }
@@ -61,7 +61,7 @@ function extractTermsFromQuery(query) {
61
61
  const remainingTerms = uniq(compact(tokenize(toLower(unquotedQuery))));
62
62
  return [...quotedTerms, ...remainingTerms];
63
63
  }
64
- const SEARCH_PATHS = ["filename", "assetId", "_id"];
64
+ const SEARCH_PATHS = ["filename"];
65
65
  function createConstraints(terms) {
66
66
  const constraints = terms.map((_term, i) => SEARCH_PATHS.map(joinedPath => "".concat(joinedPath, " match $t").concat(i))).filter(constraint => constraint.length > 0);
67
67
  return constraints.map(constraint => "(".concat(constraint.join(" || "), ")"));
@@ -101,9 +101,9 @@ const useAssetDocuments = createHookFromObservableFactory(_ref => {
101
101
  } = _ref;
102
102
  const search = createSearchFilter(searchQuery);
103
103
  const filter = ['_type == "mux.videoAsset"', ...search.filter].filter(Boolean).join(" && ");
104
- const query = ASSET_SORT_OPTIONS[sort].groq;
104
+ const sortFragment = ASSET_SORT_OPTIONS[sort].groq;
105
105
  return documentStore.listenQuery( /* groq */
106
- "*[".concat(filter, "] | order(").concat(query, ")"), search.params, {
106
+ "*[".concat(filter, "] | order(").concat(sortFragment, ")"), search.params, {
107
107
  apiVersion: SANITY_API_VERSION
108
108
  });
109
109
  });
@@ -182,7 +182,7 @@ const cacheNs = "sanity-plugin-mux-input";
182
182
  const muxSecretsDocumentId = "secrets.mux";
183
183
  const DIALOGS_Z_INDEX = 6e4;
184
184
  const THUMBNAIL_ASPECT_RATIO = 16 / 9;
185
- const MIN_ASPECT_RATIO = 1;
185
+ const MIN_ASPECT_RATIO = 5 / 4;
186
186
  function FormField(props) {
187
187
  const {
188
188
  children,
@@ -339,7 +339,7 @@ function getVideoSrc(_ref3) {
339
339
  return "https://stream.mux.com/".concat(playbackId, ".m3u8?").concat(searchParams);
340
340
  }
341
341
  var name = "sanity-plugin-mux-input";
342
- var version = "2.2.1";
342
+ var version = "2.2.3";
343
343
  var description = "An input component that integrates Sanity Studio with Mux video encoding/hosting service.";
344
344
  var keywords = ["sanity", "video", "mux", "input", "plugin", "sanity-plugin", "media"];
345
345
  var homepage = "https://github.com/sanity-io/sanity-plugin-mux-input#readme";
@@ -360,8 +360,8 @@ var exports = {
360
360
  source: "./src/index.ts",
361
361
  require: "./lib/index.cjs",
362
362
  node: {
363
- "import": "./lib/index.cjs.js",
364
- require: "./lib/index.cjs"
363
+ module: "./lib/index.js",
364
+ "import": "./lib/index.cjs.js"
365
365
  },
366
366
  "import": "./lib/index.js",
367
367
  "default": "./lib/index.js"
@@ -387,7 +387,7 @@ var scripts = {
387
387
  watch: "pkg-utils watch --strict"
388
388
  };
389
389
  var dependencies = {
390
- "@mux/mux-player-react": "^1.11.4",
390
+ "@mux/mux-player-react": "1.11.4",
391
391
  "@mux/upchunk": "^3",
392
392
  "@sanity/icons": "^2",
393
393
  "@sanity/incompatible-plugin": "^1",
@@ -398,44 +398,44 @@ var dependencies = {
398
398
  "react-rx": "^2.1.3",
399
399
  rxjs: "^7",
400
400
  "scroll-into-view-if-needed": "^3",
401
- "suspend-react": "^0.1.0",
402
- swr: "^2.1.0",
403
- "type-fest": "^4.0.0",
401
+ "suspend-react": "^0.1.3",
402
+ swr: "^2.2.1",
403
+ "type-fest": "^4.2.0",
404
404
  "use-error-boundary": "^2.0.6"
405
405
  };
406
406
  var devDependencies = {
407
- "@commitlint/cli": "^17.6.7",
408
- "@commitlint/config-conventional": "^17.6.7",
409
- "@sanity/pkg-utils": "^2.3.10",
410
- "@sanity/plugin-kit": "^3.1.7",
411
- "@sanity/semantic-release-preset": "^4.1.2",
412
- "@sanity/vision": "^3.14.5",
413
- "@types/react": "^18.2.18",
407
+ "@commitlint/cli": "^17.7.1",
408
+ "@commitlint/config-conventional": "^17.7.0",
409
+ "@sanity/pkg-utils": "^2.4.6",
410
+ "@sanity/plugin-kit": "^3.1.10",
411
+ "@sanity/semantic-release-preset": "^4.1.3",
412
+ "@sanity/vision": "^3.15.1",
413
+ "@types/react": "^18.2.20",
414
414
  "@types/styled-components": "^5.1.26",
415
415
  "@typescript-eslint/eslint-plugin": "^5.62.0",
416
416
  "@typescript-eslint/parser": "^5.62.0",
417
417
  "cz-conventional-changelog": "^3.3.0",
418
- eslint: "^8.46.0",
418
+ eslint: "^8.47.0",
419
419
  "eslint-config-prettier": "^8.10.0",
420
420
  "eslint-config-react-app": "^7.0.1",
421
421
  "eslint-config-sanity": "^6.0.0",
422
- "eslint-plugin-import": "^2.28.0",
422
+ "eslint-plugin-import": "^2.28.1",
423
423
  "eslint-plugin-prettier": "^5.0.0",
424
- "eslint-plugin-react": "^7.33.1",
424
+ "eslint-plugin-react": "^7.33.2",
425
425
  "eslint-plugin-react-hooks": "^4.6.0",
426
426
  "eslint-plugin-simple-import-sort": "^10.0.0",
427
427
  husky: "^8.0.3",
428
- "lint-staged": "^13.2.3",
429
- next: "^13.4.12",
430
- "next-sanity": "^5.1.3",
428
+ "lint-staged": "^13.3.0",
429
+ next: "^13.4.19",
430
+ "next-sanity": "^5.4.4",
431
431
  "npm-run-all": "^4.1.5",
432
- prettier: "^3.0.1",
432
+ prettier: "^3.0.2",
433
433
  "prettier-plugin-packagejson": "^2.4.5",
434
434
  react: "^18.2.0",
435
435
  "react-dom": "^18.2.0",
436
436
  "react-is": "^18.2.0",
437
437
  rimraf: "^5.0.0",
438
- sanity: "^3.14.5",
438
+ sanity: "^3.15.1",
439
439
  "styled-components": "^5.3.11",
440
440
  typescript: "^5.1.6"
441
441
  };
@@ -769,29 +769,28 @@ function DocumentPreview(props) {
769
769
  children: PreviewComponent
770
770
  });
771
771
  }
772
- var __freeze$b = Object.freeze;
773
- var __defProp$c = Object.defineProperty;
774
- var __template$b = (cooked, raw) => __freeze$b(__defProp$c(cooked, "raw", {
775
- value: __freeze$b(raw || cooked.slice())
772
+ var __freeze$c = Object.freeze;
773
+ var __defProp$d = Object.defineProperty;
774
+ var __template$c = (cooked, raw) => __freeze$c(__defProp$d(cooked, "raw", {
775
+ value: __freeze$c(raw || cooked.slice())
776
776
  }));
777
- var _a$b;
778
- const Container = styled(Box)(_a$b || (_a$b = __template$b(["\n * {\n color: ", ";\n }\n a {\n text-decoration: none;\n }\n h2 {\n font-size: ", ";\n }\n"])), props => props.theme.sanity.color.base.fg, props => props.theme.sanity.fonts.text.sizes[1]);
779
- const FileReferences = props => {
777
+ var _a$c;
778
+ const Container = styled(Box)(_a$c || (_a$c = __template$c(["\n * {\n color: ", ";\n }\n a {\n text-decoration: none;\n }\n h2 {\n font-size: ", ";\n }\n"])), props => props.theme.sanity.color.base.fg, props => props.theme.sanity.fonts.text.sizes[1]);
779
+ const VideoReferences = props => {
780
780
  var _a2;
781
781
  const schema = useSchema();
782
782
  if (!props.isLoaded) {
783
783
  return /* @__PURE__ */jsx(SpinnerBox, {});
784
784
  }
785
785
  if (!((_a2 = props.references) == null ? void 0 : _a2.length)) {
786
- return /* @__PURE__ */jsx(Text, {
787
- size: 2,
788
- weight: "bold",
789
- muted: true,
790
- style: {
791
- marginTop: "1.5rem",
792
- textAlign: "center"
793
- },
794
- children: "No documents are using this file"
786
+ return /* @__PURE__ */jsx(Card, {
787
+ border: true,
788
+ radius: 3,
789
+ padding: 3,
790
+ children: /* @__PURE__ */jsx(Text, {
791
+ size: 2,
792
+ children: "No documents are using this video"
793
+ })
795
794
  });
796
795
  }
797
796
  const documentPairs = collate(props.references || []);
@@ -864,9 +863,9 @@ function DeleteDialog(_ref7) {
864
863
  }
865
864
  }
866
865
  return /* @__PURE__ */jsx(Dialog, {
867
- header: "Delete file",
866
+ header: "Delete video",
868
867
  zOffset: DIALOGS_Z_INDEX,
869
- id: "deleting-file-details-dialog",
868
+ id: "deleting-video-details-dialog",
870
869
  onClose: cancelDelete,
871
870
  onClickOutside: cancelDelete,
872
871
  width: 1,
@@ -880,7 +879,7 @@ function DeleteDialog(_ref7) {
880
879
  icon: TrashIcon,
881
880
  fontSize: 2,
882
881
  padding: 3,
883
- text: "Delete file",
882
+ text: "Delete video",
884
883
  tone: "critical",
885
884
  onClick: confirmDelete,
886
885
  disabled: ["processing_deletion", "checkingReferences", "cantDelete"].some(s => s === state)
@@ -900,7 +899,7 @@ function DeleteDialog(_ref7) {
900
899
  children: [state === "checkingReferences" && /* @__PURE__ */jsxs(Fragment, {
901
900
  children: [/* @__PURE__ */jsx(Heading, {
902
901
  size: 2,
903
- children: "Checking if file can be deleted"
902
+ children: "Checking if video can be deleted"
904
903
  }), /* @__PURE__ */jsx(SpinnerBox, {})]
905
904
  }), state === "cantDelete" && /* @__PURE__ */jsxs(Fragment, {
906
905
  children: [/* @__PURE__ */jsx(Heading, {
@@ -911,8 +910,8 @@ function DeleteDialog(_ref7) {
911
910
  style: {
912
911
  marginBottom: "2rem"
913
912
  },
914
- children: ["There are ", references == null ? void 0 : references.length, " document", references && references.length > 0 && "s", " ", "pointing to this file. Remove their references to this file or delete them before proceeding."]
915
- }), /* @__PURE__ */jsx(FileReferences, {
913
+ children: ["There are ", references == null ? void 0 : references.length, " document", references && references.length > 0 && "s", " ", "pointing to this video. Remove their references to this file or delete them before proceeding."]
914
+ }), /* @__PURE__ */jsx(VideoReferences, {
916
915
  references,
917
916
  isLoaded: !referencesLoading,
918
917
  placement
@@ -920,7 +919,7 @@ function DeleteDialog(_ref7) {
920
919
  }), state === "confirm" && /* @__PURE__ */jsxs(Fragment, {
921
920
  children: [/* @__PURE__ */jsx(Heading, {
922
921
  size: 2,
923
- children: "Are you sure you want to delete this file?"
922
+ children: "Are you sure you want to delete this video?"
924
923
  }), /* @__PURE__ */jsx(Text, {
925
924
  size: 2,
926
925
  children: "This action is irreversible"
@@ -956,7 +955,7 @@ function DeleteDialog(_ref7) {
956
955
  }), state === "processing_deletion" && /* @__PURE__ */jsxs(Fragment, {
957
956
  children: [/* @__PURE__ */jsx(Heading, {
958
957
  size: 2,
959
- children: "Deleting file..."
958
+ children: "Deleting video..."
960
959
  }), /* @__PURE__ */jsx(SpinnerBox, {})]
961
960
  }), state === "error_deleting" && /* @__PURE__ */jsxs(Fragment, {
962
961
  children: [/* @__PURE__ */jsx(Heading, {
@@ -964,7 +963,7 @@ function DeleteDialog(_ref7) {
964
963
  children: "Something went wrong!"
965
964
  }), /* @__PURE__ */jsx(Text, {
966
965
  size: 2,
967
- children: "Try deleting the file again by clicking the button below"
966
+ children: "Try deleting the video again by clicking the button below"
968
967
  })]
969
968
  })]
970
969
  })
@@ -1011,7 +1010,7 @@ function getVideoMetadata(doc) {
1011
1010
  max_stored_frame_rate: (_f = doc.data) == null ? void 0 : _f.max_stored_frame_rate
1012
1011
  };
1013
1012
  }
1014
- function useFileDetails(props) {
1013
+ function useVideoDetails(props) {
1015
1014
  const documentStore = useDocumentStore();
1016
1015
  const toast = useToast();
1017
1016
  const client = useClient();
@@ -1052,9 +1051,11 @@ function useFileDetails(props) {
1052
1051
  filename
1053
1052
  }));
1054
1053
  toast.push({
1055
- title: "File name updated",
1054
+ title: "Video title updated",
1055
+ description: "New title: ".concat(filename),
1056
1056
  status: "success"
1057
1057
  });
1058
+ props.closeDialog();
1058
1059
  } catch (error) {
1059
1060
  toast.push({
1060
1061
  title: "Failed updating file name",
@@ -1105,7 +1106,7 @@ const VideoDetails = props => {
1105
1106
  handleClose,
1106
1107
  confirmClose,
1107
1108
  saveChanges
1108
- } = useFileDetails(props);
1109
+ } = useVideoDetails(props);
1109
1110
  const isSaving = state === "saving";
1110
1111
  const [containerHeight, setContainerHeight] = useState(null);
1111
1112
  const contentsRef = React.useRef(null);
@@ -1116,13 +1117,10 @@ const VideoDetails = props => {
1116
1117
  return /* @__PURE__ */jsxs(Dialog, {
1117
1118
  header: displayInfo.title,
1118
1119
  zOffset: DIALOGS_Z_INDEX,
1119
- id: "file-details-dialog",
1120
+ id: "video-details-dialog",
1120
1121
  onClose: handleClose,
1121
1122
  onClickOutside: handleClose,
1122
1123
  width: 2,
1123
- style: {
1124
- minHeight: "50vh"
1125
- },
1126
1124
  position: "fixed",
1127
1125
  footer: /* @__PURE__ */jsx(Card, {
1128
1126
  padding: 3,
@@ -1163,7 +1161,7 @@ const VideoDetails = props => {
1163
1161
  }), state === "closing" && /* @__PURE__ */jsx(Dialog, {
1164
1162
  header: "You have unsaved changes",
1165
1163
  zOffset: DIALOGS_Z_INDEX,
1166
- id: "closing-file-details-dialog",
1164
+ id: "closing-video-details-dialog",
1167
1165
  onClose: () => confirmClose(false),
1168
1166
  onClickOutside: () => confirmClose(false),
1169
1167
  width: 1,
@@ -1243,11 +1241,11 @@ const VideoDetails = props => {
1243
1241
  label: "Details",
1244
1242
  onClick: () => setTab("details"),
1245
1243
  selected: tab === "details"
1246
- }), references && references.length > 0 && /* @__PURE__ */jsx(Tab, {
1244
+ }), /* @__PURE__ */jsx(Tab, {
1247
1245
  "aria-controls": "references-panel",
1248
1246
  icon: SearchIcon,
1249
1247
  id: "references-tab",
1250
- label: "Used by (".concat(references.length, ")"),
1248
+ label: "Used by ".concat(references ? "(".concat(references.length, ")") : ""),
1251
1249
  onClick: () => setTab("references"),
1252
1250
  selected: tab === "references"
1253
1251
  })]
@@ -1258,8 +1256,8 @@ const VideoDetails = props => {
1258
1256
  children: /* @__PURE__ */jsxs(Stack, {
1259
1257
  space: 4,
1260
1258
  children: [/* @__PURE__ */jsx(AssetInput, {
1261
- label: "File name",
1262
- description: "Not visible to users. Useful for finding files later.",
1259
+ label: "Video title or file name",
1260
+ description: "Not visible to users. Useful for finding videos later.",
1263
1261
  value: filename || "",
1264
1262
  onInput: e => setFilename(e.currentTarget.value),
1265
1263
  disabled: state !== "idle"
@@ -1299,7 +1297,7 @@ const VideoDetails = props => {
1299
1297
  "aria-labelledby": "references-tab",
1300
1298
  id: "references-panel",
1301
1299
  hidden: tab !== "references",
1302
- children: /* @__PURE__ */jsx(FileReferences, {
1300
+ children: /* @__PURE__ */jsx(VideoReferences, {
1303
1301
  references,
1304
1302
  isLoaded: !referencesLoading,
1305
1303
  placement: props.placement
@@ -1391,13 +1389,13 @@ function getAnimatedPosterSrc(_ref10) {
1391
1389
  }
1392
1390
  return "https://image.mux.com/".concat(playbackId, "/animated.gif?").concat(searchParams);
1393
1391
  }
1394
- var __freeze$a = Object.freeze;
1395
- var __defProp$b = Object.defineProperty;
1396
- var __template$a = (cooked, raw) => __freeze$a(__defProp$b(cooked, "raw", {
1397
- value: __freeze$a(raw || cooked.slice())
1392
+ var __freeze$b = Object.freeze;
1393
+ var __defProp$c = Object.defineProperty;
1394
+ var __template$b = (cooked, raw) => __freeze$b(__defProp$c(cooked, "raw", {
1395
+ value: __freeze$b(raw || cooked.slice())
1398
1396
  }));
1399
- var _a$a;
1400
- const Image = styled.img(_a$a || (_a$a = __template$a(["\n transition: opacity 0.175s ease-out 0s;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n object-position: center center;\n"])));
1397
+ var _a$b;
1398
+ const Image = styled.img(_a$b || (_a$b = __template$b(["\n transition: opacity 0.175s ease-out 0s;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n object-position: center center;\n"])));
1401
1399
  const STATUS_TO_TONE = {
1402
1400
  loading: "transparent",
1403
1401
  error: "critical",
@@ -1477,13 +1475,13 @@ function VideoThumbnail(_ref11) {
1477
1475
  }) : null
1478
1476
  });
1479
1477
  }
1480
- var __freeze$9 = Object.freeze;
1481
- var __defProp$a = Object.defineProperty;
1482
- var __template$9 = (cooked, raw) => __freeze$9(__defProp$a(cooked, "raw", {
1483
- value: __freeze$9(raw || cooked.slice())
1478
+ var __freeze$a = Object.freeze;
1479
+ var __defProp$b = Object.defineProperty;
1480
+ var __template$a = (cooked, raw) => __freeze$a(__defProp$b(cooked, "raw", {
1481
+ value: __freeze$a(raw || cooked.slice())
1484
1482
  }));
1485
- var _a$9;
1486
- const PlayButton = styled.button(_a$9 || (_a$9 = __template$9(["\n display: block;\n padding: 0;\n margin: 0;\n border: none;\n border-radius: 0.1875rem;\n position: relative;\n cursor: pointer;\n\n &::after {\n content: '';\n background: var(--card-fg-color);\n opacity: 0;\n display: block;\n position: absolute;\n inset: 0;\n z-index: 10;\n transition: 0.15s ease-out;\n border-radius: inherit;\n }\n\n > div[data-play] {\n z-index: 11;\n opacity: 0;\n transition: 0.15s 0.05s ease-out;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n color: var(--card-fg-color);\n background: var(--card-bg-color);\n width: auto;\n height: 30%;\n aspect-ratio: 1;\n border-radius: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n > svg {\n display: block;\n width: 70%;\n height: auto;\n // Visual balance to center-align the icon\n transform: translateX(5%);\n }\n }\n\n &:hover,\n &:focus {\n &::after {\n opacity: 0.3;\n }\n > div[data-play] {\n opacity: 1;\n }\n }\n"])));
1483
+ var _a$a;
1484
+ const PlayButton = styled.button(_a$a || (_a$a = __template$a(["\n display: block;\n padding: 0;\n margin: 0;\n border: none;\n border-radius: 0.1875rem;\n position: relative;\n cursor: pointer;\n\n &::after {\n content: '';\n background: var(--card-fg-color);\n opacity: 0;\n display: block;\n position: absolute;\n inset: 0;\n z-index: 10;\n transition: 0.15s ease-out;\n border-radius: inherit;\n }\n\n > div[data-play] {\n z-index: 11;\n opacity: 0;\n transition: 0.15s 0.05s ease-out;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n color: var(--card-fg-color);\n background: var(--card-bg-color);\n width: auto;\n height: 30%;\n aspect-ratio: 1;\n border-radius: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n > svg {\n display: block;\n width: 70%;\n height: auto;\n // Visual balance to center-align the icon\n transform: translateX(5%);\n }\n }\n\n &:hover,\n &:focus {\n &::after {\n opacity: 0.3;\n }\n > div[data-play] {\n opacity: 1;\n }\n }\n"])));
1487
1485
  function VideoInBrowser(_ref12) {
1488
1486
  let {
1489
1487
  onSelect,
@@ -1607,6 +1605,9 @@ function VideosBrowser(_ref13) {
1607
1605
  children: [/* @__PURE__ */jsxs(Stack, {
1608
1606
  padding: 4,
1609
1607
  space: 4,
1608
+ style: {
1609
+ minHeight: "50vh"
1610
+ },
1610
1611
  children: [/* @__PURE__ */jsx(Flex, {
1611
1612
  justify: "space-between",
1612
1613
  align: "center",
@@ -1617,7 +1618,7 @@ function VideosBrowser(_ref13) {
1617
1618
  value: searchQuery,
1618
1619
  icon: SearchIcon,
1619
1620
  onInput: e => setSearchQuery(e.currentTarget.value),
1620
- placeholder: "Search files"
1621
+ placeholder: "Search videos"
1621
1622
  }), /* @__PURE__ */jsx(SelectSortOptions, {
1622
1623
  setSort,
1623
1624
  sort
@@ -1640,13 +1641,15 @@ function VideosBrowser(_ref13) {
1640
1641
  }, asset._id))
1641
1642
  })]
1642
1643
  }), isLoading && /* @__PURE__ */jsx(SpinnerBox, {}), !isLoading && assets.length === 0 && /* @__PURE__ */jsx(Card, {
1643
- padding: 2,
1644
+ padding: 4,
1644
1645
  marginY: 4,
1645
1646
  border: true,
1646
1647
  radius: 2,
1648
+ tone: "transparent",
1647
1649
  children: /* @__PURE__ */jsx(Text, {
1648
1650
  align: "center",
1649
1651
  muted: true,
1652
+ size: 3,
1650
1653
  children: searchQuery ? 'No videos found for "'.concat(searchQuery, '"') : "No videos in this dataset"
1651
1654
  })
1652
1655
  })]
@@ -2115,6 +2118,13 @@ function SelectAssets(_ref14) {
2115
2118
  onSelect: handleSelect
2116
2119
  });
2117
2120
  }
2121
+ var __freeze$9 = Object.freeze;
2122
+ var __defProp$a = Object.defineProperty;
2123
+ var __template$9 = (cooked, raw) => __freeze$9(__defProp$a(cooked, "raw", {
2124
+ value: __freeze$9(raw || cooked.slice())
2125
+ }));
2126
+ var _a$9;
2127
+ const StyledDialog = styled(Dialog)(_a$9 || (_a$9 = __template$9(["\n > div[data-ui='DialogCard'] > div[data-ui='Card'] {\n height: 100%;\n }\n"])));
2118
2128
  function InputBrowser(_ref15) {
2119
2129
  let {
2120
2130
  setDialogState,
@@ -2123,7 +2133,7 @@ function InputBrowser(_ref15) {
2123
2133
  } = _ref15;
2124
2134
  const id = "InputBrowser".concat(useId());
2125
2135
  const handleClose = useCallback(() => setDialogState(false), [setDialogState]);
2126
- return /* @__PURE__ */jsx(Dialog, {
2136
+ return /* @__PURE__ */jsx(StyledDialog, {
2127
2137
  __unstable_autoFocus: true,
2128
2138
  header: "Select video",
2129
2139
  id,
@@ -2284,7 +2294,7 @@ const Player = _ref17 => {
2284
2294
  return /* @__PURE__ */jsx(UploadProgress, {
2285
2295
  progress: 100,
2286
2296
  filename: asset == null ? void 0 : asset.filename,
2287
- text: isLoading !== true && isLoading || "Waiting for Mux to complete the file",
2297
+ text: isLoading !== true && isLoading || "Waiting for Mux to complete the upload",
2288
2298
  onCancel: readOnly ? void 0 : () => handleCancelUpload()
2289
2299
  });
2290
2300
  }