sanity-plugin-media 6.0.3 → 6.0.5
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 +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ImageIcon } from "@sanity/icons/Image";
|
|
2
1
|
import { AssetSourceComponentProps, FieldDefinitionBase, FileDefinition, ImageDefinition, InputProps, WidenInitialValue, WidenValidation } from "sanity";
|
|
3
2
|
import { ComponentType, JSX } from "react";
|
|
4
3
|
import "@reduxjs/toolkit";
|
|
@@ -161,7 +160,7 @@ type SanityReference = {
|
|
|
161
160
|
};
|
|
162
161
|
type TagSelectOption = z.infer<typeof tagOptionSchema>;
|
|
163
162
|
declare const mediaAssetSource: {
|
|
164
|
-
icon:
|
|
163
|
+
icon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
165
164
|
name: string;
|
|
166
165
|
title: string;
|
|
167
166
|
component: typeof FormBuilderTool;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/FormBuilderTool/index.tsx","../src/components/DialogAssetEdit/Details.tsx","../src/formSchema/index.ts","../src/types/index.ts","../src/plugin.tsx","../src/components/AutoTagInputWrapper/index.tsx","../src/utils/mediaField.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/FormBuilderTool/index.tsx","../src/components/DialogAssetEdit/Details.tsx","../src/formSchema/index.ts","../src/types/index.ts","../src/plugin.tsx","../src/components/AutoTagInputWrapper/index.tsx","../src/utils/mediaField.ts"],"mappings":";;;;;;;cAOM,kBAAe,OAAW,8CAAyB,IAAA;KCc7C;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|
|
|
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;
|
|
@@ -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;
|