import { C as CoreEditorCommands, e as CoreEditorActiveStates, f as CoreTheme, g as CoreEditorMode, h as CoreToolbarClassNames, i as ToolbarStyleVars, T as ToolbarLayout, c as ToolbarVisibility, B as BlockHeadingLevel, j as ToolbarItemType, D as DefaultSettings } from './index-DPw2EK7p.js'; export { k as BLOCK_HEADING_LEVELS, l as BlockFormat, m as CommandConfig, n as CommandGenerationOptions, o as DEFAULT_TOOLBAR_LAYOUT, b as EditorPreset, d as EditorThemeOverrides, p as ExtensiveEditor, q as ExtensiveEditorMode, E as ExtensiveEditorProps, a as ExtensiveEditorRef, r as ExtensiveExtensionsConfig, s as FeatureFlag, F as FeatureFlagOverrides, t as FeatureFlags, G as GifUploadHandler, I as ImageAlignment, u as ImageUploadHandler, v as InsertImageConfig, w as InsertTableConfig, K as KeyboardShortcut, Q as QuoteStyleVars, S as ShortcutBindingOverride, x as ShortcutConfig, y as SlashCommandVisibility, z as SlashCommandVisibilityFilters, A as SlashCommandVisibilitySelection, H as SyntaxHighlightColorMode, J as SyntaxHighlightColorTokens, L as SyntaxHighlightColors, M as TRADITIONAL_TOOLBAR_LAYOUT, N as TextAlignment, O as ToolbarAlignment, P as ToolbarPosition, R as ToolbarSection, U as commandsToCommandPaletteItems, V as commandsToSlashCommandItems, W as createExtensiveExtensions, X as extensiveExtensions, Y as generateCommands, Z as presetRegistry, _ as registerKeyboardShortcuts } from './index-DPw2EK7p.js'; import { CommandPaletteItem, EmojiCatalogItem, SlashCommandItem, FloatingToolbarExtension, LexicalEditor, EditorConfig } from '@lyfie/luthor-headless'; import * as luthorHeadless from '@lyfie/luthor-headless'; export { luthorHeadless as headless }; export { CodeIntelligenceCommands, CodeIntelligenceConfig, CodeIntelligenceExtension, codeIntelligenceExtension } from '@lyfie/luthor-headless'; import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { ForwardRefExoticComponent, SVGProps, RefAttributes, ReactNode } from 'react'; export { D as ClassNameToken, a as PAPYRA_AVAILABLE_MODES, b as PAPYRA_COLORED_VARIANT_CLASS, c as PAPYRA_FEATURE_DEFAULTS, d as PAPYRA_FEATURE_ENFORCED, h as PAPYRA_THEME_OVERRIDES, i as PAPYRA_THEME_TOKEN_NAMES, k as PapyraBlockAnchor, m as PapyraEditor, n as PapyraEditorProps, o as PapyraEditorRef, s as PapyraOutlineHeading, t as PapyraPresetConfig, u as PapyraThemeOptions, v as PapyraThemeTokenName, E as PresetFeatureOverrides, F as PresetFeaturePolicy, x as createPapyraPreset, y as createPapyraThemeOverrides, G as joinClassNames, z as papyraFeaturePolicy, A as papyraPreset, B as resolvePapyraThemeOverrides } from './preset-npZJt59X.js'; export { E as ExtensivePresetConfig, c as createExtensivePreset, e as extensivePreset } from './preset-iV8kbSxN.js'; import { S as StyleVarRecord, a as StyleVarValueRecord, F as FeatureFlagsLike, b as FeatureShortcutSpec, T as ToolbarFeatureMap, P as PresetModeCache } from './index-DvfunXz7.js'; export { HTMLEditor, HTMLEditorMode, HTMLEditorProps, htmlEditorPreset } from './presets/html-editor/index.js'; export { L as LegacyRichEditor, a as LegacyRichEditorMode, b as LegacyRichEditorProps, c as LegacyRichSourceFormat } from './LegacyRichEditor-CvhdB8WN.js'; export { MarkDownEditor, MarkDownEditorMode, MarkDownEditorProps, mdEditorPreset } from './presets/md-editor/index.js'; export { legacyRichPreset } from './presets/legacy-rich/index.js'; declare function CommandPalette({ isOpen, onClose, commands, }: { isOpen: boolean; onClose: () => void; commands: CommandPaletteItem[]; }): react_jsx_runtime.JSX.Element | null; declare function EmojiSuggestionMenu({ isOpen, query, position, portalContainer, suggestions, onClose, onExecute, }: { isOpen: boolean; query: string; position: { x: number; y: number; } | null; portalContainer?: HTMLElement | null; suggestions: EmojiCatalogItem[]; onClose: () => void; onExecute: (emoji: string) => void; }): react_jsx_runtime.JSX.Element | null; declare function SlashCommandMenu({ isOpen, query, position, portalContainer, commands, onClose, onExecute, }: { isOpen: boolean; query: string; position: { x: number; y: number; } | null; portalContainer?: HTMLElement | null; commands: SlashCommandItem[]; onClose: () => void; onExecute: (commandId: string) => void; }): react_jsx_runtime.JSX.Element | null; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare function setFloatingToolbarContext(commands: CoreEditorCommands, activeStates: CoreEditorActiveStates, editorTheme: CoreTheme, isFeatureEnabled?: (feature: string) => boolean): void; declare function createFloatingToolbarExtension(): FloatingToolbarExtension; type FloatingSelectionRect = { y: number; x: number; positionFromRight?: boolean; }; interface FloatingToolbarProps { isVisible: boolean; selectionRect?: FloatingSelectionRect; commands: CoreEditorCommands; activeStates: CoreEditorActiveStates; editorTheme?: CoreTheme; hide?: () => void; isFeatureEnabled?: (feature: string) => boolean; } declare function FloatingToolbar({ isVisible, selectionRect, commands, activeStates, editorTheme, hide, isFeatureEnabled, }: FloatingToolbarProps): react_jsx_runtime.JSX.Element | null; interface LinkHoverBubbleProps { editor: LexicalEditor | null; commands: CoreEditorCommands; editorTheme?: CoreTheme; disabled?: boolean; } declare function LinkHoverBubble({ editor, commands, editorTheme, disabled, }: LinkHoverBubbleProps): react.ReactPortal | null; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare const BoldIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const ItalicIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const UnderlineIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const StrikethroughIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const CodeIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const CodeBlockIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const LinkIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const UnlinkIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const ListIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const ListCheckIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const ListOrderedIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const UndoIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const RedoIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const ImageIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const AlignLeftIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const AlignCenterIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const AlignJustifyIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const AlignRightIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const UploadIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const MinusIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const TableIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const FileCodeIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const EyeIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const HighlighterIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const PencilIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const CommandIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const PaletteIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const TypeIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const QuoteIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const IndentIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const OutdentIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const SunIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const MoonIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const SearchIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const EmojiIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const SubscriptIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const SuperscriptIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const ChevronDownIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare const CloseIcon: ForwardRefExoticComponent & { size?: number | string; strokeWidth?: number | string; } & RefAttributes>; declare function ModeTabs({ mode, onModeChange, labels, availableModes, isConverting, }: { mode: CoreEditorMode; onModeChange: (mode: CoreEditorMode) => void; labels?: Partial>; availableModes?: readonly CoreEditorMode[]; isConverting?: CoreEditorMode | null; }): react_jsx_runtime.JSX.Element; declare function SourceView({ value, onChange, placeholder, className, wrap, showLineNumbers, }: { value: string; onChange: (value: string) => void; placeholder: string; className?: string; wrap?: "soft" | "hard" | "off"; showLineNumbers?: boolean; }): react_jsx_runtime.JSX.Element; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare function createPresetEditorConfig(presetId: string, placeholder: string): EditorConfig; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare function formatJSONSource(input: string): string; declare function formatMarkdownSource(input: string): string; declare function formatHTMLSource(input: string): string; declare function isToolbarItemSupported(itemType: ToolbarItemType, hasExtension: (name: string) => boolean): boolean; declare function isToolbarItemVisible(itemType: ToolbarItemType, hasExtension: (name: string) => boolean, toolbarVisibility?: ToolbarVisibility): boolean; declare function filterToolbarLayout(layout: ToolbarLayout, hasExtension: (name: string) => boolean, toolbarVisibility?: ToolbarVisibility): ToolbarLayout; interface ToolbarProps { commands: CoreEditorCommands; hasExtension: (name: string) => boolean; activeStates: CoreEditorActiveStates; isDark: boolean; toggleTheme: () => void; onCommandPaletteOpen?: () => void; imageUploadHandler?: (file: File) => Promise; gifUploadHandler?: (file: File) => Promise; classNames?: CoreToolbarClassNames; toolbarStyleVars?: ToolbarStyleVars; layout?: ToolbarLayout; toolbarVisibility?: ToolbarVisibility; headingOptions?: readonly BlockHeadingLevel[]; paragraphLabel?: string; isListStyleDropdownEnabled?: boolean; } declare function Toolbar({ commands, hasExtension, activeStates, isDark, toggleTheme, onCommandPaletteOpen, imageUploadHandler, gifUploadHandler, classNames, toolbarStyleVars, layout, toolbarVisibility, headingOptions, paragraphLabel, isListStyleDropdownEnabled, }: ToolbarProps): react_jsx_runtime.JSX.Element; declare function IconButton({ children, onClick, title, active, disabled, className, type, }: { children: ReactNode; onClick?: () => void; title?: string; active?: boolean; disabled?: boolean; className?: string; type?: "button" | "submit" | "reset"; }): react_jsx_runtime.JSX.Element; declare function Button({ children, onClick, variant, type, className, }: { children: ReactNode; onClick?: () => void; variant?: "primary" | "secondary"; type?: "button" | "submit" | "reset"; className?: string; }): react_jsx_runtime.JSX.Element; declare function Select({ value, onValueChange, options, placeholder, }: { value: string; onValueChange: (value: string) => void; options: Array<{ value: string; label: string; }>; placeholder?: string; }): react_jsx_runtime.JSX.Element; declare function Dropdown({ trigger, children, isOpen, onOpenChange, }: { trigger: ReactNode; children: ReactNode; isOpen: boolean; onOpenChange: (open: boolean) => void; }): react_jsx_runtime.JSX.Element; declare function Dialog({ isOpen, onClose, title, children, }: { isOpen: boolean; onClose: () => void; title: string; children: ReactNode; }): react_jsx_runtime.JSX.Element | null; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare function normalizeStyleVarsKey(styleVars?: StyleVarValueRecord): string; declare function createDefaultSettingsStyleVarRecord(defaultSettings?: DefaultSettings): StyleVarRecord | undefined; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare function isEditableCommandTarget(target: EventTarget | null): boolean; declare function isShortcutMatch(event: KeyboardEvent, shortcut: FeatureShortcutSpec): boolean; declare function mergeToolbarVisibilityWithFeatures(toolbarVisibility: ToolbarVisibility | undefined, featureFlags: FeatureFlagsLike, toolbarFeatureMap: ToolbarFeatureMap): ToolbarVisibility; declare function createFeatureGuardedCommands(commands: CoreEditorCommands, featureFlags: FeatureFlagsLike, isInCodeBlock: boolean): CoreEditorCommands; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ declare function createModeCache(initialValidModes: readonly TMode[]): PresetModeCache; declare function invalidateModeCache(cache: PresetModeCache, alwaysValidModes: readonly TMode[]): void; declare function isModeCached(cache: PresetModeCache, mode: TMode): boolean; declare function markModeCached(cache: PresetModeCache, mode: TMode): void; export { AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, BlockHeadingLevel, BoldIcon, Button, ChevronDownIcon, CloseIcon, CodeBlockIcon, CodeIcon, CommandIcon, CommandPalette, CoreEditorActiveStates, CoreEditorCommands, CoreEditorMode, CoreTheme, CoreToolbarClassNames, DefaultSettings, Dialog, Dropdown, EmojiIcon, EmojiSuggestionMenu, EyeIcon, FeatureFlagsLike, FeatureShortcutSpec, FileCodeIcon, FloatingToolbar, type FloatingToolbarProps, HighlighterIcon, IconButton, ImageIcon, IndentIcon, ItalicIcon, LinkHoverBubble, type LinkHoverBubbleProps, LinkIcon, ListCheckIcon, ListIcon, ListOrderedIcon, MinusIcon, ModeTabs, MoonIcon, OutdentIcon, PaletteIcon, PencilIcon, PresetModeCache, QuoteIcon, RedoIcon, SearchIcon, Select, SlashCommandMenu, SourceView, StrikethroughIcon, StyleVarRecord, StyleVarValueRecord, SubscriptIcon, SunIcon, SuperscriptIcon, TableIcon, Toolbar, ToolbarFeatureMap, ToolbarItemType, ToolbarLayout, type ToolbarProps, ToolbarStyleVars, ToolbarVisibility, TypeIcon, UnderlineIcon, UndoIcon, UnlinkIcon, UploadIcon, createDefaultSettingsStyleVarRecord, createFeatureGuardedCommands, createFloatingToolbarExtension, createModeCache, createPresetEditorConfig, filterToolbarLayout, formatHTMLSource, formatJSONSource, formatMarkdownSource, invalidateModeCache, isEditableCommandTarget, isModeCached, isShortcutMatch, isToolbarItemSupported, isToolbarItemVisible, markModeCached, mergeToolbarVisibilityWithFeatures, normalizeStyleVarsKey, setFloatingToolbarContext };