@descope/flow-components 3.3.0 → 3.3.2

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.3.0",
8
+ "buildVersion": "3.3.2",
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.3.0",
8
+ "buildVersion": "3.3.2",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -95199,6 +95199,7 @@ descope-enriched-text {
95199
95199
  'allow-alphanumeric-input',
95200
95200
  'format-value',
95201
95201
  'strict-validation',
95202
+ 'phone-input-type',
95202
95203
  ],
95203
95204
  });
95204
95205
  }
@@ -95545,6 +95546,7 @@ descope-enriched-text {
95545
95546
  'format-value',
95546
95547
  'strict-validation',
95547
95548
  'data-errormessage-type-mismatch',
95549
+ 'phone-input-type',
95548
95550
  ],
95549
95551
  });
95550
95552
  }
@@ -102272,8 +102274,10 @@ descope-enriched-text {
102272
102274
  #adjustPopoverPosition() {
102273
102275
  const popover = this.shadowRoot.querySelector('vaadin-popover').shadowRoot;
102274
102276
 
102275
- // Remove previously added stylesheets
102276
- this.#popoverPosStylesheet?.remove();
102277
+ // Reset any previous transform so getBoundingClientRect measures the natural position
102278
+ this.#popoverPosStylesheet?.replaceSync(
102279
+ `vaadin-popover-overlay::part(overlay) { transform: none; }`
102280
+ );
102277
102281
 
102278
102282
  const windowRect = document.body.getBoundingClientRect();
102279
102283
  const inputRect = this.getBoundingClientRect();
@@ -102291,14 +102295,17 @@ descope-enriched-text {
102291
102295
  newOffset = Math.min(Math.abs(offset), availableLeft) * -1;
102292
102296
  }
102293
102297
 
102294
- injectStyle(
102295
- `
102298
+ const css = `
102296
102299
  vaadin-popover-overlay::part(overlay) {
102297
102300
  transform: translateX(${newOffset}px);
102298
102301
  }
102299
- `,
102300
- popover
102301
- );
102302
+ `;
102303
+
102304
+ if (this.#popoverPosStylesheet) {
102305
+ this.#popoverPosStylesheet.replaceSync(css);
102306
+ } else {
102307
+ this.#popoverPosStylesheet = injectStyle(css, popover);
102308
+ }
102302
102309
  }
102303
102310
 
102304
102311
  #getPopoverContent() {
@@ -103808,6 +103815,7 @@ descope-enriched-text {
103808
103815
  'phone-minlength',
103809
103816
  'phone-format-value',
103810
103817
  'phone-strict-validation',
103818
+ 'phone-input-type',
103811
103819
  'data-errormessage-value-missing-phone',
103812
103820
  ],
103813
103821
  inputBox: [
@@ -103816,6 +103824,7 @@ descope-enriched-text {
103816
103824
  'phone-minlength',
103817
103825
  'phone-format-value',
103818
103826
  'phone-strict-validation',
103827
+ 'phone-input-type',
103819
103828
  'data-errormessage-value-missing-phone',
103820
103829
  ],
103821
103830
  },
@@ -103855,8 +103864,8 @@ descope-enriched-text {
103855
103864
  this.attachShadow({ mode: 'open' }).innerHTML = `
103856
103865
  <div class="wrapper">
103857
103866
  <descope-email-field external-input="${this.isExternalInput}"></descope-email-field>
103858
- <descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
103859
- <descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
103867
+ <descope-phone-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-field>
103868
+ <descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>
103860
103869
  </div>
103861
103870
  `;
103862
103871
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
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.3.0"
100
+ "@descope/web-components-ui": "3.3.2"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"