import { BlockProperties, ComponentDefinition, Plugin } from 'grapesjs'; export interface PluginOptions { /** * Library to load asynchronously in case `Typed` is not found. * @default 'https://cdn.jsdelivr.net/npm/typed.js@2.0.11' */ script?: string; /** * Object to extend the default block, eg. `{ label: 'Typed', ... }`. * Pass a falsy value to avoid adding the block * @default {} */ block?: Partial; /** * Customize the component props. The final object should be returned. * @default (props) => props * @example * props: props => { * props.traits = props.traits.map(trait => { * if (trait.name == 'strings') { * trait.label = 'Custom trait label'; * } * // this trait will be removed * if (trait.name == 'fade-out-class') return; * return trait; * }).filter(Boolean); * * return props; * } */ props?: (p: ComponentDefinition) => ComponentDefinition; } export type RequiredPluginOptions = Required; declare const plugin: Plugin; export { plugin as default, }; export {};