@silexlabs/grapesjs-symbols
Version:
Symbols for GrapesJS
15 lines • 638 B
TypeScript
import { Component, Editor } from 'grapesjs';
/**
* Update ID references in a symbol instance to match the new unique IDs.
*
* This function:
* 1. Gets the main symbol for this instance
* 2. Builds a map of main symbol IDs -> instance IDs
* 3. Finds all ID references in the main symbol (for, aria-*, href="#...", etc.)
* 4. Updates those references in the instance to use the new IDs
*
* @param editor - The GrapesJS editor instance
* @param instance - The root component of the symbol instance
*/
export declare function makeInstanceIdsUnique(editor: Editor, instance: Component): void;
//# sourceMappingURL=id-utils.d.ts.map