@24i/bigscreen-sdk 1.0.25-alpha.2438 → 1.0.25-alpha.2440
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.25-alpha.
|
|
3
|
+
"version": "1.0.25-alpha.2440",
|
|
4
4
|
"description": "SmartApps BIGscreen SDK monorepo",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@24i/appstage-shared-analytics": "1.0.19",
|
|
41
41
|
"@24i/appstage-shared-events-manager": "1.0.11",
|
|
42
42
|
"@24i/appstage-shared-perf-utils": "1.0.11",
|
|
43
|
-
"@24i/bigscreen-players-engine-base": "1.0.
|
|
43
|
+
"@24i/bigscreen-players-engine-base": "1.0.6",
|
|
44
44
|
"@24i/smartapps-datalayer": "3.0.10-alpha.1014",
|
|
45
45
|
"@sentry/browser": "7.35.0",
|
|
46
46
|
"@sentry/types": "7.35.0",
|
|
@@ -8,6 +8,7 @@ export type Props = {
|
|
|
8
8
|
withSeconds?: boolean,
|
|
9
9
|
domRef?: Reference<HTMLDivElement>,
|
|
10
10
|
className?: string,
|
|
11
|
+
isHiddenForAria?: boolean,
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const WITHOUT_SECONDS_OPTIONS = {
|
|
@@ -65,7 +66,13 @@ export class DigitalClock extends Component<Props> {
|
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
render() {
|
|
68
|
-
const { className } = this.props;
|
|
69
|
-
return
|
|
69
|
+
const { className, isHiddenForAria } = this.props;
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
ref={this.clockRef}
|
|
73
|
+
className={className}
|
|
74
|
+
{...isHiddenForAria && { 'aria-hidden': true }}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
70
77
|
}
|
|
71
78
|
}
|
|
@@ -8,6 +8,7 @@ type Props = PlayerUITimeProps & {
|
|
|
8
8
|
longTreshold?: number,
|
|
9
9
|
shortFormat?: string,
|
|
10
10
|
longFormat?: string,
|
|
11
|
+
isHiddenForAria?: boolean,
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export class PlayerTime extends Component<Props> {
|
|
@@ -42,11 +43,12 @@ export class PlayerTime extends Component<Props> {
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
render() {
|
|
45
|
-
const { className } = this.props;
|
|
46
|
+
const { className, isHiddenForAria } = this.props;
|
|
46
47
|
return (
|
|
47
48
|
<div
|
|
48
49
|
ref={this.div}
|
|
49
50
|
className={`player-time ${className || ''}`}
|
|
51
|
+
{...isHiddenForAria && { 'aria-hidden': true }}
|
|
50
52
|
>
|
|
51
53
|
{this.formatTime()}
|
|
52
54
|
</div>
|