@lightningtv/solid 3.0.0-24 → 3.0.0-25

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.
@@ -6,17 +6,20 @@ export interface FocusNode {
6
6
  this: ElementNode,
7
7
  currentFocusedElm: ElementNode,
8
8
  prevFocusedElm: ElementNode | undefined,
9
+ nodeWithCallback: ElementNode,
9
10
  ) => void;
10
11
  onFocusChanged?: (
11
12
  this: ElementNode,
12
13
  hasFocus: boolean,
13
14
  currentFocusedElm: ElementNode,
14
15
  prevFocusedElm: ElementNode | undefined,
16
+ nodeWithCallback: ElementNode,
15
17
  ) => void;
16
18
  onBlur?: (
17
19
  this: ElementNode,
18
20
  currentFocusedElm: ElementNode,
19
21
  prevFocusedElm: ElementNode,
22
+ nodeWithCallback: ElementNode,
20
23
  ) => void;
21
24
  onKeyPress?: (
22
25
  this: ElementNode,
@@ -105,12 +105,18 @@ const updateFocusPath = (
105
105
  current === currentFocusedElm
106
106
  ) {
107
107
  current.states.add(Config.focusStateKey);
108
- current.onFocus?.call(current, currentFocusedElm, prevFocusedElm);
108
+ current.onFocus?.call(
109
+ current,
110
+ currentFocusedElm,
111
+ prevFocusedElm,
112
+ current,
113
+ );
109
114
  current.onFocusChanged?.call(
110
115
  current,
111
116
  true,
112
117
  currentFocusedElm,
113
118
  prevFocusedElm,
119
+ current,
114
120
  );
115
121
  }
116
122
  fp.push(current);
@@ -120,8 +126,14 @@ const updateFocusPath = (
120
126
  focusPath.forEach((elm) => {
121
127
  if (!fp.includes(elm)) {
122
128
  elm.states.remove(Config.focusStateKey);
123
- elm.onBlur?.call(elm, currentFocusedElm, prevFocusedElm!);
124
- elm.onFocusChanged?.call(elm, false, currentFocusedElm, prevFocusedElm);
129
+ elm.onBlur?.call(elm, currentFocusedElm, prevFocusedElm!, elm);
130
+ elm.onFocusChanged?.call(
131
+ elm,
132
+ false,
133
+ currentFocusedElm,
134
+ prevFocusedElm,
135
+ elm,
136
+ );
125
137
  }
126
138
  });
127
139
 
@@ -8,7 +8,7 @@ const fpsStyle = {
8
8
  x: 1900,
9
9
  y: 6,
10
10
  mountX: 1,
11
- alpha: 0.8,
11
+ alpha: 1,
12
12
  zIndex: 100
13
13
  };
14
14