@descope-ui/descope-anchored 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.
- package/CHANGELOG.md +9 -0
- package/package.json +6 -6
- package/src/component/AnchoredClass.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [3.10.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.10.1...web-components-ui-3.10.2) (2026-05-19)
|
|
6
|
+
|
|
7
|
+
## [3.10.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.10.0...web-components-ui-3.10.1) (2026-05-18)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **anchored:** guard [#sync](https://github.com/descope/web-components-ui/issues/sync)ComponentState against missing anchor ([#1030](https://github.com/descope/web-components-ui/issues/1030)) ([dc46a3a](https://github.com/descope/web-components-ui/commit/dc46a3a049aa6066591c5b17d5a8d0a67c3169e8))
|
|
13
|
+
|
|
5
14
|
## [3.10.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.9.2...web-components-ui-3.10.0) (2026-05-17)
|
|
6
15
|
|
|
7
16
|
## [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)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope-ui/descope-anchored",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.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.10.
|
|
15
|
-
"test-
|
|
16
|
-
"test-
|
|
14
|
+
"e2e-utils": "3.10.2",
|
|
15
|
+
"test-assets": "3.10.2",
|
|
16
|
+
"test-drivers": "3.10.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@descope-ui/
|
|
20
|
-
"@descope-ui/
|
|
19
|
+
"@descope-ui/theme-globals": "3.10.2",
|
|
20
|
+
"@descope-ui/common": "3.10.2"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"link-workspace-packages": false
|
|
@@ -46,8 +46,6 @@ class RawAnchored extends createBaseClass({
|
|
|
46
46
|
`;
|
|
47
47
|
|
|
48
48
|
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
49
|
-
|
|
50
|
-
this.#syncComponentState();
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
init() {
|
|
@@ -105,7 +103,7 @@ class RawAnchored extends createBaseClass({
|
|
|
105
103
|
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
106
104
|
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
107
105
|
#syncComponentState() {
|
|
108
|
-
const hasHidden = this.#anchor
|
|
106
|
+
const hasHidden = this.#anchor?.classList?.contains('hidden');
|
|
109
107
|
this.classList.toggle('hidden', hasHidden);
|
|
110
108
|
}
|
|
111
109
|
|
|
@@ -170,6 +168,7 @@ class RawAnchored extends createBaseClass({
|
|
|
170
168
|
// empty host rather than reserving its layout box.
|
|
171
169
|
#onAnchorChanged() {
|
|
172
170
|
this.toggleAttribute('has-anchor', !!this.#anchor);
|
|
171
|
+
this.#syncComponentState();
|
|
173
172
|
}
|
|
174
173
|
}
|
|
175
174
|
|