@descope/flow-components 3.3.1 → 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.1",
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.1",
8
+ "buildVersion": "3.3.2",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -102274,8 +102274,10 @@ descope-enriched-text {
102274
102274
  #adjustPopoverPosition() {
102275
102275
  const popover = this.shadowRoot.querySelector('vaadin-popover').shadowRoot;
102276
102276
 
102277
- // Remove previously added stylesheets
102278
- 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
+ );
102279
102281
 
102280
102282
  const windowRect = document.body.getBoundingClientRect();
102281
102283
  const inputRect = this.getBoundingClientRect();
@@ -102293,14 +102295,17 @@ descope-enriched-text {
102293
102295
  newOffset = Math.min(Math.abs(offset), availableLeft) * -1;
102294
102296
  }
102295
102297
 
102296
- injectStyle(
102297
- `
102298
+ const css = `
102298
102299
  vaadin-popover-overlay::part(overlay) {
102299
102300
  transform: translateX(${newOffset}px);
102300
102301
  }
102301
- `,
102302
- popover
102303
- );
102302
+ `;
102303
+
102304
+ if (this.#popoverPosStylesheet) {
102305
+ this.#popoverPosStylesheet.replaceSync(css);
102306
+ } else {
102307
+ this.#popoverPosStylesheet = injectStyle(css, popover);
102308
+ }
102304
102309
  }
102305
102310
 
102306
102311
  #getPopoverContent() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.3.1",
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.1"
100
+ "@descope/web-components-ui": "3.3.2"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"