@node-projects/web-component-designer 0.1.137 → 0.1.138

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.
@@ -22,12 +22,11 @@ export class SimpleDemoProviderService {
22
22
  }
23
23
  shadowRoot.adoptedStyleSheets = styles;
24
24
  shadowRoot.innerHTML = '';
25
- //@ts-ignore
26
- const myDocument = new DOMParser().parseFromString(code, 'text/html', { includeShadowRoots: true });
27
- const fragment = document.createDocumentFragment();
28
- for (let e of myDocument.childNodes)
29
- fragment.appendChild(e);
30
- shadowRoot.appendChild(fragment);
25
+ if ('setHTMLUnsafe' in shadowRoot)
26
+ //@ts-ignore
27
+ shadowRoot.setHTMLUnsafe(code);
28
+ else
29
+ shadowRoot.innerHTML = code;
31
30
  contentDiv.style.display = '';
32
31
  }
33
32
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A WYSIWYG designer webcomponent for html components",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.137",
4
+ "version": "0.1.138",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",