import { BlockProperties, ComponentDefinition, Plugin } from 'grapesjs'; export type TraitsProperty = ComponentDefinition["traits"]; export type PluginOptions = { /** * The ID used to create tooltip block and component * @default 'tooltip' */ id?: string; /** * The ID used to create tooltip block and component * @default 'Tooltip' */ labelTooltip?: string; /** * Object to extend the default tooltip block. Pass a falsy value to avoid adding the block. * @example * { label: 'Tooltip', category: 'Extra', ... } */ blockTooltip?: Partial; /** * Object to extend the default tooltip properties. * @example * { name: 'Tooltip', droppable: false, ... } */ propsTooltip?: ComponentDefinition; /** * A function which allows to extend default traits by receiving the original array and returning a new one. */ extendTraits?: (traits: TraitsProperty) => TraitsProperty; /** * Tooltip attribute prefix. * @default 'data-tooltip' */ attrTooltip?: string; /** * Tooltip class prefix. * @default 'tooltip-component' */ classTooltip?: string; /** * Custom CSS styles for the tooltip component, this will replace the default one. * @default 'tooltip-component' */ style?: string; /** * Additional CSS styles for the tooltip component. * @default 'tooltip-component' */ styleAdditional?: string; /** * Make all tooltip relative classes private. * @default true */ privateClasses?: boolean; /** * Indicate if the tooltip can be styled. * You can pass an array of which proprties can be styled. * @example ['color', 'background-color'] */ stylableTooltip?: string[] | boolean; /** * If true, force the tooltip to be shown when the default "Style tooltip" trait button is clicked. * @default true */ showTooltipOnStyle?: boolean; }; declare const plugin: Plugin; export { plugin as default, }; export {};