sanity-plugin-media 2.4.2 → 3.0.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/dist/index.d.mts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +438 -285
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +457 -305
- package/dist/index.mjs.map +1 -1
- package/package.json +39 -33
- package/src/components/AssetGridVirtualized/index.tsx +13 -3
- package/src/components/Browser/index.tsx +30 -41
- package/src/components/ButtonAssetCopy/index.tsx +1 -1
- package/src/components/ButtonViewGroup/index.tsx +0 -1
- package/src/components/CardAsset/index.tsx +13 -14
- package/src/components/CardUpload/index.tsx +1 -1
- package/src/components/Controls/index.tsx +0 -1
- package/src/components/DebugControls/index.tsx +1 -0
- package/src/components/DialogAssetEdit/index.tsx +10 -3
- package/src/components/DialogConfirm/index.tsx +8 -1
- package/src/components/DialogSearchFacets/index.tsx +1 -1
- package/src/components/DialogTagCreate/index.tsx +1 -1
- package/src/components/DialogTagEdit/index.tsx +1 -1
- package/src/components/DialogTags/index.tsx +1 -1
- package/src/components/Dialogs/index.tsx +1 -1
- package/src/components/DocumentList/index.tsx +1 -1
- package/src/components/FileAssetPreview/index.tsx +1 -1
- package/src/components/FormFieldInputLabel/index.tsx +2 -1
- package/src/components/FormSubmitButton/index.tsx +1 -0
- package/src/components/Header/index.tsx +1 -1
- package/src/components/Image/index.tsx +4 -4
- package/src/components/OrderSelect/index.tsx +0 -1
- package/src/components/Progress/index.tsx +0 -1
- package/src/components/ReduxProvider/index.tsx +0 -1
- package/src/components/SearchFacet/index.tsx +4 -9
- package/src/components/SearchFacetNumber/index.tsx +1 -1
- package/src/components/SearchFacetSelect/index.tsx +1 -1
- package/src/components/SearchFacetTags/index.tsx +1 -1
- package/src/components/SearchFacets/index.tsx +1 -1
- package/src/components/SearchFacetsControl/index.tsx +1 -1
- package/src/components/TableHeader/index.tsx +4 -6
- package/src/components/TableHeaderItem/index.tsx +1 -1
- package/src/components/TableRowAsset/index.tsx +38 -46
- package/src/components/TableRowUpload/index.tsx +6 -1
- package/src/components/Tag/index.tsx +1 -0
- package/src/components/TagIcon/index.tsx +0 -2
- package/src/components/TagView/index.tsx +1 -1
- package/src/components/TagsPanel/index.tsx +1 -1
- package/src/components/Tool/index.tsx +1 -1
- package/src/hooks/usePortalPopoverProps.ts +1 -0
- package/src/plugin.tsx +0 -1
- package/src/styled/react-select/creatable.tsx +0 -9
- package/src/styled/react-select/single.tsx +0 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {AssetSourceComponentProps} from 'sanity'
|
|
2
|
+
import {ForwardRefExoticComponent} from 'react'
|
|
3
|
+
import {JSX as JSX_2} from 'react'
|
|
2
4
|
import {Plugin as Plugin_2} from 'sanity'
|
|
3
|
-
import {
|
|
5
|
+
import {RefAttributes} from 'react'
|
|
6
|
+
import {SVGProps} from 'react'
|
|
4
7
|
|
|
5
8
|
export declare const media: Plugin_2<void | MediaToolOptions>
|
|
6
9
|
|
|
7
10
|
export declare const mediaAssetSource: {
|
|
8
|
-
component: (props: AssetSourceComponentProps) =>
|
|
9
|
-
icon:
|
|
10
|
-
Omit<
|
|
11
|
+
component: (props: AssetSourceComponentProps) => JSX_2.Element
|
|
12
|
+
icon: ForwardRefExoticComponent<
|
|
13
|
+
Omit<SVGProps<SVGSVGElement>, 'ref'> & RefAttributes<SVGSVGElement>
|
|
11
14
|
>
|
|
12
15
|
name: string
|
|
13
16
|
title: string
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {AssetSourceComponentProps} from 'sanity'
|
|
2
|
+
import {ForwardRefExoticComponent} from 'react'
|
|
3
|
+
import {JSX as JSX_2} from 'react'
|
|
2
4
|
import {Plugin as Plugin_2} from 'sanity'
|
|
3
|
-
import {
|
|
5
|
+
import {RefAttributes} from 'react'
|
|
6
|
+
import {SVGProps} from 'react'
|
|
4
7
|
|
|
5
8
|
export declare const media: Plugin_2<void | MediaToolOptions>
|
|
6
9
|
|
|
7
10
|
export declare const mediaAssetSource: {
|
|
8
|
-
component: (props: AssetSourceComponentProps) =>
|
|
9
|
-
icon:
|
|
10
|
-
Omit<
|
|
11
|
+
component: (props: AssetSourceComponentProps) => JSX_2.Element
|
|
12
|
+
icon: ForwardRefExoticComponent<
|
|
13
|
+
Omit<SVGProps<SVGSVGElement>, 'ref'> & RefAttributes<SVGSVGElement>
|
|
11
14
|
>
|
|
12
15
|
name: string
|
|
13
16
|
title: string
|