UNPKG

@kontent-ai/smart-link

Version:

Kontent.ai Smart Link SDK allowing to automatically inject [smart links](https://docs.kontent.ai/tutorials/develop-apps/build-strong-foundation/set-up-editing-from-preview#a-using-smart-links) to Kontent.ai according to manually specified [HTML data attri

15 lines (14 loc) 550 B
import type { KSLConfiguration } from "../utils/configuration"; export declare class SmartLinkRenderer { private readonly configuration; private readonly defaultContainer; private containerByRenderingRoot; private highlightByElement; private addButtonByElement; constructor(configuration: KSLConfiguration); render: (visibleElements: Set<HTMLElement>, observedElements: Set<HTMLElement>) => void; destroy: () => void; clear: () => void; private processVisibleElements; private createContainerIfNotExist; }