@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
27 lines (26 loc) • 1.13 kB
TypeScript
import { KSLAddButtonElement } from "./KSLAddButtonElement";
import { KSLButtonElement } from "./KSLButtonElement";
import { KSLContainerElement } from "./KSLContainerElement";
import { KSLHighlightElement } from "./KSLHighlightElement";
import { KSLIconElement } from "./KSLIconElement";
import { KSLPopoverElement } from "./KSLPopoverElement";
import { KSLTooltipElement } from "./KSLTooltipElement";
declare global {
interface HTMLElementTagNameMap {
[KSLIconElement.is]: KSLIconElement;
[KSLButtonElement.is]: KSLButtonElement;
[KSLAddButtonElement.is]: KSLAddButtonElement;
[KSLHighlightElement.is]: KSLHighlightElement;
[KSLContainerElement.is]: KSLContainerElement;
[KSLTooltipElement.is]: KSLTooltipElement;
[KSLPopoverElement.is]: KSLPopoverElement;
}
}
/**
* Define all web components if it is possible.
*/
export declare function defineAllRequiredWebComponents(): Promise<CustomElementConstructor[]>;
/**
* Check if element is a web component based on its tag name.
*/
export declare function isElementWebComponent(element: HTMLElement): boolean;