@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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "3.22.1",
8
+ "buildVersion": "3.22.3",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "3.22.1",
8
+ "buildVersion": "3.22.3",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
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+CjxwYXRoIGQ9Ik0xNy4yMTkzIDkuMjcyODNDMTcuNjU4NCA4Ljg3OTEyIDE4LjMzMzQgOC45MTU4NyAxOC43MjcyIDkuMzU0OTJDMTkuMTIwOSA5Ljc5Mzk3IDE5LjA4NDEgMTAuNDY5MSAxOC42NDUxIDEwLjg2MjhDMTguNjQ1MSAxMC44NjI4IDEzLjA0NTcgMTYuMDAyMiAxMi42NCAxNi4zNjZDMTIuMjM0MyAxNi43Mjk4IDExLjc2MDggMTYuNzI5OCAxMS4zNTUyIDE2LjM2Nkw1LjM1NDkyIDEwLjg2MjhDNC45MTU4NyAxMC40NjkxIDQuODc5MTIgOS43OTM5NyA1LjI3MjgzIDkuMzU0OTJDNS42NjY1NSA4LjkxNTg3IDYuMzQxNjQgOC44NzkxMiA2Ljc4MDY5IDkuMjcyODNMMTIgMTQuMTM2OEwxNy4yMTkzIDkuMjcyODNaIi8+Cjwvc3ZnPgo=";
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.baseElement
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.1",
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.1"
101
+ "@descope/web-components-ui": "3.22.3"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "react": ">= 18"