sanity-plugin-media 3.0.0 → 3.0.2

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.
Files changed (45) hide show
  1. package/dist/index.d.mts +7 -4
  2. package/dist/index.d.ts +7 -4
  3. package/dist/index.js +436 -265
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +455 -285
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +26 -30
  8. package/src/components/AssetGridVirtualized/index.tsx +13 -2
  9. package/src/components/Browser/index.tsx +30 -41
  10. package/src/components/ButtonViewGroup/index.tsx +0 -1
  11. package/src/components/CardAsset/index.tsx +13 -14
  12. package/src/components/CardUpload/index.tsx +1 -1
  13. package/src/components/Controls/index.tsx +0 -1
  14. package/src/components/DebugControls/index.tsx +1 -0
  15. package/src/components/DialogAssetEdit/index.tsx +10 -3
  16. package/src/components/DialogConfirm/index.tsx +8 -1
  17. package/src/components/DialogSearchFacets/index.tsx +1 -1
  18. package/src/components/DialogTagCreate/index.tsx +1 -1
  19. package/src/components/DialogTagEdit/index.tsx +1 -1
  20. package/src/components/DialogTags/index.tsx +1 -1
  21. package/src/components/Dialogs/index.tsx +1 -1
  22. package/src/components/DocumentList/index.tsx +1 -1
  23. package/src/components/FileAssetPreview/index.tsx +1 -1
  24. package/src/components/FormFieldInputLabel/index.tsx +2 -1
  25. package/src/components/FormSubmitButton/index.tsx +1 -0
  26. package/src/components/Header/index.tsx +1 -1
  27. package/src/components/Image/index.tsx +4 -4
  28. package/src/components/OrderSelect/index.tsx +0 -1
  29. package/src/components/ReduxProvider/index.tsx +0 -1
  30. package/src/components/SearchFacet/index.tsx +4 -9
  31. package/src/components/SearchFacetNumber/index.tsx +1 -1
  32. package/src/components/SearchFacetSelect/index.tsx +1 -1
  33. package/src/components/SearchFacets/index.tsx +1 -1
  34. package/src/components/SearchFacetsControl/index.tsx +1 -1
  35. package/src/components/TableHeader/index.tsx +4 -6
  36. package/src/components/TableHeaderItem/index.tsx +1 -1
  37. package/src/components/TableRowAsset/index.tsx +37 -45
  38. package/src/components/TableRowUpload/index.tsx +6 -1
  39. package/src/components/Tag/index.tsx +1 -0
  40. package/src/components/TagIcon/index.tsx +0 -2
  41. package/src/components/TagView/index.tsx +1 -1
  42. package/src/components/TagsPanel/index.tsx +1 -1
  43. package/src/components/Tool/index.tsx +1 -1
  44. package/src/hooks/usePortalPopoverProps.ts +1 -0
  45. package/src/plugin.tsx +0 -1
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 {default as React_2} from 'react'
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) => React_2.JSX.Element
9
- icon: React_2.ForwardRefExoticComponent<
10
- Omit<React_2.SVGProps<SVGSVGElement>, 'ref'> & React_2.RefAttributes<SVGSVGElement>
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 {default as React_2} from 'react'
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) => React_2.JSX.Element
9
- icon: React_2.ForwardRefExoticComponent<
10
- Omit<React_2.SVGProps<SVGSVGElement>, 'ref'> & React_2.RefAttributes<SVGSVGElement>
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