BlockSuite API Documentation / @blocksuite/store / WorkspaceMeta
Class: WorkspaceMeta
Constructors
new WorkspaceMeta(doc)
new WorkspaceMeta(
doc
):WorkspaceMeta
Parameters
• doc: BlockSuiteDoc
Returns
Source
packages/framework/store/src/workspace/meta.ts:50
Properties
_prevPages
private
_prevPages:Set
<string
>
Source
packages/framework/store/src/workspace/meta.ts:40
_proxy
protected
readonly
_proxy:WorkspaceMetaState
Source
packages/framework/store/src/workspace/meta.ts:48
_yMap
protected
readonly
_yMap:Map
<undefined
|string
|number
|unknown
[] |Record
<string
,number
> |PagesPropertiesMeta
>
Source
packages/framework/store/src/workspace/meta.ts:47
commonFieldsUpdated
commonFieldsUpdated:
Slot
<void
>
Source
packages/framework/store/src/workspace/meta.ts:45
doc
readonly
doc:BlockSuiteDoc
Source
packages/framework/store/src/workspace/meta.ts:38
id
readonly
id:string
='meta'
Source
packages/framework/store/src/workspace/meta.ts:37
pageMetaAdded
pageMetaAdded:
Slot
<string
>
Source
packages/framework/store/src/workspace/meta.ts:42
pageMetaRemoved
pageMetaRemoved:
Slot
<string
>
Source
packages/framework/store/src/workspace/meta.ts:43
pageMetasUpdated
pageMetasUpdated:
Slot
<void
>
Source
packages/framework/store/src/workspace/meta.ts:44
Accessors
avatar
get
avatar():undefined
|string
Returns
undefined
| string
Source
packages/framework/store/src/workspace/meta.ts:69
blockVersions
get
blockVersions():undefined
|Record
<string
,number
>
Returns
undefined
| Record
<string
, number
>
Source
packages/framework/store/src/workspace/meta.ts:73
hasVersion
get
hasVersion():boolean
Returns
boolean
Source
packages/framework/store/src/workspace/meta.ts:157
name
get
name():undefined
|string
Returns
undefined
| string
Source
packages/framework/store/src/workspace/meta.ts:65
pageMetas
get
pageMetas():PageMeta
[]
Returns
PageMeta
[]
Source
packages/framework/store/src/workspace/meta.ts:97
pageVersion
get
pageVersion():undefined
|number
Returns
undefined
| number
Source
packages/framework/store/src/workspace/meta.ts:81
pages
get
pages():undefined
|unknown
[]
Returns
undefined
| unknown
[]
Source
packages/framework/store/src/workspace/meta.ts:61
properties
get
properties():PagesPropertiesMeta
Returns
Source
packages/framework/store/src/workspace/meta.ts:313
workspaceVersion
get
workspaceVersion():undefined
|number
Returns
undefined
| number
Source
packages/framework/store/src/workspace/meta.ts:77
yPages
get
yPages():Array
<unknown
>
Returns
Array
<unknown
>
Source
packages/framework/store/src/workspace/meta.ts:57
Methods
_handleCommonFieldsEvent()
private
_handleCommonFieldsEvent():void
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:288
_handlePageMetaEvent()
private
_handlePageMetaEvent():void
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:266
_handleWorkspaceMetaEvents()
private
_handleWorkspaceMetaEvents(events
):void
Parameters
• events: YEvent
<Text
| Array
<unknown
> | Map
<unknown
>>[]
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:292
addPageMeta()
addPageMeta(
page
,index
?):void
Parameters
• page: PageMeta
• index?: number
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:108
getPageMeta()
getPageMeta(
id
):undefined
|PageMeta
Parameters
• id: string
Returns
undefined
| PageMeta
Source
packages/framework/store/src/workspace/meta.ts:104
removePageMeta()
removePageMeta(
id
):void
Parameters
• id: string
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:143
setAvatar()
setAvatar(
avatar
):void
Parameters
• avatar: string
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:91
setName()
setName(
name
):void
Parameters
• name: string
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:85
setPageMeta()
setPageMeta(
id
,props
):void
Use Workspace.setPageMeta instead
Parameters
• id: string
• props: Partial
<PageMeta
>
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:125
setProperties()
setProperties(
meta
):void
Parameters
• meta: PagesPropertiesMeta
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:325
updateVersion()
updateVersion(
workspace
):void
Parameters
• workspace: Workspace
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:193
validateVersion()
validateVersion(
workspace
):void
Parameters
• workspace: Workspace
Returns
void
Deprecated
Only used for legacy page version validation
Source
packages/framework/store/src/workspace/meta.ts:208
writeVersion()
writeVersion(
workspace
):void
Only for page initialization
Parameters
• workspace: Workspace
Returns
void
Source
packages/framework/store/src/workspace/meta.ts:167
Generated using TypeDoc and typedoc-plugin-markdown.