UNPKG

@shopware-ag/meteor-admin-sdk

Version:

The Meteor SDK for the Shopware Administration.

44 lines (43 loc) 1.51 kB
export declare const open: (messageOptions: import("../../channel").MessageDataType<"uiMediaModalOpen"> & import("../../channel").BaseMessageOptions) => Promise<void>; export declare const openSaveMedia: (messageOptions: import("../../channel").MessageDataType<"uiMediaModalOpenSaveMedia"> & import("../../channel").BaseMessageOptions) => Promise<void>; export type uiMediaModalOpen = { responseType: void; /** * Define initial folder id where the media modal will open. */ initialFolderId?: string; entityContext?: string; /** * Define single or multiple selection. */ allowMultiSelect?: boolean; /** * Defines which tab should be opened by default. */ defaultTab?: 'upload' | 'library'; /** * Define the file types which are allowed to be uploaded. * The file types are defined by their MIME type. * For example: "image/png, image/jpeg, image/gif" */ fileAccept?: string; /** * Define the selected properties which should be returned in callback function. */ selectors?: string[]; /** * Callback function which will be called once the media item is selected. */ callback: (mediaSelections: unknown[]) => void; }; export type uiMediaModalOpenSaveMedia = { responseType: void; initialFolderId?: string; initialFileName?: string; fileType?: string; callback: (params: { fileName: string; folderId: string; mediaId?: string; }) => void; };