@descope-ui/descope-anchored 3.9.0 → 3.9.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [3.9.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.9.1...web-components-ui-3.9.2) (2026-05-17)
6
+
7
+ ## [3.9.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.9.0...web-components-ui-3.9.1) (2026-05-17)
8
+
5
9
  ## [3.9.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.8.0...web-components-ui-3.9.0) (2026-05-17)
6
10
 
7
11
  ## [3.8.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.7.3...web-components-ui-3.8.0) (2026-05-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-anchored",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./src/component/index.js"
@@ -11,13 +11,13 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@playwright/test": "1.58.2",
14
- "e2e-utils": "3.9.0",
15
- "test-assets": "3.9.0",
16
- "test-drivers": "3.9.0"
14
+ "test-assets": "3.9.2",
15
+ "test-drivers": "3.9.2",
16
+ "e2e-utils": "3.9.2"
17
17
  },
18
18
  "dependencies": {
19
- "@descope-ui/common": "3.9.0",
20
- "@descope-ui/theme-globals": "3.9.0"
19
+ "@descope-ui/theme-globals": "3.9.2",
20
+ "@descope-ui/common": "3.9.2"
21
21
  },
22
22
  "publishConfig": {
23
23
  "link-workspace-packages": false
@@ -46,6 +46,8 @@ class RawAnchored extends createBaseClass({
46
46
  `;
47
47
 
48
48
  this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
49
+
50
+ this.#syncComponentState();
49
51
  }
50
52
 
51
53
  init() {
@@ -100,6 +102,13 @@ class RawAnchored extends createBaseClass({
100
102
  this.#syncAnchor();
101
103
  }
102
104
 
105
+ // To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
106
+ // Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
107
+ #syncComponentState() {
108
+ const hasHidden = this.#anchor.classList.contains('hidden');
109
+ this.classList.toggle('hidden', hasHidden);
110
+ }
111
+
103
112
  #syncAnchor() {
104
113
  this.#onAnchorChanged();
105
114