sanity-plugin-media 5.0.12 → 6.0.0
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 +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3854 -2587
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ImageIcon } from "@sanity/icons/Image";
|
|
2
|
-
import { FieldDefinitionBase, FileDefinition, ImageDefinition, InputProps, WidenInitialValue, WidenValidation } from "sanity";
|
|
2
|
+
import { AssetSourceComponentProps, FieldDefinitionBase, FileDefinition, ImageDefinition, InputProps, WidenInitialValue, WidenValidation } from "sanity";
|
|
3
3
|
import { ComponentType, JSX } from "react";
|
|
4
4
|
import "@reduxjs/toolkit";
|
|
5
5
|
import "redux-observable";
|
|
6
6
|
import { Control, FieldErrors, UseFormRegister } from "react-hook-form";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { SanityAssetDocument, SanityImageAssetDocument } from "@sanity/client";
|
|
9
|
+
declare const FormBuilderTool: (props: AssetSourceComponentProps) => import("react").JSX.Element;
|
|
9
10
|
type DetailsProps = {
|
|
10
11
|
formUpdating: boolean;
|
|
11
12
|
handleCreateTag: (title: string) => void;
|
|
@@ -163,7 +164,7 @@ declare const mediaAssetSource: {
|
|
|
163
164
|
icon: typeof ImageIcon;
|
|
164
165
|
name: string;
|
|
165
166
|
title: string;
|
|
166
|
-
component:
|
|
167
|
+
component: typeof FormBuilderTool;
|
|
167
168
|
};
|
|
168
169
|
declare const media: import("sanity").Plugin<void | MediaToolOptions>;
|
|
169
170
|
type AutoTagInputProps = InputProps & {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../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;EACV;EACA,kBAAkB;EAClB,SAAS,QAAQ;EACjB,QAAQ,YAAY;EACpB,UAAU,gBAAgB;EAC1B,eAAe;EACf,iBAAiB;EACjB,cAAc;EACd;IACE;IACA;;EAEF,UAAU;;cCpBC,iBAAe,EAAA;;;;;;;;;;iBAKZ,mBAAmB;EAAW;MAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCJ/C;EACV;;KAGU;EACV;EACA;EACA;IACE,UAAU,cACR;MAAgB,uBAAuB,OAAO,iBAAiB,IAAI;;;EAGvE;IACE;IACA;;EAEF;;;;;EAKA,UAAU;;KAGA;EACV;EACA;GACC;;KAGE,2BAA2B;KAE3B;EACH,UAAU;EACV,cAAc;EACd;IACE;MACE,OAAO;;;EAGX,QAAQ;;KAYE,QAAQ,YAAY;KAEpB,gBAAgB,EAAE,MAAM,kBAAkB;KA8F1C,YAAY,sBACtB;EACE;;KAGQ,aAAa,2BACvB;EACE;EACA,aAAa;;KAqBL;EACV;EACA;EACA;;KAuIU,kBAAkB,EAAE,aAAa;cC3ThC;eAAA;;;oBAAA;;cAWA,wBAAK,cAAA;KCVN,oBAAoB;EAC9B;;;;;;;;;;;;;;;;;;;;;iBAsBc,aAAa,OAAO,oCAAiB,IAAA;KC7BhD,wBAAwB,KAAK,8BAChC;EACE;EACA;EACA,UAAU;;KAGT,uBAAuB,KAAK,6BAC/B;EACE;EACA;EACA,UAAU;;KAGT,wBAAwB,KAAK,8BAChC;EACE,UAAU;IAA8B;;EACxC;IAAa,cAAc;;IACzB,kBACJ;KAEG,uBAAuB,KAAK,6BAC/B;EACE,UAAU;IAA6B;;EACvC;IAAa,cAAc;;IACzB,kBACJ;;;;;;;;;;;;;;;;;;;;;;iBAuBc,WAAW,QAAQ,wBAAwB;iBAC3C,WAAW,QAAQ,uBAAuB"}
|