@24i/bigscreen-sdk 1.0.26-alpha.2447 → 1.0.26-alpha.2451
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@24i/bigscreen-sdk",
|
|
3
|
-
"version": "1.0.26-alpha.
|
|
3
|
+
"version": "1.0.26-alpha.2451",
|
|
4
4
|
"description": "SmartApps BIGscreen SDK monorepo",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@24i/appstage-shared-events-manager": "1.0.11",
|
|
42
42
|
"@24i/appstage-shared-perf-utils": "1.0.11",
|
|
43
43
|
"@24i/bigscreen-players-engine-base": "1.0.6",
|
|
44
|
-
"@24i/smartapps-datalayer": "3.0.10-alpha.
|
|
44
|
+
"@24i/smartapps-datalayer": "3.0.10-alpha.1016",
|
|
45
45
|
"@sentry/browser": "7.35.0",
|
|
46
46
|
"@sentry/types": "7.35.0",
|
|
47
47
|
"@types/gtag.js": "^0.0.13",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createRef, Component } from '@24i/bigscreen-sdk/jsx';
|
|
2
|
+
import { hasFocus } from '@24i/bigscreen-sdk/focus';
|
|
2
3
|
import { ScrollText } from '@24i/bigscreen-sdk/scroll-text';
|
|
3
4
|
import { map } from '@24i/bigscreen-sdk/perf-utils/array';
|
|
4
5
|
import { ITechnicalInfoProvider, TechnicalInfoData } from './ITechnicalInfoProvider';
|
|
@@ -38,7 +39,7 @@ class TechnicalInfoDetail extends Component<Props> {
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
hasFocus() {
|
|
41
|
-
return this.wrapRef
|
|
42
|
+
return hasFocus(this.wrapRef);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
renderInfoData(data: TechnicalInfoData) {
|
|
@@ -6,12 +6,12 @@ import { isElementWrappedBy } from '@24i/bigscreen-sdk/utils/elementUtils';
|
|
|
6
6
|
* if the element itself is the `activeElement`.
|
|
7
7
|
* @param elementOrReference DOM element or reference to element on which we test focus
|
|
8
8
|
* @param includeElementItself if true, active element is also tested with the provided element.
|
|
9
|
-
* Default is
|
|
9
|
+
* Default is true
|
|
10
10
|
* @returns true if the element has focused element inside or is itself focused
|
|
11
11
|
*/
|
|
12
12
|
export const hasFocus = (
|
|
13
13
|
elementOrReference: HTMLElement | Reference<HTMLElement>,
|
|
14
|
-
includeElementItself =
|
|
14
|
+
includeElementItself = true,
|
|
15
15
|
) => {
|
|
16
16
|
const element = unwrapReference(elementOrReference);
|
|
17
17
|
if (!element) return false;
|