@descope/flow-components 3.16.3 → 3.16.4

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.16.3",
8
+ "buildVersion": "3.16.4",
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.16.3",
8
+ "buildVersion": "3.16.4",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -108670,8 +108670,17 @@ descope-enriched-text {
108670
108670
 
108671
108671
  setActiveInputSelectionStart() {
108672
108672
  setTimeout(() => {
108673
- this.activeInputEle.focus();
108674
- this.activeInputEle.setSelectionRange?.(this.#selectionStart, this.#selectionStart);
108673
+ const ele = this.activeInputEle;
108674
+ ele.focus();
108675
+ // setSelectionRange throws InvalidStateError on input types that do not
108676
+ // support selection (e.g. `email`). The focus handler usually switches
108677
+ // type to `text` first, but that can race with the blur timer or fail
108678
+ // to fire (e.g. background tab). Restoring the caret is best-effort.
108679
+ try {
108680
+ ele.setSelectionRange?.(this.#selectionStart, this.#selectionStart);
108681
+ } catch {
108682
+ /* noop */
108683
+ }
108675
108684
  });
108676
108685
  }
108677
108686
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.16.3",
3
+ "version": "3.16.4",
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.16.3"
100
+ "@descope/web-components-ui": "3.16.4"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"