@zumer/snapdom-plugins 2.2.0 → 2.2.2

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/color-tint.js CHANGED
@@ -19,9 +19,10 @@ export function colorTint(options = {}) {
19
19
 
20
20
  async afterClone(context) {
21
21
  const root = context.clone;
22
- if (!root || !(root instanceof HTMLElement)) return;
22
+ // Realm-agnostic: a clone rooted in a same-origin iframe is not an instance of this
23
+ // window's HTMLElement (#494).
24
+ if (!root || root.nodeType !== 1 || root.namespaceURI !== 'http://www.w3.org/1999/xhtml') return;
23
25
  root.style.position = 'relative';
24
- root.style.overflow = 'hidden';
25
26
  const overlay = document.createElement('div');
26
27
  overlay.style.position = 'absolute';
27
28
  overlay.style.inset = '0';
package/index.js CHANGED
@@ -16,4 +16,4 @@ export { agentMap } from './agent-map.js';
16
16
  export { htmlExport } from './html-export.js';
17
17
  export { gifExport } from './gif-export.js';
18
18
  export { videoExport } from './video-export.js';
19
- export { htmlInCanvas } from './html-in-canvas.js';
19
+ export { htmlInCanvasPlugin as htmlInCanvas } from './html-in-canvas.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zumer/snapdom-plugins",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Official plugins for SnapDOM",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/zumerlab/snapdom/issues"
39
39
  },
40
- "homepage": "https://zumerlab.github.io/snapdom/",
40
+ "homepage": "https://snapdom.dev/",
41
41
  "peerDependencies": {
42
42
  "@zumer/snapdom": ">=2.12.1"
43
43
  }