@saasquatch/squatch-js 2.8.2-3 → 2.8.2-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/dist/squatch.cjs.js +12 -0
- package/dist/squatch.cjs.js.map +1 -1
- package/dist/squatch.esm.js +12 -0
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +12 -0
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/package.json +1 -1
package/dist/squatch.js
CHANGED
|
@@ -2470,6 +2470,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2470
2470
|
var _a2, _b;
|
|
2471
2471
|
this.loaded = true;
|
|
2472
2472
|
this.container = this.getAttribute("container");
|
|
2473
|
+
const dynamicContent = `
|
|
2474
|
+
<div>
|
|
2475
|
+
<h1>Dynamic Content</h1>
|
|
2476
|
+
<p>This content was dynamically added to the widget before it loaded.</p>
|
|
2477
|
+
</div>
|
|
2478
|
+
`;
|
|
2479
|
+
if (this.container) {
|
|
2480
|
+
const containerElement = document.querySelector(this.container);
|
|
2481
|
+
if (containerElement) {
|
|
2482
|
+
containerElement.innerHTML = dynamicContent;
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2473
2485
|
await this.renderWidget();
|
|
2474
2486
|
const slot = (_a2 = this.shadowRoot && Array.from(this.shadowRoot.children)) == null ? void 0 : _a2.find((c) => c.tagName === "SLOT");
|
|
2475
2487
|
if (slot) (_b = this.shadowRoot) == null ? void 0 : _b.removeChild(slot);
|