Expose media files api call

This commit is contained in:
Daniel Lautzenheiser 2022-09-07 23:04:27 -04:00
parent 7f99e811b1
commit 7145e8d855
2 changed files with 2 additions and 1 deletions

View File

@ -579,7 +579,7 @@ declare module 'netlify-cms-core' {
getRemarkPlugins: () => Array<Pluggable>;
getLocale: (locale: string) => CmsLocalePhrases | undefined;
getMediaLibrary: (name: string) => CmsMediaLibrary | undefined;
selectMediaFiles(field?: EntryField | undefined): MediaFile[];
selectMediaFiles: (field?: EntryField | undefined) => MediaFile[];
resolveWidget: (name: string) => CmsWidget | undefined;
getPreviewStyles: () => PreviewStyle[];
getPreviewTemplate: (name: string) => ComponentType<PreviewTemplateComponentProps> | undefined;

View File

@ -54,6 +54,7 @@ export default {
getBackend,
registerMediaLibrary,
getMediaLibrary,
selectMediaFiles,
registerLocale,
getLocale,
registerEventListener,