@descope/web-components-ui 1.112.0 → 1.113.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 +43 -31
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +51 -38
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-outbound-apps.js +1 -1
- package/dist/umd/descope-outbound-apps.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs.js
CHANGED
@@ -1848,7 +1848,7 @@ const inputEventsDispatchingMixin$1 = (superclass) =>
|
|
1848
1848
|
}
|
1849
1849
|
};
|
1850
1850
|
|
1851
|
-
const observedAttributes$
|
1851
|
+
const observedAttributes$6 = ['required', 'pattern'];
|
1852
1852
|
|
1853
1853
|
const errorAttributes$1 = {
|
1854
1854
|
valueMissing: 'data-errormessage-value-missing',
|
@@ -1867,7 +1867,7 @@ const inputValidationMixin$1 = (superclass) =>
|
|
1867
1867
|
#validationTarget = validationTargetSymbol$1;
|
1868
1868
|
|
1869
1869
|
static get observedAttributes() {
|
1870
|
-
return [...(superclass.observedAttributes || []), ...observedAttributes$
|
1870
|
+
return [...(superclass.observedAttributes || []), ...observedAttributes$6];
|
1871
1871
|
}
|
1872
1872
|
|
1873
1873
|
static get formAssociated() {
|
@@ -2070,7 +2070,7 @@ const inputValidationMixin$1 = (superclass) =>
|
|
2070
2070
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
2071
2071
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
2072
2072
|
|
2073
|
-
if (observedAttributes$
|
2073
|
+
if (observedAttributes$6.includes(attrName)) {
|
2074
2074
|
this.#setValidity();
|
2075
2075
|
}
|
2076
2076
|
}
|
@@ -3790,7 +3790,7 @@ const createProxy = ({
|
|
3790
3790
|
return ProxyClass;
|
3791
3791
|
};
|
3792
3792
|
|
3793
|
-
const observedAttributes$
|
3793
|
+
const observedAttributes$5 = ['required', 'pattern'];
|
3794
3794
|
|
3795
3795
|
const errorAttributes = {
|
3796
3796
|
valueMissing: 'data-errormessage-value-missing',
|
@@ -3809,7 +3809,7 @@ const inputValidationMixin = (superclass) =>
|
|
3809
3809
|
#validationTarget = validationTargetSymbol;
|
3810
3810
|
|
3811
3811
|
static get observedAttributes() {
|
3812
|
-
return [...(superclass.observedAttributes || []), ...observedAttributes$
|
3812
|
+
return [...(superclass.observedAttributes || []), ...observedAttributes$5];
|
3813
3813
|
}
|
3814
3814
|
|
3815
3815
|
static get formAssociated() {
|
@@ -3987,7 +3987,7 @@ const inputValidationMixin = (superclass) =>
|
|
3987
3987
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
3988
3988
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
3989
3989
|
|
3990
|
-
if (observedAttributes$
|
3990
|
+
if (observedAttributes$5.includes(attrName)) {
|
3991
3991
|
this.#setValidity();
|
3992
3992
|
}
|
3993
3993
|
}
|
@@ -7596,12 +7596,12 @@ const LoaderRadialClass = compose$1(
|
|
7596
7596
|
|
7597
7597
|
const componentName$T = getComponentName$1('passcode');
|
7598
7598
|
|
7599
|
-
const observedAttributes$
|
7599
|
+
const observedAttributes$4 = ['digits'];
|
7600
7600
|
|
7601
7601
|
const customMixin$b = (superclass) =>
|
7602
7602
|
class PasscodeMixinClass extends superclass {
|
7603
7603
|
static get observedAttributes() {
|
7604
|
-
return observedAttributes$
|
7604
|
+
return observedAttributes$4.concat(superclass.observedAttributes || []);
|
7605
7605
|
}
|
7606
7606
|
|
7607
7607
|
get digits() {
|
@@ -11321,7 +11321,7 @@ const getFilename = (fileObj) => {
|
|
11321
11321
|
|
11322
11322
|
const componentName$I = getComponentName$1('upload-file');
|
11323
11323
|
|
11324
|
-
const observedAttributes$
|
11324
|
+
const observedAttributes$3 = [
|
11325
11325
|
'title',
|
11326
11326
|
'description',
|
11327
11327
|
'button-label',
|
@@ -11338,7 +11338,7 @@ const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$I,
|
|
11338
11338
|
|
11339
11339
|
class RawUploadFile extends BaseInputClass$4 {
|
11340
11340
|
static get observedAttributes() {
|
11341
|
-
return observedAttributes$
|
11341
|
+
return observedAttributes$3.concat(BaseInputClass$4.observedAttributes || []);
|
11342
11342
|
}
|
11343
11343
|
|
11344
11344
|
constructor() {
|
@@ -19860,12 +19860,12 @@ var alert$1 = /*#__PURE__*/Object.freeze({
|
|
19860
19860
|
|
19861
19861
|
const componentName$c = getComponentName$1('hcaptcha');
|
19862
19862
|
|
19863
|
-
const observedAttributes$
|
19863
|
+
const observedAttributes$2 = ['enabled', 'site-key'];
|
19864
19864
|
|
19865
19865
|
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$c, baseSelector: ':host > div' });
|
19866
19866
|
class RawHcaptcha extends BaseInputClass$1 {
|
19867
19867
|
static get observedAttributes() {
|
19868
|
-
return observedAttributes$
|
19868
|
+
return observedAttributes$2.concat(BaseInputClass$1.observedAttributes || []);
|
19869
19869
|
}
|
19870
19870
|
|
19871
19871
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
@@ -20703,7 +20703,7 @@ const formatTime = (ms = 0) => {
|
|
20703
20703
|
|
20704
20704
|
const componentName$7 = getComponentName('timer');
|
20705
20705
|
|
20706
|
-
const observedAttributes$
|
20706
|
+
const observedAttributes$1 = ['seconds', 'hide-icon', 'paused'];
|
20707
20707
|
|
20708
20708
|
const BaseClass$3 = createBaseClass$1({
|
20709
20709
|
componentName: componentName$7,
|
@@ -20718,7 +20718,7 @@ class RawTimer extends BaseClass$3 {
|
|
20718
20718
|
#intervalId;
|
20719
20719
|
|
20720
20720
|
static get observedAttributes() {
|
20721
|
-
return observedAttributes$
|
20721
|
+
return observedAttributes$1.concat(BaseClass$3.observedAttributes || []);
|
20722
20722
|
}
|
20723
20723
|
|
20724
20724
|
constructor() {
|
@@ -21824,8 +21824,6 @@ var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
|
|
21824
21824
|
|
21825
21825
|
const componentName$2 = getComponentName('outbound-apps');
|
21826
21826
|
|
21827
|
-
const observedAttributes$1 = ['connect-button-label', 'disconnect-button-label', 'data'];
|
21828
|
-
|
21829
21827
|
const itemRenderer = (
|
21830
21828
|
{ name, description, logo, appId, isConnected },
|
21831
21829
|
_,
|
@@ -21840,22 +21838,21 @@ const itemRenderer = (
|
|
21840
21838
|
size=${ref.size}
|
21841
21839
|
class="app-logo"
|
21842
21840
|
></descope-avatar>
|
21843
|
-
|
21844
|
-
<div class="
|
21841
|
+
|
21842
|
+
<div class="content">
|
21845
21843
|
<descope-text
|
21844
|
+
class="app-title"
|
21846
21845
|
variant="subtitle1"
|
21847
21846
|
mode="primary"
|
21848
21847
|
>${name}</descope-text>
|
21849
|
-
</div>
|
21850
21848
|
${
|
21851
21849
|
description
|
21852
21850
|
? `
|
21853
|
-
<div class="app-description">
|
21854
21851
|
<descope-text
|
21852
|
+
class="app-description"
|
21855
21853
|
variant="body2"
|
21856
21854
|
mode="primary"
|
21857
21855
|
>${description}</descope-text>
|
21858
|
-
</div>
|
21859
21856
|
`
|
21860
21857
|
: ''
|
21861
21858
|
}
|
@@ -21875,15 +21872,13 @@ const BaseClass$1 = createBaseClass$1({
|
|
21875
21872
|
});
|
21876
21873
|
|
21877
21874
|
class RawOutboundAppsClass extends BaseClass$1 {
|
21878
|
-
static get observedAttributes() {
|
21879
|
-
return observedAttributes$1;
|
21880
|
-
}
|
21881
|
-
|
21882
21875
|
constructor() {
|
21883
21876
|
super();
|
21884
21877
|
|
21885
21878
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
21886
|
-
<descope-list
|
21879
|
+
<descope-list>
|
21880
|
+
<slot name="empty-state" slot="empty-state"></slot>
|
21881
|
+
</descope-list>
|
21887
21882
|
`;
|
21888
21883
|
|
21889
21884
|
this.appsList = this.shadowRoot.querySelector('descope-list');
|
@@ -21900,6 +21895,13 @@ class RawOutboundAppsClass extends BaseClass$1 {
|
|
21900
21895
|
}
|
21901
21896
|
.content {
|
21902
21897
|
flex-grow: 1;
|
21898
|
+
display: flex;
|
21899
|
+
flex-direction: column;
|
21900
|
+
}
|
21901
|
+
.app-title,
|
21902
|
+
.app-description {
|
21903
|
+
display: flex;
|
21904
|
+
direction: inherit;
|
21903
21905
|
}
|
21904
21906
|
descope-list {
|
21905
21907
|
display: block;
|
@@ -21917,11 +21919,17 @@ class RawOutboundAppsClass extends BaseClass$1 {
|
|
21917
21919
|
this.appsList.addEventListener('click', this.onAppsListClick.bind(this));
|
21918
21920
|
}
|
21919
21921
|
|
21922
|
+
get readonly() {
|
21923
|
+
return this.getAttribute('readonly') === 'true';
|
21924
|
+
}
|
21925
|
+
|
21920
21926
|
onAppsListClick(e) {
|
21921
|
-
|
21922
|
-
|
21923
|
-
|
21924
|
-
|
21927
|
+
if (!this.readonly) {
|
21928
|
+
const id = e.srcElement.getAttribute('data-outbound-app-id');
|
21929
|
+
const action = e.srcElement.getAttribute('data-action');
|
21930
|
+
if (id && action) {
|
21931
|
+
this.dispatchEvent(new CustomEvent(`${action}-clicked`, { bubbles: true, detail: { id, action } }));
|
21932
|
+
}
|
21925
21933
|
}
|
21926
21934
|
}
|
21927
21935
|
|
@@ -21972,6 +21980,10 @@ const OutboundAppsClass = compose(
|
|
21972
21980
|
selector: () => ' .app-logo',
|
21973
21981
|
property: 'margin-inline-end'
|
21974
21982
|
},
|
21983
|
+
contentGap: {
|
21984
|
+
selector: () => ' .content',
|
21985
|
+
property: 'gap'
|
21986
|
+
},
|
21975
21987
|
itemsTextAlign: {
|
21976
21988
|
selector: TextClass.componentName,
|
21977
21989
|
property: TextClass.cssVarList.textAlign,
|
@@ -22029,6 +22041,7 @@ const outboundApps = {
|
|
22029
22041
|
|
22030
22042
|
[vars$1.appLogoBackgroundColor]: 'none',
|
22031
22043
|
[vars$1.appLogoGap]: globals.spacing.md,
|
22044
|
+
[vars$1.contentGap]: globals.spacing.xs,
|
22032
22045
|
|
22033
22046
|
// list-item overrides
|
22034
22047
|
[vars$1.itemCursor]: 'default',
|
@@ -22613,7 +22626,6 @@ exports.genColors = genColors;
|
|
22613
22626
|
exports.getThemeRefs = getThemeRefs;
|
22614
22627
|
exports.getThemeVars = getThemeVars;
|
22615
22628
|
exports.globalsThemeToStyle = globalsThemeToStyle;
|
22616
|
-
exports.observedAttributes = observedAttributes$1;
|
22617
22629
|
exports.themeToCSSVarsObj = themeToCSSVarsObj;
|
22618
22630
|
exports.themeToStyle = themeToStyle;
|
22619
22631
|
exports.themeVars = themeVars;
|