sanity-plugin-mux-input 2.2.0 → 2.2.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.
package/README.md CHANGED
@@ -11,7 +11,7 @@ The Mux plugin for Sanity gives you a way to upload and preview videos easily.
11
11
 
12
12
  Not familiar with Sanity? [Visit www.sanity.io](https://www.sanity.io/)
13
13
 
14
- <img width="623" alt="image" src="https://user-images.githubusercontent.com/81981/213587541-5646267e-66b4-4a47-bae7-c5c8e83fc01d.png">
14
+ <img width="623" alt="" src="https://github.com/sanity-io/sanity/assets/81981/7a9de462-746b-4c01-8b12-c55f0cbf6334">
15
15
 
16
16
  ## Installation
17
17
 
package/lib/index.cjs CHANGED
@@ -59,7 +59,7 @@ function tokenize(string) {
59
59
  function toGroqParams(terms) {
60
60
  const params = {};
61
61
  return terms.reduce((acc, term, i) => {
62
- acc["t".concat(i)] = "*".concat(term, "*");
62
+ acc["t".concat(i)] = "".concat(term, "*");
63
63
  return acc;
64
64
  }, params);
65
65
  }
@@ -76,7 +76,7 @@ function extractTermsFromQuery(query) {
76
76
  const remainingTerms = lodash.uniq(lodash.compact(tokenize(lodash.toLower(unquotedQuery))));
77
77
  return [...quotedTerms, ...remainingTerms];
78
78
  }
79
- const SEARCH_PATHS = ["filename", "assetId", "_id"];
79
+ const SEARCH_PATHS = ["filename"];
80
80
  function createConstraints(terms) {
81
81
  const constraints = terms.map((_term, i) => SEARCH_PATHS.map(joinedPath => "".concat(joinedPath, " match $t").concat(i))).filter(constraint => constraint.length > 0);
82
82
  return constraints.map(constraint => "(".concat(constraint.join(" || "), ")"));
@@ -116,9 +116,9 @@ const useAssetDocuments = sanity.createHookFromObservableFactory(_ref => {
116
116
  } = _ref;
117
117
  const search = createSearchFilter(searchQuery);
118
118
  const filter = ['_type == "mux.videoAsset"', ...search.filter].filter(Boolean).join(" && ");
119
- const query = ASSET_SORT_OPTIONS[sort].groq;
119
+ const sortFragment = ASSET_SORT_OPTIONS[sort].groq;
120
120
  return documentStore.listenQuery( /* groq */
121
- "*[".concat(filter, "] | order(").concat(query, ")"), search.params, {
121
+ "*[".concat(filter, "] | order(").concat(sortFragment, ")"), search.params, {
122
122
  apiVersion: SANITY_API_VERSION
123
123
  });
124
124
  });
@@ -197,7 +197,7 @@ const cacheNs = "sanity-plugin-mux-input";
197
197
  const muxSecretsDocumentId = "secrets.mux";
198
198
  const DIALOGS_Z_INDEX = 6e4;
199
199
  const THUMBNAIL_ASPECT_RATIO = 16 / 9;
200
- const MIN_ASPECT_RATIO = 1;
200
+ const MIN_ASPECT_RATIO = 5 / 4;
201
201
  function FormField(props) {
202
202
  const {
203
203
  children,
@@ -354,7 +354,7 @@ function getVideoSrc(_ref3) {
354
354
  return "https://stream.mux.com/".concat(playbackId, ".m3u8?").concat(searchParams);
355
355
  }
356
356
  var name = "sanity-plugin-mux-input";
357
- var version = "2.2.0";
357
+ var version = "2.2.2";
358
358
  var description = "An input component that integrates Sanity Studio with Mux video encoding/hosting service.";
359
359
  var keywords = ["sanity", "video", "mux", "input", "plugin", "sanity-plugin", "media"];
360
360
  var homepage = "https://github.com/sanity-io/sanity-plugin-mux-input#readme";
@@ -415,7 +415,7 @@ var dependencies = {
415
415
  "scroll-into-view-if-needed": "^3",
416
416
  "suspend-react": "^0.1.0",
417
417
  swr: "^2.1.0",
418
- "type-fest": "^3.6.1",
418
+ "type-fest": "^4.0.0",
419
419
  "use-error-boundary": "^2.0.6"
420
420
  };
421
421
  var devDependencies = {
@@ -435,16 +435,16 @@ var devDependencies = {
435
435
  "eslint-config-react-app": "^7.0.1",
436
436
  "eslint-config-sanity": "^6.0.0",
437
437
  "eslint-plugin-import": "^2.28.0",
438
- "eslint-plugin-prettier": "^4.2.1",
438
+ "eslint-plugin-prettier": "^5.0.0",
439
439
  "eslint-plugin-react": "^7.33.1",
440
440
  "eslint-plugin-react-hooks": "^4.6.0",
441
441
  "eslint-plugin-simple-import-sort": "^10.0.0",
442
442
  husky: "^8.0.3",
443
443
  "lint-staged": "^13.2.3",
444
444
  next: "^13.4.12",
445
- "next-sanity": "^4.3.3",
445
+ "next-sanity": "^5.1.6",
446
446
  "npm-run-all": "^4.1.5",
447
- prettier: "^2.8.8",
447
+ prettier: "^3.0.1",
448
448
  "prettier-plugin-packagejson": "^2.4.5",
449
449
  react: "^18.2.0",
450
450
  "react-dom": "^18.2.0",
@@ -464,7 +464,8 @@ var engines = {
464
464
  node: ">=14"
465
465
  };
466
466
  var publishConfig = {
467
- access: "public"
467
+ access: "public",
468
+ provenance: true
468
469
  };
469
470
  var sanityExchangeUrl = "https://www.sanity.io/plugins/sanity-plugin-mux-input";
470
471
  var pluginPkg = {
@@ -783,29 +784,28 @@ function DocumentPreview(props) {
783
784
  children: PreviewComponent
784
785
  });
785
786
  }
786
- var __freeze$b = Object.freeze;
787
- var __defProp$c = Object.defineProperty;
788
- var __template$b = (cooked, raw) => __freeze$b(__defProp$c(cooked, "raw", {
789
- value: __freeze$b(raw || cooked.slice())
787
+ var __freeze$c = Object.freeze;
788
+ var __defProp$d = Object.defineProperty;
789
+ var __template$c = (cooked, raw) => __freeze$c(__defProp$d(cooked, "raw", {
790
+ value: __freeze$c(raw || cooked.slice())
790
791
  }));
791
- var _a$b;
792
- const Container = styled__default.default(ui.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]);
793
- const FileReferences = props => {
792
+ var _a$c;
793
+ const Container = styled__default.default(ui.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]);
794
+ const VideoReferences = props => {
794
795
  var _a2;
795
796
  const schema = sanity.useSchema();
796
797
  if (!props.isLoaded) {
797
798
  return /* @__PURE__ */jsxRuntime.jsx(SpinnerBox, {});
798
799
  }
799
800
  if (!((_a2 = props.references) == null ? void 0 : _a2.length)) {
800
- return /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
801
- size: 2,
802
- weight: "bold",
803
- muted: true,
804
- style: {
805
- marginTop: "1.5rem",
806
- textAlign: "center"
807
- },
808
- children: "No documents are using this file"
801
+ return /* @__PURE__ */jsxRuntime.jsx(ui.Card, {
802
+ border: true,
803
+ radius: 3,
804
+ padding: 3,
805
+ children: /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
806
+ size: 2,
807
+ children: "No documents are using this video"
808
+ })
809
809
  });
810
810
  }
811
811
  const documentPairs = sanity.collate(props.references || []);
@@ -878,9 +878,9 @@ function DeleteDialog(_ref7) {
878
878
  }
879
879
  }
880
880
  return /* @__PURE__ */jsxRuntime.jsx(ui.Dialog, {
881
- header: "Delete file",
881
+ header: "Delete video",
882
882
  zOffset: DIALOGS_Z_INDEX,
883
- id: "deleting-file-details-dialog",
883
+ id: "deleting-video-details-dialog",
884
884
  onClose: cancelDelete,
885
885
  onClickOutside: cancelDelete,
886
886
  width: 1,
@@ -894,7 +894,7 @@ function DeleteDialog(_ref7) {
894
894
  icon: icons.TrashIcon,
895
895
  fontSize: 2,
896
896
  padding: 3,
897
- text: "Delete file",
897
+ text: "Delete video",
898
898
  tone: "critical",
899
899
  onClick: confirmDelete,
900
900
  disabled: ["processing_deletion", "checkingReferences", "cantDelete"].some(s => s === state)
@@ -914,7 +914,7 @@ function DeleteDialog(_ref7) {
914
914
  children: [state === "checkingReferences" && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
915
915
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Heading, {
916
916
  size: 2,
917
- children: "Checking if file can be deleted"
917
+ children: "Checking if video can be deleted"
918
918
  }), /* @__PURE__ */jsxRuntime.jsx(SpinnerBox, {})]
919
919
  }), state === "cantDelete" && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
920
920
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Heading, {
@@ -925,8 +925,8 @@ function DeleteDialog(_ref7) {
925
925
  style: {
926
926
  marginBottom: "2rem"
927
927
  },
928
- 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."]
929
- }), /* @__PURE__ */jsxRuntime.jsx(FileReferences, {
928
+ 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."]
929
+ }), /* @__PURE__ */jsxRuntime.jsx(VideoReferences, {
930
930
  references,
931
931
  isLoaded: !referencesLoading,
932
932
  placement
@@ -934,7 +934,7 @@ function DeleteDialog(_ref7) {
934
934
  }), state === "confirm" && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
935
935
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Heading, {
936
936
  size: 2,
937
- children: "Are you sure you want to delete this file?"
937
+ children: "Are you sure you want to delete this video?"
938
938
  }), /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
939
939
  size: 2,
940
940
  children: "This action is irreversible"
@@ -970,7 +970,7 @@ function DeleteDialog(_ref7) {
970
970
  }), state === "processing_deletion" && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
971
971
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Heading, {
972
972
  size: 2,
973
- children: "Deleting file..."
973
+ children: "Deleting video..."
974
974
  }), /* @__PURE__ */jsxRuntime.jsx(SpinnerBox, {})]
975
975
  }), state === "error_deleting" && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
976
976
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Heading, {
@@ -978,7 +978,7 @@ function DeleteDialog(_ref7) {
978
978
  children: "Something went wrong!"
979
979
  }), /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
980
980
  size: 2,
981
- children: "Try deleting the file again by clicking the button below"
981
+ children: "Try deleting the video again by clicking the button below"
982
982
  })]
