BlockSuite API Documentation / @blocksuite/affine-inline-preset
@blocksuite/affine-inline-preset
Interfaces
TextFormatConfig
Properties
action()
action: (
host) =>void
Parameters
host
Returns
void
activeWhen()
activeWhen: (
host) =>boolean
Parameters
host
Returns
boolean
hotkey?
optionalhotkey:string
icon
icon:
TemplateResult<1>
id
id:
string
name
name:
string
textChecker()?
optionaltextChecker: (host) =>boolean
Parameters
host
Returns
boolean
Type Aliases
AffineInlineRootElement
AffineInlineRootElement =
InlineRootElement<AffineTextAttributes>
Variables
BackgroundInlineSpecExtension
constBackgroundInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
boldDeltaToHtmlAdapterMatcher
constboldDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
boldDeltaToMarkdownAdapterMatcher
constboldDeltaToMarkdownAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToMarkdownAdapterMatcher>
BoldInlineSpecExtension
constBoldInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
BoldItalicMarkdown
constBoldItalicMarkdown:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
BoldMarkdown
constBoldMarkdown:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
CodeExtension
constCodeExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
CodeInlineSpecExtension
constCodeInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
ColorInlineSpecExtension
constColorInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
DefaultInlineManagerExtension
constDefaultInlineManagerExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineManager<AffineTextAttributes>>
deleteTextCommand
constdeleteTextCommand:Command<{currentTextSelection?:TextSelection;textSelection?:TextSelection; }>
FORMAT_BLOCK_SUPPORT_FLAVOURS
constFORMAT_BLOCK_SUPPORT_FLAVOURS:string[]
FORMAT_NATIVE_SUPPORT_FLAVOURS
constFORMAT_NATIVE_SUPPORT_FLAVOURS:string[]
FORMAT_TEXT_SUPPORT_FLAVOURS
constFORMAT_TEXT_SUPPORT_FLAVOURS:string[]
formatBlockCommand
constformatBlockCommand:Command<{blockSelections?:BlockSelection[];currentBlockSelections?:BlockSelection[];mode?:"replace"|"merge";styles:AffineTextAttributes; }>
formatNativeCommand
constformatNativeCommand:Command<{mode?:"replace"|"merge";range?:Range;styles:AffineTextAttributes; }>
formatTextCommand
constformatTextCommand:Command<{currentTextSelection?:TextSelection;mode?:"replace"|"merge";styles:AffineTextStyleAttributes;textSelection?:TextSelection; }>
getTextAttributes
constgetTextAttributes:Command<{ }, {textAttributes:AffineTextAttributes; }>
highlightBackgroundDeltaToHtmlAdapterMatcher
consthighlightBackgroundDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
highlightColorDeltaToHtmlAdapterMatcher
consthighlightColorDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
htmlBrElementToDeltaMatcher
consthtmlBrElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlCodeElementToDeltaMatcher
consthtmlCodeElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlColorStyleElementToDeltaMatcher
consthtmlColorStyleElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlDelElementToDeltaMatcher
consthtmlDelElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
HtmlInlineToDeltaAdapterExtensions
constHtmlInlineToDeltaAdapterExtensions:ExtensionType&object[]
htmlItalicElementToDeltaMatcher
consthtmlItalicElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlListToDeltaMatcher
consthtmlListToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlMarkElementToDeltaMatcher
consthtmlMarkElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlStrongElementToDeltaMatcher
consthtmlStrongElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlTextLikeElementToDeltaMatcher
consthtmlTextLikeElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlTextToDeltaMatcher
consthtmlTextToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
htmlUnderlineElementToDeltaMatcher
consthtmlUnderlineElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
InlineAdapterExtensions
constInlineAdapterExtensions:ExtensionType[]
inlineCodeDeltaToHtmlAdapterMatcher
constinlineCodeDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
inlineCodeDeltaToMarkdownAdapterMatcher
constinlineCodeDeltaToMarkdownAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToMarkdownAdapterMatcher>
InlineDeltaToHtmlAdapterExtensions
constInlineDeltaToHtmlAdapterExtensions:ExtensionType&object[]
InlineDeltaToMarkdownAdapterExtensions
constInlineDeltaToMarkdownAdapterExtensions:ExtensionType&object[]
InlineSpecExtensions
constInlineSpecExtensions:ExtensionType[]
isTextAttributeActive
constisTextAttributeActive:Command<{key: keyofAffineTextAttributes; }>
italicDeltaToHtmlAdapterMatcher
constitalicDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
italicDeltaToMarkdownAdapterMatcher
constitalicDeltaToMarkdownAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToMarkdownAdapterMatcher>
ItalicExtension
constItalicExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
ItalicInlineSpecExtension
constItalicInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
markdownDeleteToDeltaMatcher
constmarkdownDeleteToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
markdownEmphasisToDeltaMatcher
constmarkdownEmphasisToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
MarkdownExtensions
constMarkdownExtensions:ExtensionType[]
markdownHtmlToDeltaMatcher
constmarkdownHtmlToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
markdownInlineCodeToDeltaMatcher
constmarkdownInlineCodeToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
MarkdownInlineToDeltaAdapterExtensions
constMarkdownInlineToDeltaAdapterExtensions:ExtensionType&object[]
markdownListToDeltaMatcher
constmarkdownListToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
markdownStrongToDeltaMatcher
constmarkdownStrongToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
markdownTextToDeltaMatcher
constmarkdownTextToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
notionHtmlBrElementToDeltaMatcher
constnotionHtmlBrElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlCodeElementToDeltaMatcher
constnotionHtmlCodeElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlDelElementToDeltaMatcher
constnotionHtmlDelElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
NotionHtmlInlineToDeltaAdapterExtensions
constNotionHtmlInlineToDeltaAdapterExtensions:ExtensionType[]
notionHtmlItalicElementToDeltaMatcher
constnotionHtmlItalicElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlLiElementToDeltaMatcher
constnotionHtmlLiElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlListToDeltaMatcher
constnotionHtmlListToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlMarkElementToDeltaMatcher
constnotionHtmlMarkElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlSpanElementToDeltaMatcher
constnotionHtmlSpanElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlStrongElementToDeltaMatcher
constnotionHtmlStrongElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlStyleElementToDeltaMatcher
constnotionHtmlStyleElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlTextToDeltaMatcher
constnotionHtmlTextToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
notionHtmlUnderlineElementToDeltaMatcher
constnotionHtmlUnderlineElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
strikeDeltaToHtmlAdapterMatcher
conststrikeDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
strikeDeltaToMarkdownAdapterMatcher
conststrikeDeltaToMarkdownAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToMarkdownAdapterMatcher>
StrikeInlineSpecExtension
constStrikeInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
StrikethroughExtension
constStrikethroughExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
textFormatConfigs
consttextFormatConfigs:TextFormatConfig[]
toggleBold
consttoggleBold:Command
toggleCode
consttoggleCode:Command
toggleItalic
consttoggleItalic:Command
toggleStrike
consttoggleStrike:Command
toggleTextStyleCommand
consttoggleTextStyleCommand:Command<{key:Extract<keyofAffineTextStyleAttributes,"bold"|"italic"|"underline"|"strike"|"code">; }>
toggleUnderline
consttoggleUnderline:Command
underlineDeltaToHtmlAdapterMatcher
constunderlineDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
UnderlineInlineSpecExtension
constUnderlineInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
UnderthroughExtension
constUnderthroughExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
Functions
isFormatSupported()
isFormatSupported(
chain):Chain<InitCommandCtx&object>
Parameters
chain
Returns
Chain<InitCommandCtx & object>
textKeymap()
textKeymap(
std):Record<string,UIEventHandler>
Parameters
std
Returns
Record<string, UIEventHandler>