BlockSuite API Documentation / @blocksuite/blocks
@blocksuite/blocks
Enumerations
Classes
- AIItemList
- AffineAIPanelWidget
- AffineDocRemoteSelectionWidget
- AffineDragHandleWidget
- AffineEdgelessZoomToolbarWidget
- AffineFormatBarWidget
- AffineImageToolbarWidget
- AffineInnerModalWidget
- AffineLinkedDocWidget
- AffineModalWidget
- AffinePageDraggingAreaWidget
- AffinePieMenuWidget
- AffineReference
- AffineSlashMenuWidget
- AffineSurfaceRefToolbar
- AttachmentAdapter
- AttachmentBlockComponent
- AttachmentBlockModel
- AttachmentBlockService
- BlockHubWidget
- BookmarkBlockComponent
- BookmarkBlockModel
- BookmarkBlockService
- Bound
- BrushElementModel
- CodeBlockComponent
- ConnectorElementModel
- CopilotSelectionController
- DataViewBlockComponent
- DataViewBlockModel
- DatabaseBlockComponent
- DatabaseBlockModel
- DatabaseBlockService
- DatabaseBlockViewSource
- DividerBlockComponent
- EdgelessBlock
- EdgelessCopilotToolbarEntry
- EdgelessCopilotWidget
- EdgelessElementToolbarWidget
- EdgelessRemoteSelectionWidget
- EdgelessRootBlockComponent
- EdgelessRootService
- EdgelessSurfaceRefBlockComponent
- EdgelessTemplatePanel
- ElementModel
- EmbedBlockElement
- EmbedFigmaBlockComponent
- EmbedFigmaModel
- EmbedGithubBlockComponent
- EmbedGithubBlockService
- EmbedGithubModel
- EmbedHtmlBlockComponent
- EmbedHtmlBlockService
- EmbedHtmlModel
- EmbedLinkedDocBlockComponent
- EmbedLinkedDocBlockService
- EmbedLinkedDocModel
- EmbedLoomBlockComponent
- EmbedLoomBlockService
- EmbedLoomModel
- EmbedSyncedDocBlockComponent
- EmbedSyncedDocBlockService
- EmbedSyncedDocModel
- EmbedYoutubeBlockComponent
- EmbedYoutubeBlockService
- EmbedYoutubeModel
- FrameBlockComponent
- FrameBlockModel
- FramePreview
- GeneralNetworkError
- GroupElementModel
- HtmlAdapter
- ImageAdapter
- ImageBlockComponent
- ImageBlockModel
- ImageBlockService
- ImageSelection
- InlineManager
- LangList
- ListBlockComponent
- ListBlockService
- MarkdownAdapter
- MindmapElementModel
- MindmapRootBlock
- MindmapService
- MindmapSurfaceBlock
- MiniMindmapPreview
- MixTextAdapter
- NoteBlockComponent
- NoteBlockModel
- NoteBlockService
- NotionHtmlAdapter
- PageClipboard
- PageRootBlockComponent
- PageRootService
- ParagraphBlockComponent
- ParagraphBlockService
- PaymentRequiredError
- PlainTextAdapter
- PreviewRootBlockComponent
- ReferenceNodeConfig
- RichText
- RootBlockModel
- RootService
- ShapeElementModel
- SpecBuilder
- SpecProvider
- SurfaceBlockComponent
- SurfaceBlockModel
- SurfaceBlockService
- SurfaceRefBlockComponent
- SurfaceRefBlockService
- TestUtils
- TextElementModel
- ThemeObserver
- Tooltip
- UnauthorizedError
- Viewport
Interfaces
- AIItemConfig
- AIItemGroupConfig
- AISubItemConfig
- AffineAIPanelWidgetConfig
- AffineTextAttributes
- BookmarkBlockEdgelessProps
- Column
- EdgelessViewport
- TemplateManager
Type Aliases
- AIError
- AbstractEditor
- AffineAIPanelState
- AffineInlineEditor
- Attachment
- AttachmentBlockProps
- BookmarkBlockProps
- Cell
- CodeBlockModel
- ColumnDataUpdater
- ColumnUpdater
- DatabaseBlockProps
- DividerBlockModel
- EdgelessModel
- EdgelessRootBlockWidgetName
- EmbedFigmaBlockProps
- EmbedFigmaBlockUrlData
- EmbedGithubBlockProps
- EmbedGithubBlockUrlData
- EmbedHtmlBlockProps
- EmbedLinkedDocBlockProps
- EmbedLoomBlockProps
- EmbedLoomBlockUrlData
- EmbedSyncedDocBlockProps
- EmbedYoutubeBlockProps
- EmbedYoutubeBlockUrlData
- HighlightOptionsGetter
- Html
- Image
- ImageBlockProps
- InlineMarkdownMatch
- InlineMarkdownMatchAction
- InlineSpecs
- InsertToPosition
- ListBlockModel
- ListType
- Markdown
- MixText
- NavigatorMode
- NotionHtml
- PageRootBlockWidgetName
- ParagraphBlockModel
- ParagraphType
- PieMenuId
- PlainText
- PointStyle
- RootBlockComponent
- SelectTag
- SerializedCells
- SerializedXYWH
- SurfaceRefBlockModel
- Template
- TemplateCategory
- TreeNode
- TreeNodeWithId
Variables
- AFFINE_AI_PANEL_WIDGET
- AFFINE_EDGELESS_COPILOT_WIDGET
- AIDoneIcon
- AIStarIcon
- AIStarIconWithAnimation
- AIStopIcon
- AddCursorIcon
- AddFrameButtonIcon
- AffineCanvasTextFonts
- AffineSchemas
- AlignBottomIcon
- AlignDistributeHorizontallyIcon
- AlignDistributeVerticallyIcon
- AlignHorizontallyIcon
- AlignLeftIcon
- AlignRightIcon
- AlignTopIcon
- AlignVerticallyIcon
- ArrowDownBigIcon
- ArrowDownIcon
- ArrowDownSmallIcon
- ArrowIcon
- ArrowLeftBigIcon
- ArrowRightBigIcon
- ArrowRightIcon
- ArrowRightSmallIcon
- ArrowUpBigIcon
- ArrowUpIcon
- AttachmentBlockSchema
- AttachmentBlockSpec
- AttachmentIcon
- AttachmentIcon16
- AutoCompleteArrowIcon
- AutoConnectLeftIcon
- AutoConnectRightIcon
- BanIcon
- BlockHubIcon
- BlockHubIcon20
- BlockHubRoundedRectangleIcon
- BlocksUtils
- BoldIcon
- BookmarkBlockSchema
- BookmarkBlockSpec
- BookmarkIcon
- BookmarkStyles
- BringForwardIcon
- BringToFrontIcon
- BulletedListIcon
- BulletedListIconLarge
- CancelWrapIcon
- CaptionIcon
- CardIcon
- ChangeShapeIcon
- CheckBoxIcon
- CloseIcon
- CodeBlockIcon
- CodeBlockSchema
- CodeBlockSpec
- CodeIcon
- ColorVariables
- CommunityCanvasTextFonts
- ConfirmIcon
- ConnectorCWithArrowIcon
- ConnectorEndpointNoneIcon
- ConnectorIcon
- ConnectorLWithArrowIcon
- ConnectorXWithArrowIcon
- CopyAsPngIcon
- CopyIcon
- CrossIcon
- CurveLineIcon
- DarkLoadingIcon
- DashLineIcon
- DataViewBlockSchema
- DataViewBlockSpec
- DatabaseBlockSchema
- DatabaseBlockSpec
- DatabaseKanbanViewIcon
- DatabaseKanbanViewIcon20
- DatabaseKanbanViewSVG
- DatabaseTableViewIcon
- DatabaseTableViewIcon20
- DatabaseTableViewSVG
- DeleteIcon
- DiamondIcon
- DividerBlockSchema
- DividerBlockSpec
- DividerIcon
- DocIcon
- DoneIcon
- DownloadIcon
- DualLinkIcon
- DualLinkIcon16
- DualLinkSVG
- DuplicateIcon
- EDGELESS_ELEMENT_TOOLBAR_WIDGET
- EdgelessEditorBlockSpecs
- EdgelessEraserIcon
- EdgelessGeneralShapeIcon
- EdgelessIcon
- EdgelessImageIcon
- EdgelessModeIcon
- EdgelessPenIcon
- EdgelessRootBlockSpec
- EdgelessSurfaceBlockSpec
- EdgelessSurfaceRefBlockSpec
- EdgelessTextIcon
- EditIcon
- ElbowedLineIcon
- EllipseIcon
- EmbedCardDarkBannerIcon
- EmbedCardDarkCubeIcon
- EmbedCardDarkHorizontalIcon
- EmbedCardDarkListIcon
- EmbedCardDarkVerticalIcon
- EmbedCardLightBannerIcon
- EmbedCardLightCubeIcon
- EmbedCardLightHorizontalIcon
- EmbedCardLightListIcon
- EmbedCardLightVerticalIcon
- EmbedEdgelessIcon
- EmbedFigmaBlockSpec
- EmbedFigmaStyles
- EmbedGithubBlockSpec
- EmbedGithubStyles
- EmbedHtmlBlockSpec
- EmbedHtmlStyles
- EmbedLinkedDocBlockSpec
- EmbedLinkedDocStyles
- EmbedLoomBlockSpec
- EmbedLoomStyles
- EmbedPageIcon
- EmbedSyncedDocBlockSpec
- EmbedSyncedDocStyles
- EmbedWebIcon
- EmbedYoutubeBlockSpec
- EmbedYoutubeStyles
- EnterIcon
- ExpandFullIcon
- ExpandIcon
- ExpandWideIcon
- ExportToHTMLIcon
- ExportToMarkdownIcon
- FlipDirectionIcon
- FontDocIcon
- FontFamilyIcon
- FontFamilyVariables
- FontLinkIcon
- FontLinkedDocIcon
- FrameBlockSchema
- FrameBlockSpec
- FrameIcon
- FrameNavigatorIcon
- FrameNavigatorNextIcon
- FrameNavigatorPrevIcon
- FrameOrderAdjustmentIcon
- FrontEndpointArrowIcon
- FrontEndpointCircleIcon
- FrontEndpointDiamondIcon
- FrontEndpointTriangleIcon
- GeneralStyleIcon
- GroupIcon
- HandIcon
- Heading1Icon
- Heading2Icon
- Heading3Icon
- Heading4Icon
- Heading5Icon
- Heading6Icon
- HelpIcon
- HiddenCardIcon
- HiddenIcon
- HighLightDuotoneIcon
- HtmlTransformer
- ImageBlockSchema
- ImageBlockSpec
- ImageGrayIcon
- ImageIcon
- ImageIcon20
- ImageUploadIcon
- ImportIcon
- InsertBelowIcon
- ItalicIcon
- LargeFrameIcon
- LassoFreeHandIcon
- LassoPolygonalIcon
- LightLoadingIcon
- LineStyleIcon
- LinkIcon
- LinkedDocIcon
- ListBlockSchema
- ListBlockSpec
- MarkdownTransformer
- MindmapBalanceLayoutIcon
- MindmapLeftLayoutIcon
- MindmapRightLayoutIcon
- MindmapStyleFour
- MindmapStyleIcon
- MindmapStyleOne
- MindmapStyleThree
- MindmapStyleTwo
- MinusIcon
- MoreCopyIcon
- MoreDeleteIcon
- MoreDuplicateIcon
- MoreHorizontalIcon
- MoreIcon
- MoreIndicatorIcon
- MoreVerticalIcon
- MoveLeftIcon
- MoveRightIcon
- NavigatorExitFullScreenIcon
- NavigatorFullScreenIcon
- NavigatorSettingsIcon
- NewDocIcon
- NewEditIcon
- NewIcon
- NoteAutoCompleteIcon
- NoteBlockSchema
- NoteBlockSpec
- NoteCornerIcon
- NoteIcon
- NoteNoShadowIcon
- NoteShadowIcon
- NoteShadowSampleIcon
- NoteSmallIcon
- NotionIcon
- NowIcon
- NumberedListIcon
- NumberedListIconLarge
- OpenIcon
- PageEditorBlockSpecs
- PageIcon
- PageRootBlockSpec
- PageSurfaceBlockSpec
- PageSurfaceRefBlockSpec
- PaletteIcon
- ParagraphBlockSchema
- ParagraphBlockSpec
- PenIcon
- PlusIcon
- PreviewEditorBlockSpecs
- QuoteIcon
- RearEndpointArrowIcon
- RearEndpointCircleIcon
- RearEndpointDiamondIcon
- RearEndpointTriangleIcon
- RefreshIcon
- ReleaseFromGroupButtonIcon
- ReloadIcon
- RemoteCursor
- RenameIcon
- ReplaceIcon
- ResetIcon
- RootBlockSchema
- RoundedRectangleIcon
- ScissorsIcon
- ScribbledDiamondIcon
- ScribbledEllipseIcon
- ScribbledRoundedRectangleIcon
- ScribbledSquareIcon
- ScribbledStyleIcon
- ScribbledTriangleIcon
- SearchIcon
- SelectIcon
- SendBackwardIcon
- SendToBackIcon
- SettingsIcon
- ShapeArrowDownSmallIcon
- ShrinkIcon
- SizeVariables
- SmallArrowDownIcon
- SmallDocIcon
- SmallNoteIcon
- SmallScissorsIcon
- SquareIcon
- StraightLineIcon
- StrikethroughIcon
- StyleVariables
- SurfaceBlockSchema
- SurfaceRefBlockSchema
- TagsIcon
- TextAlignCenterIcon
- TextAlignLeftIcon
- TextAlignRightIcon
- TextBackgroundDuotoneIcon
- TextForegroundDuotoneIcon
- TextIcon
- TextIconLarge
- TitleIcon
- TodayIcon
- TomorrowIcon
- ToolsIcon
- TransparentIcon
- TriangleIcon
- UnderlineIcon
- UngroupButtonIcon
- UnlinkIcon
- ViewBarIcon
- ViewIcon
- WarningIcon
- WebIcon16
- WebIconSVG
- WrapIcon
- YesterdayIcon
- ZipTransformer
- columnPresets
- diamondSvg
- ellipseSvg
- figmaUrlRegex
- githubUrlRegex
- loomUrlRegex
- rectSvg
- richTextColumnConfig
- roundedSvg
- triangleSvg
- viewPresets
- widgetPresets
- youtubeUrlRegex
Functions
- copyMiddleware
- createButtonPopper
- createDefaultDoc
- createEmbedBlock
- createLangList
- customImageProxyMiddleware
- databaseViewAddView
- databaseViewInitConvert
- databaseViewInitEmpty
- databaseViewInitTemplate
- defaultImageProxyMiddleware
- defineEmbedModel
- extractCssVariables
- fetchImage
- fetchable
- fitContent
- fontIcon
- generateKeyBetween
- getAffineInlineSpecsWithReference
- getAttachmentFileIcons
- getElementsBound
- getTextStyle
- getThemeMode
- icon
- insertPositionToIndex
- isInsideEdgelessEditor
- isInsidePageEditor
- isTextStyleActive
- markdownToMindmap
- nanoidReplacement
- on
- onModelElementUpdated
- onModelTextUpdated
- once
- openFileOrFiles
- pasteMiddleware
- popTagSelect
- registerTextStyleCommands
- replaceIdMiddleware
- scrollbarStyle
- selectBlock
- selectBlocksBetween
- setImageProxyMiddlewareURL
- showImportModal
- titleMiddleware
- toast
- toggleBold
- toggleCode
- toggleItalic
- toggleLink
- toggleStrike
- toggleUnderline
- toolbarDefaultConfig
- updateBlockType
References
matchFlavours
Re-exports matchFlavours