@descope/flow-components 2.0.443 → 2.0.444
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/index.cjs.js +17 -3
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -78951,12 +78951,12 @@ function requireIndex_cjs () {
|
|
|
78951
78951
|
|
|
78952
78952
|
const componentName$14 = getComponentName$1('text-field');
|
|
78953
78953
|
|
|
78954
|
-
const observedAttrs$
|
|
78954
|
+
const observedAttrs$4 = ['type', 'label-type', 'copy-to-clipboard'];
|
|
78955
78955
|
|
|
78956
78956
|
const customMixin$e = (superclass) =>
|
|
78957
78957
|
class TextFieldClass extends superclass {
|
|
78958
78958
|
static get observedAttributes() {
|
|
78959
|
-
return observedAttrs$
|
|
78959
|
+
return observedAttrs$4.concat(superclass.observedAttributes || []);
|
|
78960
78960
|
}
|
|
78961
78961
|
|
|
78962
78962
|
icon;
|
|
@@ -86240,14 +86240,19 @@ descope-boolean-field-internal {
|
|
|
86240
86240
|
|
|
86241
86241
|
const componentName$v = getComponentName$1('modal');
|
|
86242
86242
|
|
|
86243
|
+
const observedAttrs$3 = ['opened'];
|
|
86244
|
+
|
|
86243
86245
|
const customMixin$7 = (superclass) =>
|
|
86244
86246
|
class ModalMixinClass extends superclass {
|
|
86247
|
+
static get observedAttributes() {
|
|
86248
|
+
return [].concat(superclass.observedAttributes || [], observedAttrs$3);
|
|
86249
|
+
}
|
|
86250
|
+
|
|
86245
86251
|
get opened() {
|
|
86246
86252
|
return this.getAttribute('opened') === 'true';
|
|
86247
86253
|
}
|
|
86248
86254
|
|
|
86249
86255
|
handleOpened() {
|
|
86250
|
-
forwardAttrs$1(this, this.baseElement, { includeAttrs: ['opened'] });
|
|
86251
86256
|
if (this.opened) {
|
|
86252
86257
|
this.style.display = '';
|
|
86253
86258
|
} else {
|
|
@@ -86255,6 +86260,14 @@ descope-boolean-field-internal {
|
|
|
86255
86260
|
}
|
|
86256
86261
|
}
|
|
86257
86262
|
|
|
86263
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
86264
|
+
super.attributeChangedCallback?.(name, oldValue, newValue);
|
|
86265
|
+
|
|
86266
|
+
if (name === 'opened') {
|
|
86267
|
+
this.handleOpened();
|
|
86268
|
+
}
|
|
86269
|
+
}
|
|
86270
|
+
|
|
86258
86271
|
init() {
|
|
86259
86272
|
super.init?.();
|
|
86260
86273
|
this.style.display = 'none';
|
|
@@ -86271,6 +86284,7 @@ descope-boolean-field-internal {
|
|
|
86271
86284
|
.appendChild(document.createElement('slot'));
|
|
86272
86285
|
|
|
86273
86286
|
this.#overrideOverlaySettings();
|
|
86287
|
+
forwardAttrs$1(this, this.baseElement, { includeAttrs: ['opened'] });
|
|
86274
86288
|
|
|
86275
86289
|
// we need to always open the modal in `opened=false`
|
|
86276
86290
|
// to prevent it from rendering outside the dialog
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.444",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"typescript": "^5.7.2"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@descope/web-components-ui": "1.
|
|
107
|
+
"@descope/web-components-ui": "1.37.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"react": ">= 18"
|