@descope/web-components-ui 3.23.1 → 3.23.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/index.esm.js CHANGED
@@ -9909,7 +9909,7 @@ const customMixin$d = (superclass) =>
9909
9909
  // Vaadin toggles visibility on Enter keydown but lets the event bubble,
9910
9910
  // and the SDK submits the form on any Enter that reaches the flow root.
9911
9911
  stopRevealButtonEnterPropagation() {
9912
- this.revealButton.addEventListener('keydown', (e) => {
9912
+ this.revealButton?.addEventListener('keydown', (e) => {
9913
9913
  if (e.key === 'Enter') e.stopPropagation();
9914
9914
  });
9915
9915
  }
@@ -9971,7 +9971,7 @@ const customMixin$d = (superclass) =>
9971
9971
  handlePasswordVisibility(externalInput) {
9972
9972
  // disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
9973
9973
  const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
9974
- this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
9974
+ this.revealButton?.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
9975
9975
 
9976
9976
  // disable vaadin's `_passwordVisibleChanged` observer
9977
9977
  this.baseElement._passwordVisibleChanged = () => {};
@@ -25099,7 +25099,7 @@ class RawRecoveryCodes extends createBaseClass$1({
25099
25099
  this.attachShadow({ mode: 'open' }).innerHTML = `
25100
25100
  <div class="wrapper">
25101
25101
  <div class="codes-box">
25102
- <div class="list"></div>
25102
+ <div class="list"><div class="codes-list"></div></div>
25103
25103
  <descope-text class="icon-wrapper">
25104
25104
  <div class="icons">
25105
25105
  <vaadin-icon class="icon copy-icon" icon="vaadin:copy-o" title="Copy"></vaadin-icon>
@@ -25139,6 +25139,17 @@ class RawRecoveryCodes extends createBaseClass$1({
25139
25139
  display: flex;
25140
25140
  flex-grow: 1;
25141
25141
  flex-direction: column;
25142
+ /* text-align maps to align-items here, so it positions the codes block
25143
+ (start/center/end) inside the available space, not each row */
25144
+ }
25145
+ .codes-list {
25146
+ display: flex;
25147
+ flex-direction: column;
25148
+ /* rows always start-aligned so the bullets line up in any font.
25149
+ width:fit-content hugs the codes so .list can position the whole
25150
+ block (keep it, it also defeats the stretch fallback) */
25151
+ align-items: flex-start;
25152
+ width: fit-content;
25142
25153
  }
25143
25154
  descope-text span {
25144
25155
  display: inline-flex;
@@ -25482,7 +25493,7 @@ const RecoveryCodesClass = compose$1(
25482
25493
  createDynamicDataMixin$1({
25483
25494
  itemRenderer: itemRenderer$4,
25484
25495
  rerenderAttrsList: ['variant', 'mode'],
25485
- targetSelector: '.list',
25496
+ targetSelector: '.codes-list',
25486
25497
  }),
25487
25498
  draggableMixin$1,
25488
25499
  componentNameValidationMixin$1,