@descope/flow-components 3.22.1 → 3.22.3
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/__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 +29 -7
- 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
|
@@ -81924,6 +81924,13 @@ function requireIndex_cjs () {
|
|
|
81924
81924
|
e.stopPropagation();
|
|
81925
81925
|
}
|
|
81926
81926
|
});
|
|
81927
|
+
|
|
81928
|
+
// The SDK submits the form (and prevents link activation) on any Enter that reaches the flow root
|
|
81929
|
+
this.contentNode?.addEventListener('keydown', (e) => {
|
|
81930
|
+
if (e.key === 'Enter' && e.target instanceof HTMLAnchorElement) {
|
|
81931
|
+
e.stopPropagation();
|
|
81932
|
+
}
|
|
81933
|
+
});
|
|
81927
81934
|
}
|
|
81928
81935
|
|
|
81929
81936
|
static get observedAttributes() {
|
|
@@ -87147,7 +87154,7 @@ function requireIndex_cjs () {
|
|
|
87147
87154
|
vars: vars$V
|
|
87148
87155
|
});
|
|
87149
87156
|
|
|
87150
|
-
var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+
|
|
87157
|
+
var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K";
|
|
87151
87158
|
|
|
87152
87159
|
const componentName$17 = getComponentName('collapsible-container');
|
|
87153
87160
|
|
|
@@ -87223,9 +87230,6 @@ function requireIndex_cjs () {
|
|
|
87223
87230
|
descope-icon {
|
|
87224
87231
|
transition-property: transform;
|
|
87225
87232
|
}
|
|
87226
|
-
.rotate {
|
|
87227
|
-
transform: rotate(-180deg);
|
|
87228
|
-
}
|
|
87229
87233
|
descope-text {
|
|
87230
87234
|
width: 100%;
|
|
87231
87235
|
display: flex;
|
|
@@ -87332,6 +87336,7 @@ function requireIndex_cjs () {
|
|
|
87332
87336
|
const selectors$2 = {
|
|
87333
87337
|
host: () => ':host',
|
|
87334
87338
|
icon: () => 'descope-icon',
|
|
87339
|
+
collapsedIcon: () => 'descope-icon.rotate',
|
|
87335
87340
|
iconWrapper: () => '.icon',
|
|
87336
87341
|
header: () => '.header',
|
|
87337
87342
|
iconAndText: () => '.header, .title',
|
|
@@ -87386,6 +87391,11 @@ function requireIndex_cjs () {
|
|
|
87386
87391
|
selector: selectors$2.content,
|
|
87387
87392
|
property: 'transition-duration',
|
|
87388
87393
|
},
|
|
87394
|
+
chevronRotation: {
|
|
87395
|
+
selector: selectors$2.collapsedIcon,
|
|
87396
|
+
property: 'transform',
|
|
87397
|
+
fallback: 'rotate(180deg)',
|
|
87398
|
+
},
|
|
87389
87399
|
},
|
|
87390
87400
|
}),
|
|
87391
87401
|
draggableMixin$1,
|
|
@@ -87428,6 +87438,7 @@ function requireIndex_cjs () {
|
|
|
87428
87438
|
|
|
87429
87439
|
[compVars$5.headerGap]: globalRefs$u.spacing.md,
|
|
87430
87440
|
|
|
87441
|
+
[compVars$5.chevronRotation]: 'rotate(180deg)',
|
|
87431
87442
|
[compVars$5.iconAnimationDuration]: '0.1s',
|
|
87432
87443
|
[compVars$5.contentAnimationDuration]: '0.1s',
|
|
87433
87444
|
|
|
@@ -97237,6 +97248,19 @@ function requireIndex_cjs () {
|
|
|
97237
97248
|
this.baseElement._setFocused = this.setFocus.bind(this);
|
|
97238
97249
|
|
|
97239
97250
|
this.initExternalInput();
|
|
97251
|
+
this.stopRevealButtonEnterPropagation();
|
|
97252
|
+
}
|
|
97253
|
+
|
|
97254
|
+
// Vaadin toggles visibility on Enter keydown but lets the event bubble,
|
|
97255
|
+
// and the SDK submits the form on any Enter that reaches the flow root.
|
|
97256
|
+
stopRevealButtonEnterPropagation() {
|
|
97257
|
+
this.revealButton.addEventListener('keydown', (e) => {
|
|
97258
|
+
if (e.key === 'Enter') e.stopPropagation();
|
|
97259
|
+
});
|
|
97260
|
+
}
|
|
97261
|
+
|
|
97262
|
+
get revealButton() {
|
|
97263
|
+
return this.baseElement.querySelector('vaadin-password-field-button');
|
|
97240
97264
|
}
|
|
97241
97265
|
|
|
97242
97266
|
initExternalInput() {
|
|
@@ -97292,9 +97316,7 @@ function requireIndex_cjs () {
|
|
|
97292
97316
|
handlePasswordVisibility(externalInput) {
|
|
97293
97317
|
// disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
|
|
97294
97318
|
const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
|
|
97295
|
-
this.
|
|
97296
|
-
.querySelector('vaadin-password-field-button')
|
|
97297
|
-
.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
|
|
97319
|
+
this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
|
|
97298
97320
|
|
|
97299
97321
|
// disable vaadin's `_passwordVisibleChanged` observer
|
|
97300
97322
|
this.baseElement._passwordVisibleChanged = () => {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"webpack-subresource-integrity": "5.2.0-rc.1"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@descope/web-components-ui": "3.22.
|
|
101
|
+
"@descope/web-components-ui": "3.22.3"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"react": ">= 18"
|