@lightningjs/blits 1.35.3 → 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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## v1.35.3
4
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
+
5
12
  _31 Jul 2025_
6
13
 
7
14
  - Fixed issue with navigation data being overridden by route data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "1.35.3",
3
+ "version": "1.35.4",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.js",
6
6
  "exports": {
@@ -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
  }