@saasquatch/squatch-js 2.8.2-5 → 2.8.2-6
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 +6 -1
- package/dist/squatch.cjs.js.map +1 -1
- package/dist/squatch.esm.js +6 -1
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +6 -1
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/package.json +1 -1
package/dist/squatch.cjs.js
CHANGED
|
@@ -2490,10 +2490,11 @@ class DeclarativeEmbedWidget extends DeclarativeWidget {
|
|
|
2490
2490
|
// }
|
|
2491
2491
|
// }
|
|
2492
2492
|
async connectedCallback() {
|
|
2493
|
+
var _a2;
|
|
2493
2494
|
this.loaded = true;
|
|
2494
2495
|
this.container = this.getAttribute("container");
|
|
2495
2496
|
const dynamicContent = `
|
|
2496
|
-
<div>
|
|
2497
|
+
<div id="dynamic-content">
|
|
2497
2498
|
<h1>Dynamic Content</h1>
|
|
2498
2499
|
<p>This content was dynamically added to the widget before it loaded.</p>
|
|
2499
2500
|
</div>
|
|
@@ -2505,6 +2506,10 @@ class DeclarativeEmbedWidget extends DeclarativeWidget {
|
|
|
2505
2506
|
this.shadowRoot.innerHTML = dynamicContent;
|
|
2506
2507
|
}
|
|
2507
2508
|
await this.renderWidget();
|
|
2509
|
+
const dynamicElement = (_a2 = this.shadowRoot) == null ? void 0 : _a2.getElementById("dynamic-content");
|
|
2510
|
+
if (dynamicElement) {
|
|
2511
|
+
dynamicElement.remove();
|
|
2512
|
+
}
|
|
2508
2513
|
if (this.getAttribute("open") !== null) this.open();
|
|
2509
2514
|
}
|
|
2510
2515
|
}
|