@spash/frontlib 0.0.13 → 0.0.14-beta.2

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.
Files changed (3) hide show
  1. package/dist/main.d.ts +69 -1
  2. package/dist/main.js +4372 -4340
  3. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -17,6 +17,15 @@ declare interface AppOptions {
17
17
  };
18
18
  }
19
19
 
20
+ export declare interface Article {
21
+ '@id': string;
22
+ id: number;
23
+ title: string;
24
+ content: string;
25
+ imageUrl: string;
26
+ createdAt: Date;
27
+ }
28
+
20
29
  export declare interface CameraConfiguration {
21
30
  id: number;
22
31
  layer: CameraConfigurationLayer[];
@@ -44,12 +53,63 @@ export declare interface Competition {
44
53
  name: string;
45
54
  firstLogoImageUrl: string;
46
55
  secondLogoImageUrl: string;
56
+ ngtvId: string;
57
+ Sport: Sport;
47
58
  createdAt: string;
48
59
  }
49
60
 
61
+ export declare interface CompetitionDetail {
62
+ name: string;
63
+ firstLogoImageUrl: string;
64
+ secondLogoImageUrl: string;
65
+ ngtvSessions: CompetitionNgtvSessionDetail[];
66
+ groups: {
67
+ [key: string]: Team[];
68
+ };
69
+ }
70
+
71
+ export declare interface CompetitionNgtvSessionDetail {
72
+ homeScore: number;
73
+ homeTeam: Team;
74
+ awayScore: number;
75
+ awayTeam: Team;
76
+ competitionStage: string;
77
+ field: string;
78
+ plannedStartedAt: Date;
79
+ actualStartedAt: Date;
80
+ status: string;
81
+ }
82
+
50
83
  declare const _default: (app: App, options?: AppOptions) => void;
51
84
  export default _default;
52
85
 
86
+ export declare interface Dooh {
87
+ id: number;
88
+ name: string;
89
+ type: 'lite' | 'full';
90
+ theme: string;
91
+ orientation: 'portrait' | 'landscape';
92
+ }
93
+
94
+ export declare interface DoohContent {
95
+ '@id': string;
96
+ id: number;
97
+ contentType: DoohContentContentType;
98
+ competitionId: number;
99
+ duration: number;
100
+ displayDoohContent: boolean;
101
+ isVideo: boolean;
102
+ isSponsoring: boolean;
103
+ filePath: string;
104
+ article: Article;
105
+ competition: Competition;
106
+ competitionDetails: CompetitionDetail;
107
+ highlight: SessionEvent;
108
+ multiplexEvents: SessionEvent[];
109
+ }
110
+
111
+ declare type DoohContentContentType = 'article' | 'highlights' | 'image' | 'video' | 'competition' | 'multiplex' | 'ads';
112
+
53
113
  export declare interface Field {
54
114
  id: number;
55
115
  name: string;
@@ -59,6 +119,8 @@ export declare interface Field {
59
119
  subscribedOptions: string[];
60
120
  camerasTotal: number;
61
121
  camerasConfiguration: CameraConfiguration[];
122
+ advertHmiPostMatchImage: string;
123
+ advertHmiLoadingImage: string;
62
124
  }
63
125
 
64
126
  export declare interface Player {
@@ -165,6 +227,12 @@ export declare interface SessionType {
165
227
 
166
228
  export declare type SIZES = 'md' | 'lg' | 'xl';
167
229
 
230
+ export declare enum SpashVideoControls {
231
+ 'fullscreen' = "fullscreen",
232
+ 'readingSpeed' = "reading-speed",
233
+ 'timecode' = "timecode"
234
+ }
235
+
168
236
  export declare enum SpashVideoOptions {
169
237
  'buzz' = "buzz",
170
238
  'layer' = "layer",
@@ -268,7 +336,7 @@ export declare const useHelper: ({ t, router }?: {
268
336
  redirectToUrl: (redirectUrl: string) => void;
269
337
  timeoutRedirectToPage: (routeName: string, timeoutMinutes?: number) => void;
270
338
  buildQueryParams: (queryParams: any) => string;
271
- groupBy: (items: any[], key: string) => any[];
339
+ groupBy: <T, K extends keyof T>(items: T[], key: K) => Record<string, T[]>;
272
340
  timecodeToTimeObject: (timecode: any) => {
273
341
  hours: number;
274
342
  minutes: number;