import type {} from '../../typedef'; export default Embed; export type EmbedPluginOptions = { /** * - Whether the embed element can be resized. */ canResize?: boolean; /** * - Whether to display the height input field. */ showHeightInput?: boolean; /** * - The default width of the embed element (numeric value or with unit). */ defaultWidth?: string; /** * - The default height of the embed element (numeric value or with unit). */ defaultHeight?: string; /** * - Whether to allow only percentage-based sizing. */ percentageOnlySize?: boolean; /** * - The URL for file uploads. * - The server must return: * ```js * { * "result": [ * { * "url": "https://example.com/embed.html", * "name": "embed.html", * "size": 2048 * } * ] * } * ``` */ uploadUrl?: string; /** * - Headers to include in file upload requests. */ uploadHeaders?: { [x: string]: string; }; /** * - The total file upload size limit in bytes. */ uploadSizeLimit?: number; /** * - The single file upload size limit in bytes. */ uploadSingleSizeLimit?: number; /** * - Additional attributes to set on the `IFRAME` tag. * ```js * { iframeTagAttributes: { allowfullscreen: 'true', loading: 'lazy' } } * ``` */ iframeTagAttributes?: { [x: string]: string; }; /** * - YouTube query parameter appended to the embed URL. * ```js * { query_youtube: 'autoplay=1&mute=1' } * ``` */ query_youtube?: string; /** * - Vimeo query parameter appended to the embed URL. * ```js * { query_vimeo: 'autoplay=1' } * ``` */ query_vimeo?: string; /** * - Additional URL patterns to recognize as embeddable content. */ urlPatterns?: Array; /** * - Allowed `