export type ColorPickerMode = 'solid' | 'gradient'; export type BasePickerOptions = { position?: { x: number; y: number; }; mode?: ColorPickerMode[]; showBrand?: boolean; showCustom?: boolean; showOpacity?: boolean; hideCustomColors?: boolean; biData?: { origin?: string; }; }; export type BackgroundFillValue = { backgroundImage: string; backgroundColor: string; }; export type BackgroundPickerOptions = BasePickerOptions & { initialValue?: Partial; onChange?: (value: BackgroundFillValue) => void; }; export type ColorPickerOptions = BasePickerOptions & { initialValue?: string; onChange?: (color: string) => void; showAdvancedSettings?: boolean; onApply?: (color: string) => void; onClose?: () => void; onCancel?: () => void; }; /** * Duplicated types from editor-platform-private-api / HostAPIBase.ts * to allow use them in public packages */ export type OpenColorPickerFn = (options: { color?: string; position?: { x: number; y: number; }; }, onColorChange: (value: { color: string; theme: string; isHover: boolean; }) => void) => void; export type OpenLinkPanelFn = (options: { value?: object; showLinkTargetSection?: boolean; }) => Promise;