@everymatrix/general-footer-template 1.62.1 → 1.62.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_commonjsHelpers-68cdf74f.js +5 -0
- package/dist/cjs/custom-clock.cjs.entry.js +1 -1
- package/dist/cjs/custom-content-section.cjs.entry.js +1395 -9360
- package/dist/cjs/ui-image_2.cjs.entry.js +2 -1
- package/dist/collection/components/custom-content-section/custom-content-section.js +3 -9
- package/dist/esm/_commonjsHelpers-1c8beb5f.js +3 -0
- package/dist/esm/custom-clock.entry.js +1 -1
- package/dist/esm/custom-content-section.entry.js +1393 -9358
- package/dist/esm/ui-image_2.entry.js +2 -1
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-16be4af7.entry.js +1 -0
- package/dist/general-footer-template/{p-faf0bad1.entry.js → p-3faa56d8.entry.js} +1 -1
- package/dist/general-footer-template/p-4573c419.js +1 -0
- package/dist/general-footer-template/p-c20c3c40.entry.js +2 -0
- package/package.json +1 -1
- package/dist/cjs/_commonjsHelpers-0a7b82d9.js +0 -21
- package/dist/esm/_commonjsHelpers-57e89916.js +0 -18
- package/dist/general-footer-template/p-1535f1fd.entry.js +0 -1
- package/dist/general-footer-template/p-b09d1ead.entry.js +0 -8
- package/dist/general-footer-template/p-cb65c223.js +0 -1
|
@@ -28,6 +28,7 @@ const UiImage = class {
|
|
|
28
28
|
if (this.image) {
|
|
29
29
|
this.image.src = this.src;
|
|
30
30
|
this.imgLoaded = true;
|
|
31
|
+
preloadedImage.onload = null;
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
preloadedImage.src = this.src;
|
|
@@ -57,7 +58,7 @@ const UiImage = class {
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
render() {
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
61
|
+
return (index.h(index.Host, { key: 'f506ba73852f257ad80bf59ca177d2065a5f365e', class: "HostContainer" }, !this.imgLoaded && (index.h("ui-skeleton", { key: '564ebfab701f827ddc2debccb7615926dbc9e876', class: "UiContainer", structure: "image", width: "100%", height: "100%" })), index.h("img", { key: '2188ca4494c10587f064acc5459ffc468948f497', ref: (el) => (this.image = el), src: this.shouldLoad ? this.src : undefined, onLoad: () => (this.imgLoaded = true), style: this.styles, class: `UiContainer ${this.imgLoaded ? 'Visible' : 'Hidden'}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" })));
|
|
61
62
|
}
|
|
62
63
|
get el() { return index.getElement(this); }
|
|
63
64
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import
|
|
2
|
+
import DOMPurify from "dompurify";
|
|
3
3
|
export class CustomContentSection {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.customContent = undefined;
|
|
@@ -8,14 +8,8 @@ export class CustomContentSection {
|
|
|
8
8
|
this.postMessageEvent = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
const clean =
|
|
12
|
-
|
|
13
|
-
allowedAttributes: {
|
|
14
|
-
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
|
|
15
|
-
a: ['href', 'target', 'rel']
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
return h("div", { key: 'a4613d65e38bb44dacda6d6d1df9a3cf32845167', class: "CustomContentSectionContainer" }, h("div", { key: 'f6704f1e13d3a5dd188318cad51babdd8af8b2f1', class: "CustomContentSectionWrapper" }, h("div", { key: 'e818696e2ef290f92905adbac46fdd9f5ddf3e6c', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
11
|
+
const clean = DOMPurify.sanitize(this.customContent);
|
|
12
|
+
return h("div", { key: 'b5714ab60e4d00f640208651dbc57734b2e28a0d', class: "CustomContentSectionContainer" }, h("div", { key: '2a8838f92c6e4068cbb190981366cca43b973319', class: "CustomContentSectionWrapper" }, h("div", { key: '707c7326e3324fb86bab04fc0f3822da48f33f81', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
19
13
|
}
|
|
20
14
|
static get is() { return "custom-content-section"; }
|
|
21
15
|
static get encapsulation() { return "scoped"; }
|