@descope/flow-components 3.1.8 → 3.1.10

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.1.8",
8
+ "buildVersion": "3.1.10",
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.1.8",
8
+ "buildVersion": "3.1.10",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -103722,7 +103722,11 @@ descope-enriched-text {
103722
103722
 
103723
103723
  onValueChange() {
103724
103724
  this.#selectionStart = this.activeInputEle.selectionStart;
103725
- this.handleActiveInput(this.activeInput.value);
103725
+ // phone components expose an API to their inputElement; in case of phone variants like
103726
+ // phone-input-box-field, we want to make sure that the value being passed
103727
+ // is raw value from input, and not the value with a dial-code prefix, or other decorations
103728
+ // applied behind the scenes by the phone components
103729
+ this.handleActiveInput(this.activeInputEle.value || this.activeInput.value);
103726
103730
  }
103727
103731
 
103728
103732
  handleActiveInput(val) {
@@ -103734,7 +103738,12 @@ descope-enriched-text {
103734
103738
  }
103735
103739
 
103736
103740
  setActiveInput(expectedActiveInput) {
103737
- const val = this.activeInput.value;
103741
+ // phone components expose an API to their inputElement; in case of phone variants like
103742
+ // phone-input-box-field, we want to make sure that the value being passed
103743
+ // is raw value from input, and not the value with a dial-code prefix, or other decorations
103744
+ // applied behind the scenes by the phone components
103745
+ const val = this.activeInputEle.value || this.activeInput.value;
103746
+
103738
103747
  this.activeInput = expectedActiveInput;
103739
103748
  this.setActiveInputValue(val);
103740
103749
  if (this.#isReportedValidity) this.activeInput.reportValidity();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.1.8",
3
+ "version": "3.1.10",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -59,7 +59,7 @@
59
59
  "eslint-config-standard": "17.1.0",
60
60
  "eslint-import-resolver-typescript": "4.4.4",
61
61
  "eslint-plugin-import": "2.32.0",
62
- "eslint-plugin-jest": "29.15.0",
62
+ "eslint-plugin-jest": "29.15.1",
63
63
  "eslint-plugin-jest-dom": "5.5.0",
64
64
  "eslint-plugin-jest-formatting": "3.1.0",
65
65
  "eslint-plugin-jsx-a11y": "^6.6.1",
@@ -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.1.8"
100
+ "@descope/web-components-ui": "3.1.10"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"