Skip to content

BlockSuite API Documentation / @blocksuite/blocks / EmbedLinkedDocService

Class: EmbedLinkedDocService

Extends

Contents

Constructors

new EmbedLinkedDocService(options)

new EmbedLinkedDocService(options): EmbedLinkedDocService

Parameters

options: BlockServiceOptions

Returns

EmbedLinkedDocService

Inherited from

@blocksuite/block-std.BlockService.constructor

Source

packages/block-std/dist/service/index.d.ts:13

Properties

_getPageMode

private _getPageMode: (pageId) => "page" | "edgeless"

Parameters

pageId: string

Returns

"page" | "edgeless"

Source

packages/blocks/src/embed-linked-doc-block/embed-linked-doc-service.ts:9


_getPageUpdatedAt

private _getPageUpdatedAt: (pageId) => Date

Parameters

pageId: string

Returns

Date

Source

packages/blocks/src/embed-linked-doc-block/embed-linked-doc-service.ts:20


disposables

readonly disposables: DisposableGroup

Inherited from

@blocksuite/block-std.BlockService.disposables

Source

packages/block-std/dist/service/index.d.ts:12


flavour

readonly flavour: string

Inherited from

@blocksuite/block-std.BlockService.flavour

Source

packages/block-std/dist/service/index.d.ts:11


slots

slots: Object

Type declaration

linkedDocCreated

linkedDocCreated: Slot<Object>

Type declaration
pageId

pageId: string

Source

packages/blocks/src/embed-linked-doc-block/embed-linked-doc-service.ts:5


std

readonly std: BlockStdScope

Inherited from

@blocksuite/block-std.BlockService.std

Source

packages/block-std/dist/service/index.d.ts:10

Accessors

getPageMode

get getPageMode(): (pageId) => "page" | "edgeless"

set getPageMode(value): void

Parameters

value: (pageId) => "page" | "edgeless"

Returns

Function

Parameters

pageId: string

Returns

"page" | "edgeless"

Source

packages/blocks/src/embed-linked-doc-block/embed-linked-doc-service.ts:12


getPageUpdatedAt

get getPageUpdatedAt(): (pageId) => Date

set getPageUpdatedAt(value): void

Parameters

value: (pageId) => Date

Returns

Function

Parameters

pageId: string

Returns

Date

Source

packages/blocks/src/embed-linked-doc-block/embed-linked-doc-service.ts:22


page

get page(): Page

Returns

Page

Source

packages/block-std/dist/service/index.d.ts:15


selectionManager

get selectionManager(): SelectionManager

Returns

SelectionManager

Source

packages/block-std/dist/service/index.d.ts:16


uiEventDispatcher

get uiEventDispatcher(): UIEventDispatcher

Returns

UIEventDispatcher

Source

packages/block-std/dist/service/index.d.ts:17


workspace

get workspace(): Workspace

Returns

Workspace

Source

packages/block-std/dist/service/index.d.ts:14

Methods

bindHotKey()

bindHotKey(keymap, options?): void

Parameters

keymap: Record<string, UIEventHandler>

options?: Object

options.global?: boolean

Returns

void

Inherited from

@blocksuite/block-std.BlockService.bindHotKey

Source

packages/block-std/dist/service/index.d.ts:24


dispose()

dispose(): void

Returns

void

Inherited from

@blocksuite/block-std.BlockService.dispose

Source

packages/block-std/dist/service/index.d.ts:18


handleEvent()

handleEvent(name, fn, options?): void

Parameters

name: "click" | "doubleClick" | "tripleClick" | "pointerDown" | "pointerMove" | "pointerUp" | "pointerOut" | "dragStart" | "dragMove" | "dragEnd" | "keyDown" | "keyUp" | "selectionChange" | "compositionStart" | "compositionUpdate" | "compositionEnd" | "cut" | "copy" | "paste" | "beforeInput" | "blur" | "focus" | "drop" | "contextMenu" | "wheel"

fn: UIEventHandler

options?: Object

options.global?: boolean

Returns

void

Inherited from

@blocksuite/block-std.BlockService.handleEvent

Source

packages/block-std/dist/service/index.d.ts:21


mounted()

mounted(): void

Returns

void

Inherited from

@blocksuite/block-std.BlockService.mounted

Source

packages/block-std/dist/service/index.d.ts:19


unmounted()

unmounted(): void

Returns

void

Inherited from

@blocksuite/block-std.BlockService.unmounted

Source

packages/block-std/dist/service/index.d.ts:20


Generated using typedoc-plugin-markdown and TypeDoc