collectPersistentBlockIdentityRepairs
collectPersistentBlockIdentityRepairs(
blocks,options):PersistentBlockIdentityRepair[]
Defined in: identifiers.ts:151
Collect the persistent-id repairs required to make one document tree safe for duplicate-aware structured block workflows.
Existing non-empty ids are preserved when they are unique. Missing ids are generated, and only the later duplicates in one depth-first traversal are repaired when duplicate detection is enabled.
Parameters
Section titled “Parameters”blocks
Section titled “blocks”readonly PersistentBlockIdentityNode[]
Current document tree rooted at the relevant editor scope.
options
Section titled “options”CollectPersistentBlockIdentityRepairsOptions
Attribute key plus prefix/generator settings.
Returns
Section titled “Returns”PersistentBlockIdentityRepair[]
One repair patch per block that should regenerate or seed its persistent id.