Skip to content

BlockSuite API Documentation / @blocksuite/block-std / BlockStdScope

Class: BlockStdScope

Constructors

new BlockStdScope()

new BlockStdScope(options): BlockStdScope

Parameters

options

BlockStdOptions

Returns

BlockStdScope

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:115

Properties

container

readonly container: Container

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:63


doc

readonly doc: Doc

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:65


provider

readonly provider: ServiceProvider

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:67


userExtensions

readonly userExtensions: ExtensionType[]

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:69


internalExtensions

static internalExtensions: ExtensionType[]

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:59

Accessors

clipboard

Get Signature

get clipboard(): Clipboard

Returns

Clipboard

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:75


collection

Get Signature

get collection(): DocCollection

Returns

DocCollection

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:79


command

Get Signature

get command(): CommandManager

Returns

CommandManager

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:83


event

Get Signature

get event(): UIEventDispatcher

Returns

UIEventDispatcher

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:87


get

Get Signature

get get(): <T>(identifier, options?) => T

Returns

Function

Type Parameters

T

Parameters
identifier

GeneralServiceIdentifier<T>

options?

ResolveOptions

Returns

T

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:91


getOptional

Get Signature

get getOptional(): <T>(identifier, options?) => null | T

Returns

Function

Type Parameters

T

Parameters
identifier

GeneralServiceIdentifier<T>

options?

ResolveOptions

Returns

null | T

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:95


host

Get Signature

get host(): EditorHost

Returns

EditorHost

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:99


range

Get Signature

get range(): RangeManager

Returns

RangeManager

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:103


selection

Get Signature

get selection(): SelectionManager

Returns

SelectionManager

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:107


view

Get Signature

get view(): ViewStore

Returns

ViewStore

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:111

Methods

getConfig()

getConfig<Key>(flavour): null | BlockConfigs[Key]

Type Parameters

Key extends never

Parameters

flavour

Key

Returns

null | BlockConfigs[Key]

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:144


getService()

Call Signature

getService<Key>(flavour): null | BlockServices[Key]

Type Parameters

Key extends never

Parameters
flavour

Key

Returns

null | BlockServices[Key]

Deprecated

BlockService will be removed in the future.

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:161

Call Signature

getService<Service>(flavour): null | Service

Type Parameters

Service extends BlockService

Parameters
flavour

string

Returns

null | Service

Deprecated

BlockService will be removed in the future.

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:164


getView()

getView(flavour): null | BlockViewType

Parameters

flavour

string

Returns

null | BlockViewType

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:169


mount()

mount(): void

Returns

void

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:173


render()

render(): EditorHost

Returns

EditorHost

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:179


unmount()

unmount(): void

Returns

void

Defined in

packages/framework/block-std/src/scope/block-std-scope.ts:191