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
- AttachmentService
- BlockHubWidget
- BookmarkBlockComponent
- BookmarkBlockModel
- BookmarkService
- Bound
- BrushElementModel
- CodeBlockComponent
- ConnectorElementModel
- CopilotSelectionController
- DataViewBlockComponent
- DataViewBlockModel
- DatabaseBlockComponent
- DatabaseBlockModel
- DatabaseBlockViewSource
- DatabaseService
- DividerBlockComponent
- EdgelessBlock
- EdgelessCopilotToolbarEntry
- EdgelessCopilotWidget
- EdgelessElementToolbarWidget
- EdgelessRemoteSelectionWidget
- EdgelessRootBlockComponent
- EdgelessRootService
- EdgelessSurfaceRefBlockComponent
- EdgelessTemplatePanel
- ElementModel
- EmbedBlockElement
- EmbedFigmaBlockComponent
- EmbedFigmaModel
- EmbedGithubBlockComponent
- EmbedGithubModel
- EmbedGithubService
- EmbedHtmlBlockComponent
- EmbedHtmlModel
- EmbedHtmlService
- EmbedLinkedDocBlockComponent
- EmbedLinkedDocModel
- EmbedLinkedDocService
- EmbedLoomBlockComponent
- EmbedLoomModel
- EmbedLoomService
- EmbedSyncedDocBlockComponent
- EmbedSyncedDocModel
- EmbedSyncedDocService
- EmbedYoutubeBlockComponent
- EmbedYoutubeModel
- EmbedYoutubeService
- FrameBlockComponent
- FrameBlockModel
- FramePreview
- GeneralNetworkError
- GroupElementModel
- HtmlAdapter
- ImageAdapter
- ImageBlockComponent
- ImageBlockModel
- ImageService
- InlineManager
- LangList
- ListBlockComponent
- ListService
- MarkdownAdapter
- MindmapElementModel
- MindmapRootBlock
- MindmapService
- MindmapSurfaceBlock
- MiniMindmapPreview
- MixTextAdapter
- NoteBlockComponent
- NoteBlockModel
- NoteService
- NotionHtmlAdapter
- PageClipboard
- PageRootBlockComponent
- PageRootService
- ParagraphBlockComponent
- ParagraphService
- PaymentRequiredError
- PlainTextAdapter
- PreviewRootBlockComponent
- ReferenceNodeConfig
- RichText
- RootBlockModel
- RootService
- ShapeElementModel
- SurfaceBlockComponent
- SurfaceBlockModel
- SurfaceRefBlockComponent
- SurfaceRefBlockService
- SurfaceService
- TestUtils
- TextElementModel
- ThemeObserver
- Viewport
Interfaces
- AIItemConfig
- AIItemGroupConfig
- AISubItemConfig
- AffineAIPanelWidgetConfig
- AffineTextAttributes
- BookmarkBlockEdgelessProps
- Column
- EdgelessViewport
- TemplateManager
Type Aliases
- AIError
- AbstractEditor
- AffineInlineEditor
- Attachment
- AttachmentBlockProps
- BookmarkBlockProps
- Cell
- CodeBlockModel
- ColumnDataUpdater
- ColumnUpdater
- DataProperty
- DataView
- 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
- AIPenIcon
- AISearchIcon
- AIStarIcon
- AIStarIconWithAnimation
- AIStopIcon
- AddCursorIcon
- AddFrameButtonIcon
- AffineSchemas
- AlignBottomIcon
- AlignDistributeHorizontallyIcon
- AlignDistributeVerticallyIcon
- AlignHorizontallyIcon
- AlignLeftIcon
- AlignRightIcon
- AlignTopIcon
- AlignVerticallyIcon
- ArrowDownBigIcon
- ArrowDownIcon
- ArrowDownSmallIcon
- ArrowIcon
- ArrowLeftBigIcon
- ArrowRightBigIcon
- ArrowRightIcon
- ArrowRightSmallIcon
- ArrowUpBigIcon
- ArrowUpIcon
- AttachmentBlockSchema
- AttachmentIcon
- AttachmentIcon16
- AutoCompleteArrowIcon
- AutoConnectLeftIcon
- AutoConnectRightIcon
- BanIcon
- BlockHubIcon
- BlockHubIcon20
- BlockHubRoundedRectangleIcon
- BlocksUtils
- BoldIcon
- BookmarkBlockSchema
- BookmarkIcon
- BookmarkStyles
- BringForwardIcon
- BringToFrontIcon
- BulletedListIcon
- BulletedListIconLarge
- CancelWrapIcon
- CanvasTextFonts
- CaptionIcon
- CardIcon
- ChangeShapeIcon
- ChatWithAIIcon
- CheckBoxIcon
- CloseIcon
- CodeBlockIcon
- CodeBlockSchema
- CodeIcon
- ColorVariables
- ConfirmIcon
- ConnectorCWithArrowIcon
- ConnectorEndpointNoneIcon
- ConnectorIcon
- ConnectorLWithArrowIcon
- ConnectorXWithArrowIcon
- CopyAsPngIcon
- CopyIcon
- CrossIcon
- CurveLineIcon
- DarkLoadingIcon
- DashLineIcon
- DataViewBlockSchema
- DatabaseBlockSchema
- DatabaseKanbanViewIcon
- DatabaseKanbanViewIcon20
- DatabaseKanbanViewSVG
- DatabaseTableViewIcon
- DatabaseTableViewIcon20
- DatabaseTableViewSVG
- DeleteIcon
- DiamondIcon
- DiscardIcon
- DividerBlockSchema
- DividerIcon
- DocIcon
- DoneIcon
- DownloadIcon
- DualLinkIcon
- DualLinkIcon16
- DualLinkSVG
- DuplicateIcon
- EDGELESS_ELEMENT_TOOLBAR_WIDGET
- EdgelessEditorBlockSpecs
- EdgelessEraserIcon
- EdgelessGeneralShapeIcon
- EdgelessIcon
- EdgelessImageIcon
- EdgelessModeIcon
- EdgelessPenIcon
- 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
- EmbedSyncedDocStyles
- EmbedWebIcon
- EmbedYoutubeBlockSpec
- EmbedYoutubeStyles
- EnterIcon
- ExpandFullIcon
- ExpandIcon
- ExpandWideIcon
- ExplainIcon
- ExportToHTMLIcon
- ExportToMarkdownIcon
- FlipDirectionIcon
- FontDocIcon
- FontFamilyIcon
- FontFamilyVariables
- FontLinkIcon
- FontLinkedDocIcon
- FrameBlockSchema
- FrameIcon
- FrameNavigatorIcon
- FrameNavigatorNextIcon
- FrameNavigatorPrevIcon
- FrameOrderAdjustmentIcon
- FrontEndpointArrowIcon
- FrontEndpointCircleIcon
- FrontEndpointDiamondIcon
- FrontEndpointTriangleIcon
- GeneralStyleIcon
- GroupIcon
- HandIcon
- Heading1Icon
- Heading2Icon
- Heading3Icon
- Heading4Icon
- Heading5Icon
- Heading6Icon
- HelpIcon
- HiddenCardIcon
- HiddenIcon
- HighLightDuotoneIcon
- HtmlTransformer
- ImageBlockSchema
- ImageGrayIcon
- ImageIcon
- ImageIcon20
- ImageUploadIcon
- ImportIcon
- ImproveWritingIcon
- InsertBelowIcon
- ItalicIcon
- LanguageIcon
- LargeFrameIcon
- LassoFreeHandIcon
- LassoPolygonalIcon
- LightLoadingIcon
- LineStyleIcon
- LinkIcon
- LinkedDocIcon
- ListBlockSchema
- LongerIcon
- MakeItRealIcon
- 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
- NoteCornerIcon
- NoteIcon
- NoteNoShadowIcon
- NoteShadowIcon
- NoteShadowSampleIcon
- NoteSmallIcon
- NotionIcon
- NowIcon
- NumberedListIcon
- NumberedListIconLarge
- OpenIcon
- PageEditorBlockSpecs
- PageIcon
- PaletteIcon
- ParagraphBlockSchema
- 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
- ShorterIcon
- ShrinkIcon
- SizeVariables
- SmallArrowDownIcon
- SmallDocIcon
- SmallNoteIcon
- SmallScissorsIcon
- SquareIcon
- StraightLineIcon
- StrikethroughIcon
- StyleVariables
- SurfaceBlockSchema
- SurfaceRefBlockSchema
- TagIcon
- TagsIcon
- TextAlignCenterIcon
- TextAlignLeftIcon
- TextAlignRightIcon
- TextBackgroundDuotoneIcon
- TextForegroundDuotoneIcon
- TextIcon
- TextIconLarge
- TitleIcon
- TodayIcon
- TomorrowIcon
- ToneIcon
- 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
- fontIcon
- generateKeyBetween
- getAffineInlineSpecsWithReference
- getAttachmentFileIcons
- getTextStyle
- getThemeMode
- icon
- insertPositionToIndex
- isInsidePageEditor
- isTextStyleActive
- nanoidReplacement
- on
- onModelElementUpdated
- onModelTextUpdated
- once
- openFileOrFiles
- pasteMiddleware
- popTagSelect
- registerTextStyleCommands
- replaceIdMiddleware
- scrollbarStyle
- selectBlock
- selectBlocksBetween
- setImageProxyMiddlewareURL
- showImportModal
- toast
- toggleBold
- toggleCode
- toggleItalic
- toggleLink
- toggleStrike
- toggleUnderline
- toolbarDefaultConfig
- updateBlockType
- updateMindmapNodeRect
References
matchFlavours
Re-exports matchFlavours