@social-mail/social-mail-client 1.2.297 → 1.2.298

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.
@@ -46476,7 +46476,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
46476
46476
  this.name = e.tagName.toLowerCase();
46477
46477
  this.parentName = (_a = e.parentElement) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase();
46478
46478
  const r = e.getBoundingClientRect();
46479
- this.isImage = this.name === "img" || this.name === "inject" || this.name.startsWith("video");
46479
+ this.isImage = /^(img|video|pdf)/i.test(this.name);
46480
46480
  this.top = `${r.top + 2}px`;
46481
46481
  this.left = `${r.left + 2}px`;
46482
46482
  this.width = `${r.width}px`;
@@ -49301,7 +49301,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
49301
49301
  const target = e.target;
49302
49302
  e.preventDefault();
49303
49303
  const element = target.nodeType === Node.ELEMENT_NODE ? target : target.parentElement;
49304
- if (/^(IMG|INJECT|VIDEO)$/.test(element.tagName)) {
49304
+ if (/^(IMG|INJECT|VIDEO|PDF)/.test(element.tagName)) {
49305
49305
  this.changeImage().catch(console.error);
49306
49306
  return;
49307
49307
  }