sanity-plugin-mux-input 2.3.0 → 2.3.1
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.cjs +21 -21
- package/lib/index.cjs.map +1 -1
- package/lib/index.esm.js +24 -18
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +24 -18
- package/lib/index.js.map +1 -1
- package/package.json +17 -17
package/lib/index.esm.js
CHANGED
|
@@ -3,7 +3,11 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { ErrorOutlineIcon, RetrieveIcon, RetryIcon, CheckmarkCircleIcon, SortIcon, WarningOutlineIcon, EditIcon, PublishIcon, DocumentIcon, TrashIcon, CheckmarkIcon, RevertIcon, SearchIcon, ClockIcon, CropIcon, CalendarIcon, TagIcon, LockIcon, PlayIcon, PlugIcon, UploadIcon, ResetIcon, EllipsisHorizontalIcon, AddIcon, TranslateIcon, DocumentVideoIcon } from "@sanity/icons";
|
|
4
4
|
import { Card, Box, Spinner, Stack, Text, Checkbox, Button, Dialog, Flex, Heading, Code, MenuButton, Menu, MenuItem, Tooltip, Inline, useToast, TabList, Tab, TabPanel, TextInput, Label as Label$1, Grid, useClickOutside, Popover, MenuDivider, Radio, Autocomplete, rem } from "@sanity/ui";
|
|
5
5
|
import React, { useState, useMemo, useEffect, useRef, useId, memo, isValidElement, useCallback, useReducer, createElement, forwardRef, Suspense } from "react";
|
|
6
|
-
import
|
|
6
|
+
import compact from "lodash/compact.js";
|
|
7
|
+
import toLower from "lodash/toLower.js";
|
|
8
|
+
import trim from "lodash/trim.js";
|
|
9
|
+
import uniq from "lodash/uniq.js";
|
|
10
|
+
import words from "lodash/words.js";
|
|
7
11
|
import styled, { css } from "styled-components";
|
|
8
12
|
import { uuid } from "@sanity/uuid";
|
|
9
13
|
import { defer, timer, of, Observable, concat, throwError, from, Subject } from "rxjs";
|
|
@@ -12,6 +16,8 @@ import { suspend, clear, preload } from "suspend-react";
|
|
|
12
16
|
import MuxPlayer from "@mux/mux-player-react";
|
|
13
17
|
import { usePaneRouter } from "sanity/desk";
|
|
14
18
|
import { IntentLink } from "sanity/router";
|
|
19
|
+
import isNumber from "lodash/isNumber.js";
|
|
20
|
+
import isString from "lodash/isString.js";
|
|
15
21
|
import { useMemoObservable } from "react-rx";
|
|
16
22
|
import useSWR from "swr";
|
|
17
23
|
import scrollIntoView from "scroll-into-view-if-needed";
|
|
@@ -762,7 +768,7 @@ function getVideoSrc({ asset, client }) {
|
|
|
762
768
|
}
|
|
763
769
|
return `https://stream.mux.com/${playbackId}.m3u8?${searchParams}`;
|
|
764
770
|
}
|
|
765
|
-
var name = "sanity-plugin-mux-input", version = "2.3.
|
|
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 = [
|
|
766
772
|
"sanity",
|
|
767
773
|
"video",
|
|
768
774
|
"mux",
|
|
@@ -801,11 +807,11 @@ var name = "sanity-plugin-mux-input", version = "2.3.0", description = "An input
|
|
|
801
807
|
"type-check": "tsc --noEmit",
|
|
802
808
|
watch: "pkg-utils watch --strict"
|
|
803
809
|
}, dependencies = {
|
|
804
|
-
"@mux/mux-player-react": "^2.
|
|
810
|
+
"@mux/mux-player-react": "^2.4.1",
|
|
805
811
|
"@mux/upchunk": "^3.3.2",
|
|
806
|
-
"@sanity/icons": "^2.
|
|
812
|
+
"@sanity/icons": "^2.11.7",
|
|
807
813
|
"@sanity/incompatible-plugin": "^1.0.4",
|
|
808
|
-
"@sanity/ui": "^2.0
|
|
814
|
+
"@sanity/ui": "^2.1.0",
|
|
809
815
|
"@sanity/uuid": "^3.0.2",
|
|
810
816
|
"iso-639-1": "^3.1.2",
|
|
811
817
|
"jsonwebtoken-esm": "^1.0.5",
|
|
@@ -818,20 +824,20 @@ var name = "sanity-plugin-mux-input", version = "2.3.0", description = "An input
|
|
|
818
824
|
"type-fest": "^4.10.2",
|
|
819
825
|
"use-error-boundary": "^2.0.6"
|
|
820
826
|
}, devDependencies = {
|
|
821
|
-
"@commitlint/cli": "^
|
|
822
|
-
"@commitlint/config-conventional": "^
|
|
823
|
-
"@sanity/client": "^6.
|
|
824
|
-
"@sanity/pkg-utils": "^
|
|
827
|
+
"@commitlint/cli": "^19.2.1",
|
|
828
|
+
"@commitlint/config-conventional": "^19.1.0",
|
|
829
|
+
"@sanity/client": "^6.15.11",
|
|
830
|
+
"@sanity/pkg-utils": "^6.0.1",
|
|
825
831
|
"@sanity/plugin-kit": "^3.1.10",
|
|
826
832
|
"@sanity/semantic-release-preset": "^4.1.7",
|
|
827
|
-
"@sanity/vision": "^3.
|
|
828
|
-
"@types/lodash": "^4.
|
|
829
|
-
"@types/react": "^18.2.
|
|
833
|
+
"@sanity/vision": "^3.36.4",
|
|
834
|
+
"@types/lodash": "^4.17.0",
|
|
835
|
+
"@types/react": "^18.2.74",
|
|
830
836
|
"@types/react-is": "^18.2.4",
|
|
831
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
832
|
-
"@typescript-eslint/parser": "^7.
|
|
837
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
838
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
833
839
|
"cz-conventional-changelog": "^3.3.0",
|
|
834
|
-
eslint: "^8.
|
|
840
|
+
eslint: "^8.57.0",
|
|
835
841
|
"eslint-config-prettier": "^9.1.0",
|
|
836
842
|
"eslint-config-sanity": "^7.1.2",
|
|
837
843
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -840,14 +846,14 @@ var name = "sanity-plugin-mux-input", version = "2.3.0", description = "An input
|
|
|
840
846
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
841
847
|
husky: "^9.0.11",
|
|
842
848
|
"lint-staged": "^15.2.2",
|
|
843
|
-
"npm-run-
|
|
849
|
+
"npm-run-all2": "^5.0.0",
|
|
844
850
|
prettier: "^3.2.5",
|
|
845
|
-
"prettier-plugin-packagejson": "^2.4.
|
|
851
|
+
"prettier-plugin-packagejson": "^2.4.14",
|
|
846
852
|
react: "^18.2.0",
|
|
847
853
|
"react-dom": "^18.2.0",
|
|
848
854
|
"react-is": "^18.2.0",
|
|
849
855
|
rimraf: "^5.0.5",
|
|
850
|
-
sanity: "^3.
|
|
856
|
+
sanity: "^3.36.4",
|
|
851
857
|
"semantic-release": "^23.0.7",
|
|
852
858
|
"styled-components": "^6.1.8",
|
|
853
859
|
typescript: "5.4.2",
|