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