@lightningjs/blits 1.35.2 → 1.35.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.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/focus.js +1 -1
- package/src/lib/lifecycle.js +3 -2
- package/src/router/router.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.35.3
|
|
4
|
+
|
|
5
|
+
_03 Aug 2025_
|
|
6
|
+
|
|
7
|
+
- Changed order of `focus`-hook and `hasFocus` variable to distinguish between focus and refocus
|
|
8
|
+
- Updated focus related documentation
|
|
9
|
+
|
|
10
|
+
## v1.35.3
|
|
11
|
+
|
|
12
|
+
_31 Jul 2025_
|
|
13
|
+
|
|
14
|
+
- Fixed issue with navigation data being overridden by route data.
|
|
15
|
+
- Fixed issue with incorrect focus chain paths.
|
|
16
|
+
|
|
3
17
|
## v1.35.2
|
|
4
18
|
|
|
5
19
|
_25 Jul 2025_
|
package/package.json
CHANGED
package/src/focus.js
CHANGED
package/src/lib/lifecycle.js
CHANGED
|
@@ -77,12 +77,13 @@ export default {
|
|
|
77
77
|
this.previous = this.current
|
|
78
78
|
this.current = v
|
|
79
79
|
if (v === 'refocus') return
|
|
80
|
-
if (v === 'focus') this.component[symbols.state].hasFocus = true
|
|
81
|
-
if (v === 'unfocus') this.component[symbols.state].hasFocus = false
|
|
82
80
|
// emit 'private' hook
|
|
83
81
|
privateEmit(v, this.component[symbols.identifier], this.component)
|
|
84
82
|
// emit 'public' hook
|
|
85
83
|
emit(v, this.component[symbols.identifier], this.component)
|
|
84
|
+
// update the built-in hasFocus state variable
|
|
85
|
+
if (v === 'focus') this.component[symbols.state].hasFocus = true
|
|
86
|
+
if (v === 'unfocus') this.component[symbols.state].hasFocus = false
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
}
|
package/src/router/router.js
CHANGED