@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.
@@ -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: '527318220c6b48375943e897fe0e53e0f33e67ed', class: "HostContainer" }, !this.imgLoaded && (index.h("ui-skeleton", { key: 'e5c49a781ff2fac5c796cb6a3f8d334dce7be35b', class: "UiContainer", structure: "image", width: "100%", height: "100%" })), index.h("img", { key: '09dfbf8f52c2c899246590790f2780a84bdeefc3', 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
+ 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 sanitizeHtml from "sanitize-html";
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 = sanitizeHtml(this.customContent, {
12
- allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'a']),
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"; }
@@ -0,0 +1,3 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ export { commonjsGlobal as c };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-83985f06.js';
2
- import { c as commonjsGlobal } from './_commonjsHelpers-57e89916.js';
2
+ import { c as commonjsGlobal } from './_commonjsHelpers-1c8beb5f.js';
3
3
 
4
4
  const DEFAULT_LANGUAGE = 'en';
5
5
  const TRANSLATIONS = {