@descope/flow-components 3.19.1 → 3.20.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/fm/114.js +1 -1
- package/dist/fm/114.js.map +1 -1
- package/dist/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types/compiled-types/CollapsibleContainer/CollapsibleContainer.d.ts +1 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +105 -60
- package/dist/index.d.ts +1 -0
- package/dist/types/CollapsibleContainer/CollapsibleContainer.d.ts +1 -0
- package/package.json +2 -2
package/dist/fm/mf-manifest.json
CHANGED
package/dist/fm/mf-stats.json
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -86574,7 +86574,7 @@ function requireIndex_cjs () {
|
|
|
86574
86574
|
);
|
|
86575
86575
|
|
|
86576
86576
|
const componentName$1f = getComponentName('multi-line-mappings');
|
|
86577
|
-
const BaseClass$
|
|
86577
|
+
const BaseClass$9 = createBaseClass$1({ componentName: componentName$1f });
|
|
86578
86578
|
|
|
86579
86579
|
const parseJSON = (value, fallback, source = 'unknown') => {
|
|
86580
86580
|
if (typeof value !== 'string' || !value?.trim()) {
|
|
@@ -86644,7 +86644,7 @@ function requireIndex_cjs () {
|
|
|
86644
86644
|
const areSameValues = (first = [], second = []) =>
|
|
86645
86645
|
first.length === second.length && first.every((v, i) => v === second[i]);
|
|
86646
86646
|
|
|
86647
|
-
class RawMultiLineMappingsClass extends BaseClass$
|
|
86647
|
+
class RawMultiLineMappingsClass extends BaseClass$9 {
|
|
86648
86648
|
static get observedAttributes() {
|
|
86649
86649
|
return [
|
|
86650
86650
|
'data',
|
|
@@ -87843,16 +87843,16 @@ function requireIndex_cjs () {
|
|
|
87843
87843
|
[RADAR_CONNECTOR_TEMPLATE]: RadarConnector,
|
|
87844
87844
|
};
|
|
87845
87845
|
|
|
87846
|
-
const BaseInputClass$
|
|
87846
|
+
const BaseInputClass$8 = createBaseInputClass$1({
|
|
87847
87847
|
componentName: componentName$1c,
|
|
87848
87848
|
baseSelector: '',
|
|
87849
87849
|
});
|
|
87850
87850
|
const initConnectorAttrs = ['public-api-key'];
|
|
87851
87851
|
const observedAttrs$7 = [...initConnectorAttrs];
|
|
87852
87852
|
|
|
87853
|
-
class RawAddressFieldInternal extends BaseInputClass$
|
|
87853
|
+
class RawAddressFieldInternal extends BaseInputClass$8 {
|
|
87854
87854
|
static get observedAttributes() {
|
|
87855
|
-
return [].concat(BaseInputClass$
|
|
87855
|
+
return [].concat(BaseInputClass$8.observedAttributes || [], observedAttrs$7);
|
|
87856
87856
|
}
|
|
87857
87857
|
|
|
87858
87858
|
get errorMsgValueMissing() {
|
|
@@ -88123,20 +88123,20 @@ function requireIndex_cjs () {
|
|
|
88123
88123
|
|
|
88124
88124
|
const observedAttributes$5 = ['seconds', 'hide-icon', 'paused'];
|
|
88125
88125
|
|
|
88126
|
-
const BaseClass$
|
|
88126
|
+
const BaseClass$8 = createBaseClass$1({
|
|
88127
88127
|
componentName: componentName$1a,
|
|
88128
88128
|
baseSelector: ':host > .wrapper',
|
|
88129
88129
|
});
|
|
88130
88130
|
|
|
88131
88131
|
const DEFAULT_INTERVAL = 1000;
|
|
88132
88132
|
|
|
88133
|
-
class RawTimer extends BaseClass$
|
|
88133
|
+
class RawTimer extends BaseClass$8 {
|
|
88134
88134
|
#timeRemains = 0;
|
|
88135
88135
|
|
|
88136
88136
|
#intervalId;
|
|
88137
88137
|
|
|
88138
88138
|
static get observedAttributes() {
|
|
88139
|
-
return observedAttributes$5.concat(BaseClass$
|
|
88139
|
+
return observedAttributes$5.concat(BaseClass$8.observedAttributes || []);
|
|
88140
88140
|
}
|
|
88141
88141
|
|
|
88142
88142
|
constructor() {
|
|
@@ -88375,12 +88375,12 @@ function requireIndex_cjs () {
|
|
|
88375
88375
|
'timer-paused': 'paused',
|
|
88376
88376
|
};
|
|
88377
88377
|
|
|
88378
|
-
const BaseClass$
|
|
88378
|
+
const BaseClass$7 = createBaseClass$1({
|
|
88379
88379
|
componentName: componentName$19,
|
|
88380
88380
|
baseSelector: ':host > div',
|
|
88381
88381
|
});
|
|
88382
88382
|
|
|
88383
|
-
class RawTimerButton extends BaseClass$
|
|
88383
|
+
class RawTimerButton extends BaseClass$7 {
|
|
88384
88384
|
constructor() {
|
|
88385
88385
|
super();
|
|
88386
88386
|
|
|
@@ -88853,10 +88853,12 @@ function requireIndex_cjs () {
|
|
|
88853
88853
|
<div class="wrapper">
|
|
88854
88854
|
<descope-text st-host-direction="ltr">
|
|
88855
88855
|
<div class="header">
|
|
88856
|
-
<div class="
|
|
88857
|
-
<
|
|
88856
|
+
<div class="title">
|
|
88857
|
+
<div class="icon">
|
|
88858
|
+
<descope-icon st-fill="currentcolor" src=${chevronIcon}></descope-icon>
|
|
88859
|
+
</div>
|
|
88860
|
+
<span></span>
|
|
88858
88861
|
</div>
|
|
88859
|
-
<span></span>
|
|
88860
88862
|
</div>
|
|
88861
88863
|
</descope-text>
|
|
88862
88864
|
<div class="content">
|
|
@@ -88888,6 +88890,16 @@ function requireIndex_cjs () {
|
|
|
88888
88890
|
display: flex;
|
|
88889
88891
|
align-items: baseline;
|
|
88890
88892
|
}
|
|
88893
|
+
.title {
|
|
88894
|
+
display: contents;
|
|
88895
|
+
}
|
|
88896
|
+
:host([attach-icon="true"]) .header {
|
|
88897
|
+
display: block;
|
|
88898
|
+
}
|
|
88899
|
+
:host([attach-icon="true"]) .title {
|
|
88900
|
+
display: inline-flex;
|
|
88901
|
+
align-items: baseline;
|
|
88902
|
+
}
|
|
88891
88903
|
.icon {
|
|
88892
88904
|
flex-shrink: 0;
|
|
88893
88905
|
height: var(${TextClass.cssVarList.textLineHeight});
|
|
@@ -89009,6 +89021,7 @@ function requireIndex_cjs () {
|
|
|
89009
89021
|
icon: () => 'descope-icon',
|
|
89010
89022
|
iconWrapper: () => '.icon',
|
|
89011
89023
|
header: () => '.header',
|
|
89024
|
+
iconAndText: () => '.header, .title',
|
|
89012
89025
|
text: () => 'span',
|
|
89013
89026
|
wrapper: () => '.wrapper',
|
|
89014
89027
|
content: () => 'div.content',
|
|
@@ -89049,7 +89062,7 @@ function requireIndex_cjs () {
|
|
|
89049
89062
|
|
|
89050
89063
|
headerIconOrder: { selector: selectors$2.iconWrapper, property: 'order' },
|
|
89051
89064
|
headerCursor: { selector: selectors$2.header, property: 'cursor' },
|
|
89052
|
-
headerGap: { selector: selectors$2.
|
|
89065
|
+
headerGap: { selector: selectors$2.iconAndText, property: 'gap' },
|
|
89053
89066
|
textGrow: { selector: selectors$2.text, property: 'flex-grow' },
|
|
89054
89067
|
textDirection: { selector: selectors$2.text, property: 'direction' },
|
|
89055
89068
|
iconAnimationDuration: {
|
|
@@ -89074,7 +89087,7 @@ function requireIndex_cjs () {
|
|
|
89074
89087
|
{
|
|
89075
89088
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
89076
89089
|
},
|
|
89077
|
-
componentName$17
|
|
89090
|
+
componentName$17,
|
|
89078
89091
|
);
|
|
89079
89092
|
|
|
89080
89093
|
const { shadowColor: shadowColor$6 } = helperRefs$4;
|
|
@@ -89155,8 +89168,8 @@ function requireIndex_cjs () {
|
|
|
89155
89168
|
},
|
|
89156
89169
|
|
|
89157
89170
|
iconPosition: {
|
|
89158
|
-
|
|
89159
|
-
|
|
89171
|
+
left: { [compVars$5.headerIconOrder]: '0' },
|
|
89172
|
+
right: { [compVars$5.headerIconOrder]: '1' },
|
|
89160
89173
|
},
|
|
89161
89174
|
|
|
89162
89175
|
_fillTitle: {
|
|
@@ -89171,7 +89184,7 @@ function requireIndex_cjs () {
|
|
|
89171
89184
|
|
|
89172
89185
|
_collapsible: {
|
|
89173
89186
|
[compVars$5.headerCursor]: 'pointer',
|
|
89174
|
-
}
|
|
89187
|
+
},
|
|
89175
89188
|
};
|
|
89176
89189
|
|
|
89177
89190
|
const vars$U = {
|
|
@@ -89409,12 +89422,12 @@ function requireIndex_cjs () {
|
|
|
89409
89422
|
`;
|
|
89410
89423
|
};
|
|
89411
89424
|
|
|
89412
|
-
const BaseClass$
|
|
89425
|
+
const BaseClass$6 = createBaseClass$1({
|
|
89413
89426
|
componentName: componentName$15,
|
|
89414
89427
|
baseSelector: 'descope-list',
|
|
89415
89428
|
});
|
|
89416
89429
|
|
|
89417
|
-
class RawOutboundAppsClass extends BaseClass$
|
|
89430
|
+
class RawOutboundAppsClass extends BaseClass$6 {
|
|
89418
89431
|
constructor() {
|
|
89419
89432
|
super();
|
|
89420
89433
|
|
|
@@ -89909,12 +89922,12 @@ function requireIndex_cjs () {
|
|
|
89909
89922
|
return template;
|
|
89910
89923
|
};
|
|
89911
89924
|
|
|
89912
|
-
const BaseClass$
|
|
89925
|
+
const BaseClass$5 = createBaseClass$1({
|
|
89913
89926
|
componentName: componentName$13,
|
|
89914
89927
|
baseSelector: ListClass.componentName,
|
|
89915
89928
|
});
|
|
89916
89929
|
|
|
89917
|
-
class RawTrustedDevicesClass extends BaseClass$
|
|
89930
|
+
class RawTrustedDevicesClass extends BaseClass$5 {
|
|
89918
89931
|
constructor() {
|
|
89919
89932
|
super();
|
|
89920
89933
|
|
|
@@ -90342,12 +90355,12 @@ function requireIndex_cjs () {
|
|
|
90342
90355
|
return template;
|
|
90343
90356
|
};
|
|
90344
90357
|
|
|
90345
|
-
const BaseClass$
|
|
90358
|
+
const BaseClass$4 = createBaseClass$1({
|
|
90346
90359
|
componentName: componentName$12,
|
|
90347
90360
|
baseSelector: 'span.wrapper',
|
|
90348
90361
|
});
|
|
90349
90362
|
|
|
90350
|
-
class RawMultiSsoClass extends BaseClass$
|
|
90363
|
+
class RawMultiSsoClass extends BaseClass$4 {
|
|
90351
90364
|
static get observedAttributes() {
|
|
90352
90365
|
return [
|
|
90353
90366
|
'label',
|
|
@@ -91311,7 +91324,7 @@ function requireIndex_cjs () {
|
|
|
91311
91324
|
|
|
91312
91325
|
// --- Base class ---
|
|
91313
91326
|
|
|
91314
|
-
const BaseInputClass$
|
|
91327
|
+
const BaseInputClass$7 = createBaseInputClass$1({
|
|
91315
91328
|
componentName: componentName$10,
|
|
91316
91329
|
baseSelector: '',
|
|
91317
91330
|
});
|
|
@@ -91346,9 +91359,9 @@ function requireIndex_cjs () {
|
|
|
91346
91359
|
'lang',
|
|
91347
91360
|
];
|
|
91348
91361
|
|
|
91349
|
-
class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$
|
|
91362
|
+
class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$7 {
|
|
91350
91363
|
static get observedAttributes() {
|
|
91351
|
-
return [].concat(BaseInputClass$
|
|
91364
|
+
return [].concat(BaseInputClass$7.observedAttributes || [], observedAttrs$6);
|
|
91352
91365
|
}
|
|
91353
91366
|
|
|
91354
91367
|
#countryComboBox;
|
|
@@ -92746,12 +92759,12 @@ function requireIndex_cjs () {
|
|
|
92746
92759
|
return template;
|
|
92747
92760
|
};
|
|
92748
92761
|
|
|
92749
|
-
const BaseClass$
|
|
92762
|
+
const BaseClass$3 = createBaseClass$1({
|
|
92750
92763
|
componentName: componentName$Z,
|
|
92751
92764
|
baseSelector: ListClass.componentName,
|
|
92752
92765
|
});
|
|
92753
92766
|
|
|
92754
|
-
class RawUserPasskeysClass extends BaseClass$
|
|
92767
|
+
class RawUserPasskeysClass extends BaseClass$3 {
|
|
92755
92768
|
static get observedAttributes() {
|
|
92756
92769
|
return [
|
|
92757
92770
|
'label',
|
|
@@ -93822,7 +93835,7 @@ function requireIndex_cjs () {
|
|
|
93822
93835
|
// vaadin-popover is the baseSelector hack carried over from descope-date-field so portalMixin
|
|
93823
93836
|
// can style the overlay. A cleaner solution requires upstream changes to portalMixin.
|
|
93824
93837
|
const BASE_SELECTOR$2 = 'vaadin-popover';
|
|
93825
|
-
const BaseInputClass$
|
|
93838
|
+
const BaseInputClass$6 = createBaseInputClass$1({
|
|
93826
93839
|
componentName: componentName$X,
|
|
93827
93840
|
baseSelector: BASE_SELECTOR$2,
|
|
93828
93841
|
});
|
|
@@ -93841,7 +93854,7 @@ function requireIndex_cjs () {
|
|
|
93841
93854
|
];
|
|
93842
93855
|
const observedAttrs$4 = [...monthDayFieldAttrs, ...pickerAttrs];
|
|
93843
93856
|
|
|
93844
|
-
class RawMonthDayFieldClass extends BaseInputClass$
|
|
93857
|
+
class RawMonthDayFieldClass extends BaseInputClass$6 {
|
|
93845
93858
|
format = DEFAULT_FORMAT$1;
|
|
93846
93859
|
|
|
93847
93860
|
#selectedCounterIdx = 0;
|
|
@@ -93858,7 +93871,7 @@ function requireIndex_cjs () {
|
|
|
93858
93871
|
];
|
|
93859
93872
|
|
|
93860
93873
|
static get observedAttributes() {
|
|
93861
|
-
return [].concat(BaseInputClass$
|
|
93874
|
+
return [].concat(BaseInputClass$6.observedAttributes || [], observedAttrs$4);
|
|
93862
93875
|
}
|
|
93863
93876
|
|
|
93864
93877
|
constructor() {
|
|
@@ -94862,7 +94875,7 @@ function requireIndex_cjs () {
|
|
|
94862
94875
|
'full-width',
|
|
94863
94876
|
];
|
|
94864
94877
|
|
|
94865
|
-
const BaseInputClass$
|
|
94878
|
+
const BaseInputClass$5 = createBaseInputClass$1({
|
|
94866
94879
|
componentName: componentName$W,
|
|
94867
94880
|
baseSelector: 'div',
|
|
94868
94881
|
});
|
|
@@ -94897,9 +94910,9 @@ function requireIndex_cjs () {
|
|
|
94897
94910
|
const dayEntries = (count) =>
|
|
94898
94911
|
Array.from({ length: count }, (_, i) => ({ id: i + 1, name: String(i + 1) }));
|
|
94899
94912
|
|
|
94900
|
-
class RawMonthDayPicker extends BaseInputClass$
|
|
94913
|
+
class RawMonthDayPicker extends BaseInputClass$5 {
|
|
94901
94914
|
static get observedAttributes() {
|
|
94902
|
-
return [].concat(BaseInputClass$
|
|
94915
|
+
return [].concat(BaseInputClass$5.observedAttributes || [], observedAttrs$3);
|
|
94903
94916
|
}
|
|
94904
94917
|
|
|
94905
94918
|
// 1..12 or null
|
|
@@ -96397,14 +96410,14 @@ function requireIndex_cjs () {
|
|
|
96397
96410
|
|
|
96398
96411
|
const BASE_SELECTOR$1 = 'vaadin-popover';
|
|
96399
96412
|
|
|
96400
|
-
const BaseClass$
|
|
96413
|
+
const BaseClass$2 = createBaseClass$1({
|
|
96401
96414
|
componentName: componentName$T,
|
|
96402
96415
|
baseSelector: BASE_SELECTOR$1,
|
|
96403
96416
|
});
|
|
96404
96417
|
|
|
96405
96418
|
const ROW_ICON_SLOTS = ['add-row-icon', 'delete-row-icon'];
|
|
96406
96419
|
|
|
96407
|
-
class RawFilterClass extends BaseClass$
|
|
96420
|
+
class RawFilterClass extends BaseClass$2 {
|
|
96408
96421
|
#committedRows = [];
|
|
96409
96422
|
|
|
96410
96423
|
// Set while committing a change that originated from the inner filter-rows,
|
|
@@ -96422,7 +96435,7 @@ function requireIndex_cjs () {
|
|
|
96422
96435
|
|
|
96423
96436
|
static get observedAttributes() {
|
|
96424
96437
|
return [
|
|
96425
|
-
...(BaseClass$
|
|
96438
|
+
...(BaseClass$2.observedAttributes || []),
|
|
96426
96439
|
'label',
|
|
96427
96440
|
'disable-indicator',
|
|
96428
96441
|
'data',
|
|
@@ -103386,11 +103399,11 @@ descope-enriched-text {
|
|
|
103386
103399
|
'icon',
|
|
103387
103400
|
];
|
|
103388
103401
|
|
|
103389
|
-
const BaseInputClass$
|
|
103402
|
+
const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$u, baseSelector: ':host > div' });
|
|
103390
103403
|
|
|
103391
|
-
class RawUploadFile extends BaseInputClass$
|
|
103404
|
+
class RawUploadFile extends BaseInputClass$4 {
|
|
103392
103405
|
static get observedAttributes() {
|
|
103393
|
-
return observedAttributes$2.concat(BaseInputClass$
|
|
103406
|
+
return observedAttributes$2.concat(BaseInputClass$4.observedAttributes || []);
|
|
103394
103407
|
}
|
|
103395
103408
|
|
|
103396
103409
|
constructor() {
|
|
@@ -107614,11 +107627,11 @@ descope-enriched-text {
|
|
|
107614
107627
|
|
|
107615
107628
|
const calendarUiAttrs = ['calendar-label-submit', 'calendar-label-cancel'];
|
|
107616
107629
|
|
|
107617
|
-
const BaseInputClass$
|
|
107630
|
+
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$c, baseSelector: 'div' });
|
|
107618
107631
|
|
|
107619
|
-
class RawCalendar extends BaseInputClass$
|
|
107632
|
+
class RawCalendar extends BaseInputClass$3 {
|
|
107620
107633
|
static get observedAttributes() {
|
|
107621
|
-
return [].concat(BaseInputClass$
|
|
107634
|
+
return [].concat(BaseInputClass$3.observedAttributes || [], observedAttrs$1, calendarUiAttrs);
|
|
107622
107635
|
}
|
|
107623
107636
|
|
|
107624
107637
|
// preview state epoch
|
|
@@ -108448,7 +108461,7 @@ descope-enriched-text {
|
|
|
108448
108461
|
// we set baseSelector to `vaadin-popover` as a temporary hack, so our portalMixin will
|
|
108449
108462
|
// be able to process this component's overlay. The whole process needs refactoring as soon as possible.
|
|
108450
108463
|
const BASE_SELECTOR = 'vaadin-popover';
|
|
108451
|
-
const BaseInputClass$
|
|
108464
|
+
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$b, baseSelector: BASE_SELECTOR });
|
|
108452
108465
|
|
|
108453
108466
|
const dateFieldAttrs = [
|
|
108454
108467
|
'format',
|
|
@@ -108461,7 +108474,7 @@ descope-enriched-text {
|
|
|
108461
108474
|
const calendarAttrs = ['years-range', 'calendar-months', 'calendar-weekdays'];
|
|
108462
108475
|
const observedAttrs = [...dateFieldAttrs, ...calendarAttrs];
|
|
108463
108476
|
|
|
108464
|
-
class RawDateFieldClass extends BaseInputClass$
|
|
108477
|
+
class RawDateFieldClass extends BaseInputClass$2 {
|
|
108465
108478
|
epoch = '';
|
|
108466
108479
|
|
|
108467
108480
|
format = DEFAULT_FORMAT;
|
|
@@ -108499,7 +108512,7 @@ descope-enriched-text {
|
|
|
108499
108512
|
];
|
|
108500
108513
|
|
|
108501
108514
|
static get observedAttributes() {
|
|
108502
|
-
return [].concat(BaseInputClass$
|
|
108515
|
+
return [].concat(BaseInputClass$2.observedAttributes || [], observedAttrs);
|
|
108503
108516
|
}
|
|
108504
108517
|
|
|
108505
108518
|
constructor() {
|
|
@@ -110378,12 +110391,12 @@ descope-enriched-text {
|
|
|
110378
110391
|
const PHONE_FIELD = 'descope-phone-field';
|
|
110379
110392
|
const PHONE_INPUT_BOX_FIELD = 'descope-phone-input-box-field';
|
|
110380
110393
|
|
|
110381
|
-
const BaseClass$
|
|
110394
|
+
const BaseClass$1 = createBaseClass({
|
|
110382
110395
|
componentName: componentName$6,
|
|
110383
110396
|
baseSelector: 'div',
|
|
110384
110397
|
});
|
|
110385
110398
|
|
|
110386
|
-
class RawHybridField extends BaseClass$
|
|
110399
|
+
class RawHybridField extends BaseClass$1 {
|
|
110387
110400
|
#isReportedValidity = false;
|
|
110388
110401
|
|
|
110389
110402
|
#selectionStart;
|
|
@@ -111013,10 +111026,10 @@ descope-enriched-text {
|
|
|
111013
111026
|
|
|
111014
111027
|
const observedAttributes$1 = ['enabled', 'site-key'];
|
|
111015
111028
|
|
|
111016
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$4, baseSelector: ':host > div' });
|
|
111017
|
-
class RawHcaptcha extends BaseInputClass {
|
|
111029
|
+
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$4, baseSelector: ':host > div' });
|
|
111030
|
+
class RawHcaptcha extends BaseInputClass$1 {
|
|
111018
111031
|
static get observedAttributes() {
|
|
111019
|
-
return observedAttributes$1.concat(BaseInputClass.observedAttributes || []);
|
|
111032
|
+
return observedAttributes$1.concat(BaseInputClass$1.observedAttributes || []);
|
|
111020
111033
|
}
|
|
111021
111034
|
|
|
111022
111035
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -111305,13 +111318,19 @@ descope-enriched-text {
|
|
|
111305
111318
|
|
|
111306
111319
|
const observedAttributes = ['enabled', 'site-key', 'action', 'enterprise', 'variant'];
|
|
111307
111320
|
|
|
111308
|
-
|
|
111321
|
+
// The runtime only validates elements carrying a `name` (querySelectorAll('*[name]')).
|
|
111322
|
+
const DEFAULT_FIELD_NAME = 'recaptcha';
|
|
111323
|
+
|
|
111324
|
+
const BaseInputClass = createBaseInputClass({
|
|
111309
111325
|
componentName: componentName$3,
|
|
111310
111326
|
baseSelector: ':host > div',
|
|
111311
111327
|
});
|
|
111312
|
-
class RawRecaptcha extends
|
|
111328
|
+
class RawRecaptcha extends BaseInputClass {
|
|
111329
|
+
/** The exact `name` this component wrote itself, or null if the name is not ours. */
|
|
111330
|
+
#ownedFieldName = null;
|
|
111331
|
+
|
|
111313
111332
|
static get observedAttributes() {
|
|
111314
|
-
return observedAttributes.concat(
|
|
111333
|
+
return observedAttributes.concat(BaseInputClass.observedAttributes || []);
|
|
111315
111334
|
}
|
|
111316
111335
|
|
|
111317
111336
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -111322,6 +111341,7 @@ descope-enriched-text {
|
|
|
111322
111341
|
}
|
|
111323
111342
|
|
|
111324
111343
|
if (attrName === 'variant') {
|
|
111344
|
+
this.#syncFormField();
|
|
111325
111345
|
this.updatePreview();
|
|
111326
111346
|
}
|
|
111327
111347
|
}
|
|
@@ -111337,7 +111357,7 @@ descope-enriched-text {
|
|
|
111337
111357
|
}
|
|
111338
111358
|
|
|
111339
111359
|
displayRecaptcha() {
|
|
111340
|
-
if (this.
|
|
111360
|
+
if (this.isWidgetVariant) {
|
|
111341
111361
|
this.displayWidget();
|
|
111342
111362
|
} else {
|
|
111343
111363
|
this.displayDeprecated();
|
|
@@ -111432,6 +111452,31 @@ descope-enriched-text {
|
|
|
111432
111452
|
super.init?.();
|
|
111433
111453
|
|
|
111434
111454
|
observeChildren$1(this, this.updatePreview.bind(this));
|
|
111455
|
+
// avoid any possible conflicts with the inner input element
|
|
111456
|
+
this.inputElement = this.recaptchaWidgetInputEle;
|
|
111457
|
+
this.recaptchaWidgetInputEle.getValidity = null;
|
|
111458
|
+
this.recaptchaWidgetInputEle.checkValidity = null;
|
|
111459
|
+
this.#syncFormField();
|
|
111460
|
+
}
|
|
111461
|
+
|
|
111462
|
+
/**
|
|
111463
|
+
* Only the widget variant is a form field — the others must not carry a name, or the screen
|
|
111464
|
+
* would submit an always-empty value under it.
|
|
111465
|
+
*/
|
|
111466
|
+
#syncFormField() {
|
|
111467
|
+
if (this.isWidgetVariant) {
|
|
111468
|
+
if (!this.getAttribute('name')) {
|
|
111469
|
+
this.setAttribute('name', DEFAULT_FIELD_NAME);
|
|
111470
|
+
this.#ownedFieldName = DEFAULT_FIELD_NAME;
|
|
111471
|
+
}
|
|
111472
|
+
} else if (this.#ownedFieldName && this.getAttribute('name') === this.#ownedFieldName) {
|
|
111473
|
+
this.removeAttribute('name');
|
|
111474
|
+
this.#ownedFieldName = null;
|
|
111475
|
+
}
|
|
111476
|
+
|
|
111477
|
+
// Refreshes the mixin's cached validity, which reportValidity answers from. Non-bubbling on
|
|
111478
|
+
// purpose: the flow must not read this as user input.
|
|
111479
|
+
this.dispatchEvent(new Event('change'));
|
|
111435
111480
|
}
|
|
111436
111481
|
|
|
111437
111482
|
updatePreview() {
|
|
@@ -111447,7 +111492,7 @@ descope-enriched-text {
|
|
|
111447
111492
|
}
|
|
111448
111493
|
|
|
111449
111494
|
getValidity() {
|
|
111450
|
-
if (!this.
|
|
111495
|
+
if (!this.isWidgetVariant) {
|
|
111451
111496
|
return {};
|
|
111452
111497
|
}
|
|
111453
111498
|
|
|
@@ -111459,7 +111504,7 @@ descope-enriched-text {
|
|
|
111459
111504
|
}
|
|
111460
111505
|
|
|
111461
111506
|
checkValidity() {
|
|
111462
|
-
if (!this.
|
|
111507
|
+
if (!this.isWidgetVariant) {
|
|
111463
111508
|
return true;
|
|
111464
111509
|
}
|
|
111465
111510
|
|
|
@@ -111486,7 +111531,7 @@ descope-enriched-text {
|
|
|
111486
111531
|
return this.getAttribute('variant') || 'text';
|
|
111487
111532
|
}
|
|
111488
111533
|
|
|
111489
|
-
get
|
|
111534
|
+
get isWidgetVariant() {
|
|
111490
111535
|
return this.variant === 'widget';
|
|
111491
111536
|
}
|
|
111492
111537
|
|
|
@@ -111500,7 +111545,7 @@ descope-enriched-text {
|
|
|
111500
111545
|
|
|
111501
111546
|
#toggleRecaptcha(enabled) {
|
|
111502
111547
|
this.renderRecaptcha(enabled);
|
|
111503
|
-
if (this.
|
|
111548
|
+
if (this.isWidgetVariant) {
|
|
111504
111549
|
// For the interactive widget, scripts are loaded/executed by the runtime (grecaptcha-v2 for the
|
|
111505
111550
|
// v2 checkbox, grecaptcha for an Enterprise key). This legacy v3/invisible path must be fully
|
|
111506
111551
|
// skipped — the runtime renders into #recaptcha-widget and fills #recaptcha-widget-input.
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"webpack-subresource-integrity": "5.2.0-rc.1"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@descope/web-components-ui": "3.
|
|
100
|
+
"@descope/web-components-ui": "3.20.0"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react": ">= 18"
|