@yhwh-script/shadow-h4x 1.0.2 → 1.0.4
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/generate.cjs +1 -1
- package/index.js +1 -3
- package/package.json +1 -1
package/generate.cjs
CHANGED
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { htmlFiles } from '/
|
|
1
|
+
import { htmlFiles } from '../../../src/components';
|
|
2
2
|
|
|
3
3
|
window.getShadowDocument = function magic(hostDataIDs) {
|
|
4
4
|
if (typeof hostDataIDs === 'string') { hostDataIDs = hostDataIDs.split(','); }
|
|
@@ -33,7 +33,6 @@ for (const filePath of htmlFiles) {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super();
|
|
35
35
|
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
36
|
-
console.log({scriptFragment})
|
|
37
36
|
}
|
|
38
37
|
connectedCallback() {
|
|
39
38
|
this.hostDataIDs = []; // used to find the nested shadowDocument
|
|
@@ -59,7 +58,6 @@ for (const filePath of htmlFiles) {
|
|
|
59
58
|
const shadowDocument = getShadowDocument('${this.hostDataIDs.toReversed().toString()}');
|
|
60
59
|
${scriptFragment ? scriptFragment.textContent : ''}
|
|
61
60
|
`;
|
|
62
|
-
console.log("appending", scriptFragment.textContent)
|
|
63
61
|
this.shadowRoot.appendChild(scriptElement);
|
|
64
62
|
}
|
|
65
63
|
}
|
package/package.json
CHANGED