Expose media files api call
This commit is contained in:
parent
7f99e811b1
commit
7145e8d855
2
packages/netlify-cms-core/index.d.ts
vendored
2
packages/netlify-cms-core/index.d.ts
vendored
@ -579,7 +579,7 @@ declare module 'netlify-cms-core' {
|
|||||||
getRemarkPlugins: () => Array<Pluggable>;
|
getRemarkPlugins: () => Array<Pluggable>;
|
||||||
getLocale: (locale: string) => CmsLocalePhrases | undefined;
|
getLocale: (locale: string) => CmsLocalePhrases | undefined;
|
||||||
getMediaLibrary: (name: string) => CmsMediaLibrary | undefined;
|
getMediaLibrary: (name: string) => CmsMediaLibrary | undefined;
|
||||||
selectMediaFiles(field?: EntryField | undefined): MediaFile[];
|
selectMediaFiles: (field?: EntryField | undefined) => MediaFile[];
|
||||||
resolveWidget: (name: string) => CmsWidget | undefined;
|
resolveWidget: (name: string) => CmsWidget | undefined;
|
||||||
getPreviewStyles: () => PreviewStyle[];
|
getPreviewStyles: () => PreviewStyle[];
|
||||||
getPreviewTemplate: (name: string) => ComponentType<PreviewTemplateComponentProps> | undefined;
|
getPreviewTemplate: (name: string) => ComponentType<PreviewTemplateComponentProps> | undefined;
|
||||||
|
@ -54,6 +54,7 @@ export default {
|
|||||||
getBackend,
|
getBackend,
|
||||||
registerMediaLibrary,
|
registerMediaLibrary,
|
||||||
getMediaLibrary,
|
getMediaLibrary,
|
||||||
|
selectMediaFiles,
|
||||||
registerLocale,
|
registerLocale,
|
||||||
getLocale,
|
getLocale,
|
||||||
registerEventListener,
|
registerEventListener,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user