sanity-plugin-media 6.0.2 → 6.0.4
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.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { Controller, useForm } from "react-hook-form";
|
|
|
31
31
|
import * as z from "zod";
|
|
32
32
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
33
33
|
import { DownloadIcon } from "@sanity/icons/Download";
|
|
34
|
-
import { format
|
|
34
|
+
import { format } from "date-fns/format";
|
|
35
35
|
import filesize from "filesize";
|
|
36
36
|
import { ClipboardIcon } from "@sanity/icons/Clipboard";
|
|
37
37
|
import copy from "copy-to-clipboard";
|
|
@@ -51,6 +51,7 @@ import { UploadIcon } from "@sanity/icons/Upload";
|
|
|
51
51
|
import { CheckmarkCircleIcon } from "@sanity/icons/CheckmarkCircle";
|
|
52
52
|
import { WarningFilledIcon } from "@sanity/icons/WarningFilled";
|
|
53
53
|
import { ChevronUpIcon } from "@sanity/icons/ChevronUp";
|
|
54
|
+
import { formatRelative } from "date-fns/formatRelative";
|
|
54
55
|
import { useDropzone } from "react-dropzone";
|
|
55
56
|
const useKeyPress = (hotkey, onPress) => {
|
|
56
57
|
let $ = c(7), keyPressed = useRef(!1), t0;
|
|
@@ -808,7 +809,7 @@ const searchSlice = createSlice({
|
|
|
808
809
|
state.facets = state.facets.filter((facet) => facet.name !== action.payload.facetName);
|
|
809
810
|
},
|
|
810
811
|
facetsRemoveByTag(state, action) {
|
|
811
|
-
state.facets = state.facets.filter((facet) =>
|
|
812
|
+
state.facets = state.facets.filter((facet) => facet.name !== "tag" || facet.type !== "searchable" || facet.operatorType !== "references" && facet.operatorType !== "doesNotReference" || facet.value?.value !== action.payload.tagId);
|
|
812
813
|
},
|
|
813
814
|
facetsRemoveById(state, action) {
|
|
814
815
|
state.facets = state.facets.filter((facet) => facet.id !== action.payload.facetId);
|
|
@@ -5231,13 +5232,13 @@ function _temp$7(state) {
|
|
|
5231
5232
|
}
|
|
5232
5233
|
const ContainerGrid = /* @__PURE__ */ styled(Grid).withConfig({
|
|
5233
5234
|
displayName: "ContainerGrid",
|
|
5234
|
-
componentId: "sc-
|
|
5235
|
+
componentId: "sc-6mcfu2-0"
|
|
5235
5236
|
})(({ $scheme, $selected, $updating }) => css`align-items:center;cursor:${$selected ? "default" : "pointer"};height:100%;pointer-events:${$updating ? "none" : "auto"};user-select:none;white-space:nowrap;${!$updating && css`@media (hover:hover) and (pointer:fine){&:hover{background:${getSchemeColor($scheme, "bg")};}}`}`), ContextActionContainer = /* @__PURE__ */ styled(Flex).withConfig({
|
|
5236
5237
|
displayName: "ContextActionContainer",
|
|
5237
|
-
componentId: "sc-
|
|
5238
|
+
componentId: "sc-6mcfu2-1"
|
|
5238
5239
|
})(({ $scheme }) => css`cursor:pointer;@media (hover:hover) and (pointer:fine){&:hover{background:${getSchemeColor($scheme, "bg2")};}}`), StyledWarningIcon = /* @__PURE__ */ styled(WarningFilledIcon).withConfig({
|
|
5239
5240
|
displayName: "StyledWarningIcon",
|
|
5240
|
-
componentId: "sc-
|
|
5241
|
+
componentId: "sc-6mcfu2-2"
|
|
5241
5242
|
})(({ theme }) => ({ color: theme.sanity.color.spot.red }));
|
|
5242
5243
|
var TableRowAsset_default = memo((props) => {
|
|
5243
5244
|
let $ = c(145), { id, selected } = props, scheme = useColorSchemeValue(), shiftPressed = useKeyPress("shift"), [referenceCountVisible, setReferenceCountVisible] = useState(!1), refCountVisibleTimeout = useRef(null), dispatch = useDispatch(), lastPicked = useTypedSelector(_temp$6), t0;
|