@descope/flow-components 3.10.0 → 3.10.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.10.0",
8
+ "buildVersion": "3.10.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.10.0",
8
+ "buildVersion": "3.10.2",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -106547,8 +106547,6 @@ descope-enriched-text {
106547
106547
  `;
106548
106548
 
106549
106549
  this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
106550
-
106551
- this.#syncComponentState();
106552
106550
  }
106553
106551
 
106554
106552
  init() {
@@ -106606,7 +106604,7 @@ descope-enriched-text {
106606
106604
  // To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
106607
106605
  // Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
106608
106606
  #syncComponentState() {
106609
- const hasHidden = this.#anchor.classList.contains('hidden');
106607
+ const hasHidden = this.#anchor?.classList?.contains('hidden');
106610
106608
  this.classList.toggle('hidden', hasHidden);
106611
106609
  }
106612
106610
 
@@ -106671,6 +106669,7 @@ descope-enriched-text {
106671
106669
  // empty host rather than reserving its layout box.
106672
106670
  #onAnchorChanged() {
106673
106671
  this.toggleAttribute('has-anchor', !!this.#anchor);
106672
+ this.#syncComponentState();
106674
106673
  }
106675
106674
  }
106676
106675
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "3.10.0",
3
+ "version": "3.10.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.10.0"
100
+ "@descope/web-components-ui": "3.10.2"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": ">= 18"