@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
11 lines (10 loc) • 323 B
TypeScript
export declare enum HighlightType {
None = "",
Element = "element",
ContentComponent = "content-component",
ContentItem = "content-item"
}
/**
* Get HighlightType based on the HTML element data-attributes.
*/
export declare function getHighlightTypeForElement(element: HTMLElement | null): HighlightType;