feat(ipub): ipub-interaction element

This commit is contained in:
Guz
2025-10-17 18:05:04 -03:00
parent 185ca863fe
commit ba7ca52ed2
3 changed files with 50 additions and 49 deletions

View File

@@ -143,10 +143,14 @@ class IPUBImage extends IPUBElement {
static elementName = "ipub-image";
}
class IPUBInteraction extends IPUBElement {
static elementName = "ipub-interaction";
}
globalThis.addEventListener("load", () => {
console.info("IPUB: STARTING DEFINITIONS");
[IPUBBackground, IPUBContent, IPUBImage].forEach((e) => {
[IPUBBackground, IPUBContent, IPUBImage, IPUBInteraction].forEach((e) => {
console.info(`IPUB: Defining custom element <${e.elementName}>`);
globalThis.customElements.define(e.elementName, e);
});