@descope/web-components-ui 1.4.0 → 1.5.0
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/cjs/index.cjs.js +11 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-alert/AlertClass.js +12 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -18568,6 +18568,9 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$2, baseS
|
|
18568
18568
|
display: flex;
|
18569
18569
|
width: 100%;
|
18570
18570
|
}
|
18571
|
+
:host([empty="true"]) {
|
18572
|
+
display: none;
|
18573
|
+
}
|
18571
18574
|
.icon {
|
18572
18575
|
flex-shrink: 0;
|
18573
18576
|
}
|
@@ -18597,11 +18600,19 @@ class RawAlert extends createBaseClass$1({ componentName: componentName$2, baseS
|
|
18597
18600
|
|
18598
18601
|
this.slotEle.addEventListener('slotchange', this.handleSlotChange.bind(this));
|
18599
18602
|
|
18603
|
+
syncAttrs(this.textComp, this, { includeAttrs: ['empty'] });
|
18604
|
+
|
18605
|
+
observeChildren(this, this.handleChildrenChange.bind(this));
|
18606
|
+
|
18600
18607
|
forwardAttrs$1(this, this.textComp, {
|
18601
18608
|
includeAttrs: ['variant', 'full-width', 'link-target-blank'],
|
18602
18609
|
});
|
18603
18610
|
}
|
18604
18611
|
|
18612
|
+
handleChildrenChange() {
|
18613
|
+
this.textComp.textContent = this.textContent;
|
18614
|
+
}
|
18615
|
+
|
18605
18616
|
handleSlotChange() {
|
18606
18617
|
const assignedNodes = this.slotEle.assignedNodes({ flatten: true });
|
18607
18618
|
if (!assignedNodes.length) return;
|