sanity-plugin-mux-input 4.1.0 → 4.1.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +60 -19
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/util/types.ts","../src/_exports/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/util/types.ts","../src/_exports/index.ts"],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useClient as useClient$1, createHookFromObservableFactory, useDocumentStore, collate, useDocumentValues, truncateString, useFormattedDuration, SanityDefaultPreview, useTimeAgo, TextWithTone, isRecord, getPreviewStateObservable,
|
|
1
|
+
import { useClient as useClient$1, createHookFromObservableFactory, useDocumentStore, collate, useDocumentValues, truncateString, useFormattedDuration, SanityDefaultPreview, useTimeAgo, TextWithTone, isRecord, getPreviewStateObservable, DocumentPreviewPresence, getPreviewValueWithFallback, useDocumentPreviewStore, useSchema, useDocumentPresence, PreviewCard, useCurrentUser, isReference, useProjectId, useDataset, PatchEvent, unset, setIfMissing, set, LinearProgress, FormField as FormField$2, definePlugin } from "sanity";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { SearchIcon } from "@sanity/icons/Search";
|
|
4
4
|
import { Dialog, Stack, Card, Text, Button, useTheme_v2, Flex, Box, TextInput, Checkbox, Code, Inline, Spinner, Heading, Label as Label$1, Radio, MenuButton, Menu, MenuItem, useToast, Autocomplete, Tooltip, TabList, Tab, TabPanel, Grid, useClickOutsideEvent, Popover, MenuDivider, rem } from "@sanity/ui";
|
|
5
|
-
import { createContext, useState, useCallback, useMemo, useContext, useReducer, useId, memo, useRef, useEffect, Suspense, isValidElement
|
|
5
|
+
import { createContext, useState, useCallback, useMemo, useContext, useReducer, useId, memo, useRef, useEffect, Suspense, isValidElement } from "react";
|
|
6
6
|
import compact from "lodash/compact.js";
|
|
7
7
|
import toLower from "lodash/toLower.js";
|
|
8
8
|
import trim from "lodash/trim.js";
|
|
@@ -11,20 +11,54 @@ import words from "lodash/words.js";
|
|
|
11
11
|
import { suspend, clear, preload } from "suspend-react";
|
|
12
12
|
import { defer, timer, of, Observable, concat, throwError, from, Subject } from "rxjs";
|
|
13
13
|
import { styled, css } from "styled-components";
|
|
14
|
+
import { CheckmarkCircleIcon } from "@sanity/icons/CheckmarkCircle";
|
|
15
|
+
import { ErrorOutlineIcon } from "@sanity/icons/ErrorOutline";
|
|
16
|
+
import { InfoOutlineIcon } from "@sanity/icons/InfoOutline";
|
|
17
|
+
import { RetrieveIcon } from "@sanity/icons/Retrieve";
|
|
18
|
+
import { RetryIcon } from "@sanity/icons/Retry";
|
|
14
19
|
import { uuid } from "@sanity/uuid";
|
|
15
20
|
import { expand, concatMap, tap, switchMap, mergeMap, catchError, mergeMapTo, takeUntil } from "rxjs/operators";
|
|
21
|
+
import { ChevronLeftIcon } from "@sanity/icons/ChevronLeft";
|
|
22
|
+
import { ChevronRightIcon } from "@sanity/icons/ChevronRight";
|
|
23
|
+
import { SyncIcon } from "@sanity/icons/Sync";
|
|
24
|
+
import { SortIcon } from "@sanity/icons/Sort";
|
|
25
|
+
import { CalendarIcon } from "@sanity/icons/Calendar";
|
|
26
|
+
import { CheckmarkIcon } from "@sanity/icons/Checkmark";
|
|
27
|
+
import { ClockIcon } from "@sanity/icons/Clock";
|
|
28
|
+
import { CropIcon } from "@sanity/icons/Crop";
|
|
29
|
+
import { EditIcon } from "@sanity/icons/Edit";
|
|
30
|
+
import { RevertIcon } from "@sanity/icons/Revert";
|
|
31
|
+
import { TagIcon } from "@sanity/icons/Tag";
|
|
32
|
+
import { TrashIcon } from "@sanity/icons/Trash";
|
|
33
|
+
import { DownloadIcon } from "@sanity/icons/Download";
|
|
34
|
+
import { AddIcon } from "@sanity/icons/Add";
|
|
35
|
+
import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
|
|
36
|
+
import { ChevronUpIcon } from "@sanity/icons/ChevronUp";
|
|
37
|
+
import { TranslateIcon } from "@sanity/icons/Translate";
|
|
38
|
+
import { UploadIcon } from "@sanity/icons/Upload";
|
|
16
39
|
import LanguagesList from "iso-639-1";
|
|
17
40
|
import MuxPlayer from "@mux/mux-player-react/lazy";
|
|
18
41
|
import { getDevicePixelRatio } from "use-device-pixel-ratio";
|
|
42
|
+
import { DocumentIcon } from "@sanity/icons/Document";
|
|
19
43
|
import { IntentLink } from "sanity/router";
|
|
44
|
+
import { WarningOutlineIcon } from "@sanity/icons/WarningOutline";
|
|
20
45
|
import isNumber from "lodash/isNumber.js";
|
|
21
46
|
import isString from "lodash/isString.js";
|
|
22
47
|
import { useObservable } from "react-rx";
|
|
48
|
+
import { PublishIcon } from "@sanity/icons/Publish";
|
|
49
|
+
import { LockIcon } from "@sanity/icons/Lock";
|
|
50
|
+
import { PlayIcon } from "@sanity/icons/Play";
|
|
23
51
|
import useSWR from "swr";
|
|
24
52
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
25
53
|
import { useErrorBoundary } from "use-error-boundary";
|
|
54
|
+
import { PlugIcon } from "@sanity/icons/Plug";
|
|
26
55
|
import { UpChunk } from "@mux/upchunk";
|
|
56
|
+
import { EllipsisHorizontalIcon } from "@sanity/icons/EllipsisHorizontal";
|
|
57
|
+
import { ImageIcon } from "@sanity/icons/Image";
|
|
58
|
+
import { ResetIcon } from "@sanity/icons/Reset";
|
|
27
59
|
import { isValidElementType } from "react-is";
|
|
60
|
+
import { DocumentVideoIcon } from "@sanity/icons/DocumentVideo";
|
|
61
|
+
import { WarningFilledIcon } from "@sanity/icons/WarningFilled";
|
|
28
62
|
const ToolIcon = () => /* @__PURE__ */ jsx("svg", { stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 24 24", height: "1em", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z" }) }), LOCAL_STORAGE_HAS_SHOWN_WARNING_KEY = "mux-plugin-has-shown-drm-playback-warning", DrmPlaybackWarningContext = createContext({
|
|
29
63
|
hasShownWarning: !1,
|
|
30
64
|
setHasWarnedAboutDrmPlayback: () => null
|
|
@@ -142,7 +176,7 @@ function useDialogState() {
|
|
|
142
176
|
const PLUGIN_VERSION_QUERY = {
|
|
143
177
|
sanityVersion: (
|
|
144
178
|
// @ts-expect-error - this constant is search/replaced so must be exact, not accessed with an index signature
|
|
145
|
-
"4.1.
|
|
179
|
+
"4.1.2"
|
|
146
180
|
)
|
|
147
181
|
};
|
|
148
182
|
function saveSecrets(client, token, secretKey, enableSignedUrls, signingKeyId, signingKeyPrivate, drmConfigId) {
|
|
@@ -1780,6 +1814,7 @@ const SUPPORTED_MUX_LANGUAGES = [{
|
|
|
1780
1814
|
code: "bg",
|
|
1781
1815
|
state: "Beta"
|
|
1782
1816
|
}];
|
|
1817
|
+
SUPPORTED_MUX_LANGUAGES.map((l) => l.code);
|
|
1783
1818
|
function isCustomTextTrack(track) {
|
|
1784
1819
|
return track.type !== "autogenerated";
|
|
1785
1820
|
}
|
|
@@ -1975,7 +2010,7 @@ function AddCaptionDialog({
|
|
|
1975
2010
|
textAlign: "center"
|
|
1976
2011
|
}, children: "Or enter the caption file URL" }),
|
|
1977
2012
|
/* @__PURE__ */ jsxs(Stack, { space: 2, children: [
|
|
1978
|
-
/* @__PURE__ */ jsx(Label$1, { htmlFor: "vtt-url", children: "Caption File URL (.vtt or .srt)" }),
|
|
2013
|
+
/* @__PURE__ */ jsx(Label$1, { as: "label", htmlFor: "vtt-url", children: "Caption File URL (.vtt or .srt)" }),
|
|
1979
2014
|
/* @__PURE__ */ jsx(TextInput, { id: "vtt-url", placeholder: "https://example.com/subtitles.vtt", value: vttUrl, onChange: (e) => {
|
|
1980
2015
|
setVttUrl(e.currentTarget.value), setSelectedFile(null);
|
|
1981
2016
|
}, disabled: isSubmitting })
|
|
@@ -1983,7 +2018,7 @@ function AddCaptionDialog({
|
|
|
1983
2018
|
] })
|
|
1984
2019
|
] }),
|
|
1985
2020
|
/* @__PURE__ */ jsxs(Stack, { space: 2, children: [
|
|
1986
|
-
/* @__PURE__ */ jsx(Label$1, { htmlFor: "caption-name", children: "Audio name" }),
|
|
2021
|
+
/* @__PURE__ */ jsx(Label$1, { as: "label", htmlFor: "caption-name", children: "Audio name" }),
|
|
1987
2022
|
/* @__PURE__ */ jsx(Autocomplete, { id: "caption-name", value: selectedLanguage?.value || "", onChange: (newValue) => {
|
|
1988
2023
|
const selected = (isAutogenerated ? MUX_LANGUAGE_OPTIONS : LANGUAGE_OPTIONS$1).find((opt) => opt.value === newValue);
|
|
1989
2024
|
selected && (setSelectedLanguage(selected), setLanguageCode(selected.value), setName(selected.label));
|
|
@@ -1995,7 +2030,7 @@ function AddCaptionDialog({
|
|
|
1995
2030
|
] }) }), disabled: isSubmitting })
|
|
1996
2031
|
] }),
|
|
1997
2032
|
/* @__PURE__ */ jsxs(Stack, { space: 2, children: [
|
|
1998
|
-
/* @__PURE__ */ jsx(Label$1, { htmlFor: "caption-language", children: "Language Code" }),
|
|
2033
|
+
/* @__PURE__ */ jsx(Label$1, { as: "label", htmlFor: "caption-language", children: "Language Code" }),
|
|
1999
2034
|
/* @__PURE__ */ jsx(TextInput, { id: "caption-language", placeholder: "en-US", value: languageCode, onChange: (e) => {
|
|
2000
2035
|
setLanguageCode(e.currentTarget.value), selectedLanguage && selectedLanguage.value !== e.currentTarget.value && (setSelectedLanguage(null), (!name2 || name2 === selectedLanguage.label) && setName(""));
|
|
2001
2036
|
}, disabled: isSubmitting })
|
|
@@ -2236,7 +2271,7 @@ function EditCaptionDialog({
|
|
|
2236
2271
|
] })
|
|
2237
2272
|
] }),
|
|
2238
2273
|
/* @__PURE__ */ jsxs(Stack, { space: 2, children: [
|
|
2239
|
-
/* @__PURE__ */ jsx(Label$1, { htmlFor: "vtt-url", children: "VTT File URL" }),
|
|
2274
|
+
/* @__PURE__ */ jsx(Label$1, { as: "label", htmlFor: "vtt-url", children: "VTT File URL" }),
|
|
2240
2275
|
/* @__PURE__ */ jsx(TextInput, { id: "vtt-url", placeholder: "https://example.com/subtitles.vtt", value: vttUrl, onChange: (e) => {
|
|
2241
2276
|
setVttUrl(e.currentTarget.value), setSelectedFile(null);
|
|
2242
2277
|
}, disabled: isSubmitting }),
|
|
@@ -2244,7 +2279,7 @@ function EditCaptionDialog({
|
|
|
2244
2279
|
] })
|
|
2245
2280
|
] }),
|
|
2246
2281
|
/* @__PURE__ */ jsxs(Stack, { space: 2, children: [
|
|
2247
|
-
/* @__PURE__ */ jsx(Label$1, { htmlFor: "caption-name", children: "Audio name" }),
|
|
2282
|
+
/* @__PURE__ */ jsx(Label$1, { as: "label", htmlFor: "caption-name", children: "Audio name" }),
|
|
2248
2283
|
/* @__PURE__ */ jsx(Autocomplete, { id: "caption-name", value: selectedLanguage?.value || "", onChange: (newValue) => {
|
|
2249
2284
|
const selected = LANGUAGE_OPTIONS.find((opt) => opt.value === newValue);
|
|
2250
2285
|
selected && (setSelectedLanguage(selected), setLanguageCode(selected.value), setName(selected.label));
|
|
@@ -2256,7 +2291,7 @@ function EditCaptionDialog({
|
|
|
2256
2291
|
] }) }), disabled: isSubmitting })
|
|
2257
2292
|
] }),
|
|
2258
2293
|
/* @__PURE__ */ jsxs(Stack, { space: 2, children: [
|
|
2259
|
-
/* @__PURE__ */ jsx(Label$1, { htmlFor: "caption-language", children: "Language Code" }),
|
|
2294
|
+
/* @__PURE__ */ jsx(Label$1, { as: "label", htmlFor: "caption-language", children: "Language Code" }),
|
|
2260
2295
|
/* @__PURE__ */ jsx(TextInput, { id: "caption-language", placeholder: "en-US", value: languageCode, onChange: (e) => {
|
|
2261
2296
|
setLanguageCode(e.currentTarget.value), selectedLanguage && selectedLanguage.value !== e.currentTarget.value && (setSelectedLanguage(null), (!name2 || name2 === selectedLanguage.label) && setName(""));
|
|
2262
2297
|
}, disabled: isSubmitting })
|
|
@@ -2729,7 +2764,7 @@ function VideoPlayer({
|
|
|
2729
2764
|
/* @__PURE__ */ jsx(MuxPlayer, { poster: isAudio ? void 0 : poster, ref: muxPlayer, ...props, playsInline: !0, playbackId, tokens, preload: "metadata", crossOrigin: "anonymous", metadata: {
|
|
2730
2765
|
player_name: "Sanity Admin Dashboard",
|
|
2731
2766
|
// @ts-expect-error - this constant is search/replaced so must be exact, not accessed with an index signature
|
|
2732
|
-
player_version: "4.1.
|
|
2767
|
+
player_version: "4.1.2",
|
|
2733
2768
|
page_type: "Preview Player"
|
|
2734
2769
|
}, audio: isAudio, _hlsConfig: hlsConfig, style: {
|
|
2735
2770
|
...!isAudio && {
|
|
@@ -3863,7 +3898,8 @@ const FileButton = /* @__PURE__ */ styled(MenuItem).withConfig({
|
|
|
3863
3898
|
opacity: 0;
|
|
3864
3899
|
}
|
|
3865
3900
|
`;
|
|
3866
|
-
})
|
|
3901
|
+
});
|
|
3902
|
+
function FileInputMenuItem(props) {
|
|
3867
3903
|
const {
|
|
3868
3904
|
icon: Icon,
|
|
3869
3905
|
id: idProp,
|
|
@@ -3876,6 +3912,7 @@ const FileButton = /* @__PURE__ */ styled(MenuItem).withConfig({
|
|
|
3876
3912
|
textAlign,
|
|
3877
3913
|
text,
|
|
3878
3914
|
disabled,
|
|
3915
|
+
ref,
|
|
3879
3916
|
...rest
|
|
3880
3917
|
} = props, idHook = useId(), id = idProp || idHook, handleChange = useCallback((event) => {
|
|
3881
3918
|
onSelect && event.target.files && onSelect(Array.from(event.target.files));
|
|
@@ -3886,11 +3923,12 @@ const FileButton = /* @__PURE__ */ styled(MenuItem).withConfig({
|
|
|
3886
3923
|
] }) }),
|
|
3887
3924
|
text && /* @__PURE__ */ jsx(Text, { align: textAlign, size: fontSize, textOverflow: "ellipsis", children: text })
|
|
3888
3925
|
] });
|
|
3889
|
-
return /* @__PURE__ */ jsxs(FileButton, { ...rest, htmlFor: id, disabled, ref
|
|
3926
|
+
return /* @__PURE__ */ jsxs(FileButton, { ...rest, htmlFor: id, disabled, ref, children: [
|
|
3890
3927
|
content,
|
|
3891
3928
|
/* @__PURE__ */ jsx("input", { "data-testid": "file-button-input", accept, capture, id, multiple, onChange: handleChange, type: "file", value: "", disabled })
|
|
3892
3929
|
] });
|
|
3893
|
-
}
|
|
3930
|
+
}
|
|
3931
|
+
const LockCard = styled(Card).withConfig({
|
|
3894
3932
|
displayName: "LockCard",
|
|
3895
3933
|
componentId: "sc-aimiq6-0"
|
|
3896
3934
|
})`position:absolute;top:0;left:0;opacity:0.6;mix-blend-mode:screen;background:transparent;`, LockButton = styled(Button).withConfig({
|
|
@@ -5234,23 +5272,26 @@ function withFocusRing(component) {
|
|
|
5234
5272
|
`;
|
|
5235
5273
|
});
|
|
5236
5274
|
}
|
|
5237
|
-
const UploadCardWithFocusRing = withFocusRing(Card)
|
|
5275
|
+
const UploadCardWithFocusRing = withFocusRing(Card);
|
|
5276
|
+
function UploadCard({
|
|
5238
5277
|
children,
|
|
5239
5278
|
tone,
|
|
5240
5279
|
onPaste,
|
|
5241
5280
|
onDrop,
|
|
5242
5281
|
onDragEnter,
|
|
5243
5282
|
onDragLeave,
|
|
5244
|
-
onDragOver
|
|
5245
|
-
|
|
5283
|
+
onDragOver,
|
|
5284
|
+
ref
|
|
5285
|
+
}) {
|
|
5246
5286
|
const inputRef = useRef(null), handleKeyDown = useCallback((event) => {
|
|
5247
5287
|
event.target.closest("#vtt-url") || (event.ctrlKey || event.metaKey) && event.key === "v" && inputRef.current.focus();
|
|
5248
5288
|
}, []);
|
|
5249
|
-
return /* @__PURE__ */ jsxs(UploadCardWithFocusRing, { tone, ref
|
|
5289
|
+
return /* @__PURE__ */ jsxs(UploadCardWithFocusRing, { tone, ref, padding: 0, radius: 2, shadow: 0, tabIndex: 0, onKeyDown: handleKeyDown, onPaste, onDrop, onDragEnter, onDragLeave, onDragOver, children: [
|
|
5250
5290
|
/* @__PURE__ */ jsx(HiddenInput$1, { ref: inputRef }),
|
|
5251
5291
|
children
|
|
5252
5292
|
] });
|
|
5253
|
-
}
|
|
5293
|
+
}
|
|
5294
|
+
const HiddenInput$1 = styled.input.attrs({
|
|
5254
5295
|
type: "text"
|
|
5255
5296
|
}).withConfig({
|
|
5256
5297
|
displayName: "HiddenInput",
|