Expand description
Replacing a children list with stubs, existing blocks and new blocks, and parsing new blocks.
EnumsΒ§
- List
Entry π - A parsed entry of a list-replace value, or of a new blockβs
innerBlocks.
ConstantsΒ§
- BLOCK_
FIELDS π - The stored fields of a block.
- NEW_
BLOCK_ πKEYS - What a new block may have; a
clientIdis replaced by a new one.
FunctionsΒ§
- block_
attributes π - block_
name π - check_
block_ πkeys - check_
list_ πentries - Checks a list-replace value against the page and returns where each existing block it names
is now. The list is the children of the block at
parent_path, or the top level. - collect_
references π - The existing blocks
entriesname, with whether each is named by a stub. - collect_
required_ πchildren - Existing children of fully replaced blocks must be accounted for, like the replaced listβs own.
- parse_
inner_ πblocks - The blockβs
innerBlocks,Nonewhen it has none. - parse_
list_ πentries - parse_
list_ πentry - One entry of a list-replace value: a stub, an existing block by
clientId, or a new block. - parse_
new_ πblock - A block an
addorwrapcreates. Its inner blocks are new too, whatever ids they carry. - parse_
new_ πentry - A new block;
parse_childparses each of its inner blocks.