983
983
  })]
984
984
  })
@@ -1025,7 +1025,7 @@ function getVideoMetadata(doc) {
1025
1025
  max_stored_frame_rate: (_f = doc.data) == null ? void 0 : _f.max_stored_frame_rate
1026
1026
  };
1027
1027
  }
1028
- function useFileDetails(props) {
1028
+ function useVideoDetails(props) {
1029
1029
  const documentStore = sanity.useDocumentStore();
1030
1030
  const toast = ui.useToast();
1031
1031
  const client = useClient();
@@ -1066,9 +1066,11 @@ function useFileDetails(props) {
1066
1066
  filename
1067
1067
  }));
1068
1068
  toast.push({
1069
- title: "File name updated",
1069
+ title: "Video title updated",
1070
+ description: "New title: ".concat(filename),
1070
1071
  status: "success"
1071
1072
  });
1073
+ props.closeDialog();
1072
1074
  } catch (error) {
1073
1075
  toast.push({
1074
1076
  title: "Failed updating file name",
@@ -1119,7 +1121,7 @@ const VideoDetails = props => {
1119
1121
  handleClose,
1120
1122
  confirmClose,
1121
1123
  saveChanges
1122
- } = useFileDetails(props);
1124
+ } = useVideoDetails(props);
1123
1125
  const isSaving = state === "saving";
1124
1126
  const [containerHeight, setContainerHeight] = React.useState(null);
1125
1127
  const contentsRef = React__default.default.useRef(null);
@@ -1130,13 +1132,10 @@ const VideoDetails = props => {
1130
1132
  return /* @__PURE__ */jsxRuntime.jsxs(ui.Dialog, {
1131
1133
  header: displayInfo.title,
1132
1134
  zOffset: DIALOGS_Z_INDEX,
1133
- id: "file-details-dialog",
1135
+ id: "video-details-dialog",
1134
1136
  onClose: handleClose,
1135
1137
  onClickOutside: handleClose,
1136
1138
  width: 2,
1137
- style: {
1138
- minHeight: "50vh"
1139
- },
1140
1139
  position: "fixed",
1141
1140
  footer: /* @__PURE__ */jsxRuntime.jsx(ui.Card, {
1142
1141
  padding: 3,
@@ -1177,7 +1176,7 @@ const VideoDetails = props => {
1177
1176
  }), state === "closing" && /* @__PURE__ */jsxRuntime.jsx(ui.Dialog, {
1178
1177
  header: "You have unsaved changes",
1179
1178
  zOffset: DIALOGS_Z_INDEX,
1180
- id: "closing-file-details-dialog",
1179
+ id: "closing-video-details-dialog",
1181
1180
  onClose: () => confirmClose(false),
1182
1181
  onClickOutside: () => confirmClose(false),
1183
1182
  width: 1,
@@ -1257,11 +1256,11 @@ const VideoDetails = props => {
1257
1256
  label: "Details",
1258
1257
  onClick: () => setTab("details"),
1259
1258
  selected: tab === "details"
1260
- }), references && references.length > 0 && /* @__PURE__ */jsxRuntime.jsx(ui.Tab, {
1259
+ }), /* @__PURE__ */jsxRuntime.jsx(ui.Tab, {
1261
1260
  "aria-controls": "references-panel",
1262
1261
  icon: icons.SearchIcon,
1263
1262
  id: "references-tab",
1264
- label: "Used by (".concat(references.length, ")"),
1263
+ label: "Used by ".concat(references ? "(".concat(references.length, ")") : ""),
1265
1264
  onClick: () => setTab("references"),
1266
1265
  selected: tab === "references"
1267
1266
  })]
@@ -1272,8 +1271,8 @@ const VideoDetails = props => {
1272
1271
  children: /* @__PURE__ */jsxRuntime.jsxs(ui.Stack, {
1273
1272
  space: 4,
1274
1273
  children: [/* @__PURE__ */jsxRuntime.jsx(AssetInput, {
1275
- label: "File name",
1276
- description: "Not visible to users. Useful for finding files later.",
1274
+ label: "Video title or file name",
1275
+ description: "Not visible to users. Useful for finding videos later.",
1277
1276
  value: filename || "",
1278
1277
  onInput: e => setFilename(e.currentTarget.value),
1279
1278
  disabled: state !== "idle"
@@ -1313,7 +1312,7 @@ const VideoDetails = props => {
1313
1312
  "aria-labelledby": "references-tab",
1314
1313
  id: "references-panel",
1315
1314
  hidden: tab !== "references",
1316
- children: /* @__PURE__ */jsxRuntime.jsx(FileReferences, {
1315
+ children: /* @__PURE__ */jsxRuntime.jsx(VideoReferences, {
1317
1316
  references,
1318
1317
  isLoaded: !referencesLoading,
1319
1318
  placement: props.placement
@@ -1405,13 +1404,13 @@ function getAnimatedPosterSrc(_ref10) {
1405
1404
  }
1406
1405
  return "https://image.mux.com/".concat(playbackId, "/animated.gif?").concat(searchParams);
1407
1406
  }
1408
- var __freeze$a = Object.freeze;
1409
- var __defProp$b = Object.defineProperty;
1410
- var __template$a = (cooked, raw) => __freeze$a(__defProp$b(cooked, "raw", {
1411
- value: __freeze$a(raw || cooked.slice())
1407
+ var __freeze$b = Object.freeze;
1408
+ var __defProp$c = Object.defineProperty;
1409
+ var __template$b = (cooked, raw) => __freeze$b(__defProp$c(cooked, "raw", {
1410
+ value: __freeze$b(raw || cooked.slice())
1412
1411
  }));
1413
- var _a$a;
1414
- const Image = styled__default.default.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"])));
1412
+ var _a$b;
1413
+ const Image = styled__default.default.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"])));
1415
1414
  const STATUS_TO_TONE = {
1416
1415
  loading: "transparent",
1417
1416
  error: "critical",
@@ -1491,13 +1490,13 @@ function VideoThumbnail(_ref11) {
1491
1490
  }) : null
1492
1491
  });
1493
1492
  }
1494
- var __freeze$9 = Object.freeze;
1495
- var __defProp$a = Object.defineProperty;
1496
- var __template$9 = (cooked, raw) => __freeze$9(__defProp$a(cooked, "raw", {
1497
- value: __freeze$9(raw || cooked.slice())
1493
+ var __freeze$a = Object.freeze;
1494
+ var __defProp$b = Object.defineProperty;
1495
+ var __template$a = (cooked, raw) => __freeze$a(__defProp$b(cooked, "raw", {
1496
+ value: __freeze$a(raw || cooked.slice())
1498
1497
  }));
1499
- var _a$9;
1500
- const PlayButton = styled__default.default.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"])));
1498
+ var _a$a;
1499
+ const PlayButton = styled__default.default.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"])));
1501
1500
  function VideoInBrowser(_ref12) {
1502
1501
  let {
1503
1502
  onSelect,
@@ -1621,6 +1620,9 @@ function VideosBrowser(_ref13) {
1621
1620
  children: [/* @__PURE__ */jsxRuntime.jsxs(ui.Stack, {
1622
1621
  padding: 4,
1623
1622
  space: 4,
1623
+ style: {
1624
+ minHeight: "50vh"
1625
+ },
1624
1626
  children: [/* @__PURE__ */jsxRuntime.jsx(ui.Flex, {
1625
1627
  justify: "space-between",
1626
1628
  align: "center",
@@ -1631,7 +1633,7 @@ function VideosBrowser(_ref13) {
1631
1633
  value: searchQuery,
1632
1634
  icon: icons.SearchIcon,
1633
1635
  onInput: e => setSearchQuery(e.currentTarget.value),
1634
- placeholder: "Search files"
1636
+ placeholder: "Search videos"
1635
1637
  }), /* @__PURE__ */jsxRuntime.jsx(SelectSortOptions, {
1636
1638
  setSort,
1637
1639
  sort
@@ -1654,13 +1656,15 @@ function VideosBrowser(_ref13) {
1654
1656
  }, asset._id))
1655
1657
  })]
1656
1658
  }), isLoading && /* @__PURE__ */jsxRuntime.jsx(SpinnerBox, {}), !isLoading && assets.length === 0 && /* @__PURE__ */jsxRuntime.jsx(ui.Card, {
1657
- padding: 2,
1659
+ padding: 4,
1658
1660
  marginY: 4,
1659
1661
  border: true,
1660
1662
  radius: 2,
1663
+ tone: "transparent",
1661
1664
  children: /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
1662
1665
  align: "center",
1663
1666
  muted: true,
1667
+ size: 3,
1664
1668
  children: searchQuery ? 'No videos found for "'.concat(searchQuery, '"') : "No videos in this dataset"
1665
1669
  })
1666
1670
  })]
@@ -2129,6 +2133,13 @@ function SelectAssets(_ref14) {
2129
2133
  onSelect: handleSelect
2130
2134
  });
2131
2135
  }
2136
+ var __freeze$9 = Object.freeze;
2137
+ var __defProp$a = Object.defineProperty;
2138
+ var __template$9 = (cooked, raw) => __freeze$9(__defProp$a(cooked, "raw", {
2139
+ value: __freeze$9(raw || cooked.slice())
2140
+ }));
2141
+ var _a$9;
2142
+ const StyledDialog = styled__default.default(ui.Dialog)(_a$9 || (_a$9 = __template$9(["\n > div[data-ui='DialogCard'] > div[data-ui='Card'] {\n height: 100%;\n }\n"])));
2132
2143
  function InputBrowser(_ref15) {
2133
2144
  let {
2134
2145
  setDialogState,
@@ -2137,7 +2148,7 @@ function InputBrowser(_ref15) {
2137
2148
  } = _ref15;
2138
2149
  const id = "InputBrowser".concat(React.useId());
2139
2150
  const handleClose = React.useCallback(() => setDialogState(false), [setDialogState]);
2140
- return /* @__PURE__ */jsxRuntime.jsx(ui.Dialog, {
2151
+ return /* @__PURE__ */jsxRuntime.jsx(StyledDialog, {
2141
2152
  __unstable_autoFocus: true,
2142
2153
  header: "Select video",
2143
2154
  id,
@@ -2298,7 +2309,7 @@ const Player = _ref17 => {
2298
2309
  return /* @__PURE__ */jsxRuntime.jsx(UploadProgress, {
2299
2310
  progress: 100,
2300
2311
  filename: asset == null ? void 0 : asset.filename,
2301
- text: isLoading !== true && isLoading || "Waiting for Mux to complete the file",
2312
+ text: isLoading !== true && isLoading || "Waiting for Mux to complete the upload",
2302
2313
  onCancel: readOnly ? void 0 : () => handleCancelUpload()
2303
2314
  });
2304
2315
  }