@annoto/widget-api 3.31.0-alpha.0 → 3.32.0-alpha.0

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
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.32.0-alpha.0](https://github.com/Annoto/annoto/compare/v3.31.0...v3.32.0-alpha.0) (2023-10-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **widget-api:** fix generated docs ([2b722f3](https://github.com/Annoto/annoto/commit/2b722f3048c2382996601d45a0fce4add6d56e7d))
12
+
13
+
14
+ ### Features
15
+
16
+ * moderated comments actions ([#194](https://github.com/Annoto/annoto/issues/194)) ([deaa06f](https://github.com/Annoto/annoto/commit/deaa06fb90c01beaa51fd53866123853b5fa3c76))
17
+
18
+
19
+
20
+
21
+
22
+ # [3.31.0](https://github.com/Annoto/annoto/compare/v3.31.0-alpha.0...v3.31.0) (2023-09-03)
23
+
24
+ **Note:** Version bump only for package @annoto/widget-api
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.31.0-alpha.0](https://github.com/Annoto/annoto/compare/v3.30.0...v3.31.0-alpha.0) (2023-08-31)
7
31
 
8
32
 
@@ -1,9 +1,8 @@
1
- type UserScopeType = 'outcast' | 'user' | 'member' | 'moderator' | 'super-mod' | 'admin';
1
+ export type UserScopeType = 'outcast' | 'user' | 'member' | 'moderator' | 'super-mod' | 'admin';
2
2
  export interface IPermissions {
3
3
  /**
4
4
  * If defined, only users with this scope will see the widget.
5
5
  */
6
6
  scope?: UserScopeType;
7
7
  }
8
- export {};
9
8
  //# sourceMappingURL=permissions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../lib/config/permissions.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAEzF,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB"}
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../lib/config/permissions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAEhG,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB"}
@@ -13,12 +13,12 @@ export interface IWidgetConfig<F = IFeatures> {
13
13
  positionElement?: string | HTMLElement;
14
14
  /**
15
15
  * Configuration options that affect the user experience.
16
- * Overrides any backend and {@link IConfig} ux settings.
16
+ * Overrides any backend and {@link Config!IConfig} ux settings.
17
17
  */
18
18
  ux?: IWidgetUx;
19
19
  /**
20
20
  * Enable/disable and configure features
21
- * Modifying the features will override the backend and {@link IConfig} features.
21
+ * Modifying the features will override the backend and {@link Config!IConfig} features.
22
22
  * @remarks
23
23
  * If Feature is not enabled for the license it cannot be enabled via this api.
24
24
  */
@@ -17,7 +17,7 @@ export interface ICtaStatsEvent {
17
17
  */
18
18
  type: CtaStatsType;
19
19
  /**
20
- * The group Id provided on {@link IGroupDetails}
20
+ * The group Id provided on {@link Config!IGroupDetails}
21
21
  */
22
22
  group_id?: string;
23
23
  /**
@@ -9,15 +9,15 @@ export interface IMyActivity {
9
9
  */
10
10
  replies: number;
11
11
  /**
12
- * acc_completion from {@link IVideoBenchmarkEvent}
12
+ * acc_completion from {@link Events!IVideoBenchmarkEvent}
13
13
  */
14
14
  completion: number;
15
15
  /**
16
- * acc_heatmap from {@link IVideoBenchmarkEvent}
16
+ * acc_heatmap from {@link Events!IVideoBenchmarkEvent}
17
17
  */
18
18
  heatmap: IVideoBenchmarkHeatmap;
19
19
  /**
20
- * acc_watch_time from {@link IVideoBenchmarkEvent}
20
+ * acc_watch_time from {@link Events!IVideoBenchmarkEvent}
21
21
  */
22
22
  watch_time: number;
23
23
  /**
@@ -25,7 +25,7 @@ export interface IMyActivity {
25
25
  */
26
26
  sso_id?: string;
27
27
  /**
28
- * The group Id provided on {@link IGroupDetails}
28
+ * The group Id provided on {@link Config!IGroupDetails}
29
29
  */
30
30
  group_id?: string;
31
31
  /**
@@ -27,7 +27,7 @@ export interface IStatsEvent {
27
27
  */
28
28
  type: StatsTypeEnum;
29
29
  /**
30
- * The group Id provided on {@link IGroupDetails}
30
+ * The group Id provided on {@link Config!IGroupDetails}
31
31
  */
32
32
  group_id?: string;
33
33
  /**
@@ -11,7 +11,7 @@ export interface IVideoBenchmarkHeatmap {
11
11
  }
12
12
  export interface IVideoBenchmarkEvent {
13
13
  /**
14
- * The group Id provided on {@link IGroupDetails}
14
+ * The group Id provided on {@link Config!IGroupDetails}
15
15
  */
16
16
  group_id?: string;
17
17
  /**
@@ -88,13 +88,13 @@ export interface IPlayerAdaptorApi {
88
88
  /**
89
89
  * @description Get currently played media source. The returned value, identifies
90
90
  * the current video and must be unique. It can be a full URL or an unique identifier.
91
- * Notice: this value can be overriden by player.mediaSrc widget configuration.
91
+ * Notice: this value can be overriden by hooks.mediaDetails widget configuration.
92
92
  * @returns {string | Promise<string>}
93
93
  */
94
94
  mediaSrc(): string | Promise<string>;
95
95
  /**
96
96
  * @description (OPTIONAL) Get Details for the media.
97
- * Notice: this value can be overriden by player.mediaDetails widget configuration.
97
+ * Notice: this value can be overriden by hooks.mediaDetails widget configuration.
98
98
  * @return {IMediaDetails | Promise<IMediaDetails>}
99
99
  */
100
100
  mediaMetadata?(): IMediaDetails | Promise<IMediaDetails>;
@@ -166,63 +166,63 @@ export interface IPlayerAdaptorApi {
166
166
  * @description cb should be called when the player is setup and the media metadata is loaded.
167
167
  * Note: This method MUST be called as the first event.
168
168
  * If your player does not support this event, simulate it by calling the cb manually.
169
- * @param cb{PlayerEventCallback}
169
+ * @param cb
170
170
  */
171
171
  onReady(cb: PlayerEventCallback): void;
172
172
  /**
173
173
  * @description cb should be called when the media is played.
174
- * @param cb{PlayerEventCallback}
174
+ * @param cb
175
175
  */
176
176
  onPlay(cb: PlayerEventCallback): void;
177
177
  /**
178
178
  * @description cb should be called when the media is paused.
179
- * @param cb{PlayerEventCallback}
179
+ * @param cb
180
180
  */
181
181
  onPause(cb: PlayerEventCallback): void;
182
182
  /**
183
183
  * @description cb should be called when the media is seeked
184
184
  * (playback position changes after seeking).
185
- * @param cb{PlayerEventCallback}
185
+ * @param cb
186
186
  */
187
187
  onSeek(cb: PlayerEventCallback): void;
188
188
  /**
189
189
  * @description cb should be called when the media playback current time is updated.
190
190
  * Or when the media duration is changed.
191
191
  * can be frequent. 200 msec is a good choice for period.
192
- * @param cb{PlayerEventCallback}
192
+ * @param cb
193
193
  */
194
194
  onTimeUpdate(cb: PlayerEventCallback): void;
195
195
  /**
196
196
  * @description cb should be called when the media source changes.
197
- * @param cb{PlayerEventCallback}
197
+ * @param cb
198
198
  */
199
199
  onMediaChange(cb: PlayerEventCallback): void;
200
200
  /**
201
201
  * @description (OPTIONAL) cb should be called when media is ended
202
202
  * NOTE: if not supported the function must be undefined.
203
203
  * Annoto will use other methods to detect media end.
204
- * @param cb{PlayerEventCallback}
204
+ * @param cb
205
205
  */
206
206
  onEnded?(cb: PlayerEventCallback): void;
207
207
  /**
208
208
  * @description (OPTIONAL) cb should be called when full screen state of the player changes.
209
209
  * NOTE: if not supported the function must be undefined.
210
210
  * Annoto will use other methods to detect full screen changes.
211
- * @param cb{(isFullScreen?: boolean) => void} the callback may pass non mandatory new full screen state as boolean.
211
+ * @param cb the callback may pass non mandatory new full screen state as boolean.
212
212
  */
213
213
  onFullScreen?(cb: (isFullScreen?: boolean) => void): void;
214
214
  /**
215
215
  * @description (OPTIONAL) cb should be called when player size changes.
216
216
  * NOTE: if not supported the function must be undefined.
217
217
  * Annoto will use other methods to detect size change.
218
- * @param cb{PlayerEventCallback}
218
+ * @param cb
219
219
  */
220
220
  onSizeChange?(cb: PlayerEventCallback): void;
221
221
  /**
222
222
  * @description (OPTIONAL) cb should be called when
223
223
  * the media element/player is taken off of a page.
224
224
  * Useful for dynamic websites.
225
- * @param cb{PlayerEventCallback}
225
+ * @param cb
226
226
  */
227
227
  onRemove?(cb: PlayerEventCallback): void;
228
228
  /**
@@ -230,28 +230,28 @@ export interface IPlayerAdaptorApi {
230
230
  * or keydown event captured on player.
231
231
  * Implementation of this callback may improve interactions and fast forwarding limit functionality
232
232
  * NOTE: if not supported the function must be undefined.
233
- * @param cb{CaptureUIEventCallback}
233
+ * @param cb
234
234
  */
235
235
  onCaptureUIEvent?(cb: CaptureUIEventCallback): void;
236
236
  /**
237
237
  * @description (OPTIONAL) Get player controls description parameters.
238
238
  * The parameters describe behavior of the player controls.
239
- * @returns {ControlsDescriptor} controls descriptor object
239
+ * @returns controls descriptor object
240
240
  */
241
241
  controlsDescriptor?(): IControlsDescriptor;
242
242
  /**
243
243
  * @description (OPTIONAL) If defined will be called at view refreshes of the widget.
244
244
  * Allows the player to perform optional adjustments to the controls descriptor.
245
245
  * NOTE: may be called frequently, so no heavy operations should be performed.
246
- * @param isPhone {boolean}
247
- * @param isFullScreen {boolean}
246
+ * @param isPhone
247
+ * @param isFullScreen
248
248
  */
249
249
  updateControlsDescriptor?(isPhone: boolean, isFullScreen: boolean): void;
250
250
  /**
251
251
  * @description (OPTIONAL) Get player controls hidden state.
252
252
  * NOTE: if not supported the function must be undefined.
253
253
  * Annoto will use other methods to detect controls state.
254
- * @returns {boolean}
254
+ * @returns
255
255
  */
256
256
  controlsHidden?(): boolean;
257
257
  /**
@@ -259,7 +259,7 @@ export interface IPlayerAdaptorApi {
259
259
  * If supported it will be used instead of controlsDescriptor values.
260
260
  * NOTE: if not supported the function must be undefined.
261
261
  * Annoto will use other methods to detect height of the player.
262
- * @returns {number | string} if string, may contain 'px'
262
+ * @returns if string, may contain 'px'
263
263
  */
264
264
  controlsHeight?(): number | string;
265
265
  /**
@@ -267,7 +267,7 @@ export interface IPlayerAdaptorApi {
267
267
  * If supported it will be used instead of controlsDescriptor values.
268
268
  * NOTE: if not supported the function must be undefined.
269
269
  * Annoto will use other methods to detect height of the player.
270
- * @returns {number | string} if string, may contain 'px'
270
+ * @returns if string, may contain 'px'
271
271
  */
272
272
  trackMarginLeft?(): number | string;
273
273
  /**
@@ -275,7 +275,7 @@ export interface IPlayerAdaptorApi {
275
275
  * If supported it will be used instead of controlsDescriptor values.
276
276
  * NOTE: if not supported the function must be undefined.
277
277
  * Annoto will use other methods to detect height of the player.
278
- * @returns {number | string} if string, may contain 'px'
278
+ * @returns if string, may contain 'px'
279
279
  */
280
280
  trackMarginRight?(): number | string;
281
281
  /**
@@ -285,7 +285,7 @@ export interface IPlayerAdaptorApi {
285
285
  * and controlsDescriptor.mouse parameters.
286
286
  * NOTE: if not supported the function must be undefined.
287
287
  * Annoto will use other methods to detect controls state.
288
- * @param cb{function}
288
+ * @param cb
289
289
  */
290
290
  onControlsShow?(cb: PlayerEventCallback): void;
291
291
  /**
@@ -295,7 +295,7 @@ export interface IPlayerAdaptorApi {
295
295
  * and controlsDescriptor.mouse parameters.
296
296
  * NOTE: if not supported the function must be undefined.
297
297
  * Annoto will use other methods to detect controls state.
298
- * @param cb{PlayerEventCallback}
298
+ * @param cb
299
299
  */
300
300
  onControlsHide?(cb: PlayerEventCallback): void;
301
301
  /**
@@ -315,7 +315,7 @@ export interface IPlayerAdaptorApi {
315
315
  * mouse over the players controls, for example for players where Annoto Timeline interfers with
316
316
  * some hover functionality of the player. The function is required only for Iframe players for
317
317
  * other players Annoto can detect the event by itself.
318
- * @param cb{PlayerEventCallback}
318
+ * @param cb
319
319
  */
320
320
  onControlsEnter?(cb: PlayerEventCallback): void;
321
321
  /**
@@ -327,7 +327,7 @@ export interface IPlayerAdaptorApi {
327
327
  * mouse over the players controls, for example for players where Annoto Timeline interfers with
328
328
  * some hover functionality of the player. The function is required only for Iframe players for
329
329
  * other players Annoto can detect the event by itself.
330
- * @param cb{PlayerEventCallback}
330
+ * @param cb
331
331
  */
332
332
  onControlsLeave?(cb: PlayerEventCallback): void;
333
333
  }
@@ -1,9 +1,8 @@
1
- type UserScopeType = 'outcast' | 'user' | 'member' | 'moderator' | 'super-mod' | 'admin';
1
+ export type UserScopeType = 'outcast' | 'user' | 'member' | 'moderator' | 'super-mod' | 'admin';
2
2
  export interface IPermissions {
3
3
  /**
4
4
  * If defined, only users with this scope will see the widget.
5
5
  */
6
6
  scope?: UserScopeType;
7
7
  }
8
- export {};
9
8
  //# sourceMappingURL=permissions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../lib/config/permissions.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAEzF,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB"}
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../lib/config/permissions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAEhG,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB"}
@@ -13,12 +13,12 @@ export interface IWidgetConfig<F = IFeatures> {
13
13
  positionElement?: string | HTMLElement;
14
14
  /**
15
15
  * Configuration options that affect the user experience.
16
- * Overrides any backend and {@link IConfig} ux settings.
16
+ * Overrides any backend and {@link Config!IConfig} ux settings.
17
17
  */
18
18
  ux?: IWidgetUx;
19
19
  /**
20
20
  * Enable/disable and configure features
21
- * Modifying the features will override the backend and {@link IConfig} features.
21
+ * Modifying the features will override the backend and {@link Config!IConfig} features.
22
22
  * @remarks
23
23
  * If Feature is not enabled for the license it cannot be enabled via this api.
24
24
  */
@@ -17,7 +17,7 @@ export interface ICtaStatsEvent {
17
17
  */
18
18
  type: CtaStatsType;
19
19
  /**
20
- * The group Id provided on {@link IGroupDetails}
20
+ * The group Id provided on {@link Config!IGroupDetails}
21
21
  */
22
22
  group_id?: string;
23
23
  /**
@@ -9,15 +9,15 @@ export interface IMyActivity {
9
9
  */
10
10
  replies: number;
11
11
  /**
12
- * acc_completion from {@link IVideoBenchmarkEvent}
12
+ * acc_completion from {@link Events!IVideoBenchmarkEvent}
13
13
  */
14
14
  completion: number;
15
15
  /**
16
- * acc_heatmap from {@link IVideoBenchmarkEvent}
16
+ * acc_heatmap from {@link Events!IVideoBenchmarkEvent}
17
17
  */
18
18
  heatmap: IVideoBenchmarkHeatmap;
19
19
  /**
20
- * acc_watch_time from {@link IVideoBenchmarkEvent}
20
+ * acc_watch_time from {@link Events!IVideoBenchmarkEvent}
21
21
  */
22
22
  watch_time: number;
23
23
  /**
@@ -25,7 +25,7 @@ export interface IMyActivity {
25
25
  */
26
26
  sso_id?: string;
27
27
  /**
28
- * The group Id provided on {@link IGroupDetails}
28
+ * The group Id provided on {@link Config!IGroupDetails}
29
29
  */
30
30
  group_id?: string;
31
31
  /**
@@ -27,7 +27,7 @@ export interface IStatsEvent {
27
27
  */
28
28
  type: StatsTypeEnum;
29
29
  /**
30
- * The group Id provided on {@link IGroupDetails}
30
+ * The group Id provided on {@link Config!IGroupDetails}
31
31
  */
32
32
  group_id?: string;
33
33
  /**
@@ -11,7 +11,7 @@ export interface IVideoBenchmarkHeatmap {
11
11
  }
12
12
  export interface IVideoBenchmarkEvent {
13
13
  /**
14
- * The group Id provided on {@link IGroupDetails}
14
+ * The group Id provided on {@link Config!IGroupDetails}
15
15
  */
16
16
  group_id?: string;
17
17
  /**
@@ -88,13 +88,13 @@ export interface IPlayerAdaptorApi {
88
88
  /**
89
89
  * @description Get currently played media source. The returned value, identifies
90
90
  * the current video and must be unique. It can be a full URL or an unique identifier.
91
- * Notice: this value can be overriden by player.mediaSrc widget configuration.
91
+ * Notice: this value can be overriden by hooks.mediaDetails widget configuration.
92
92
  * @returns {string | Promise<string>}
93
93
  */
94
94
  mediaSrc(): string | Promise<string>;
95
95
  /**
96
96
  * @description (OPTIONAL) Get Details for the media.
97
- * Notice: this value can be overriden by player.mediaDetails widget configuration.
97
+ * Notice: this value can be overriden by hooks.mediaDetails widget configuration.
98
98
  * @return {IMediaDetails | Promise<IMediaDetails>}
99
99
  */
100
100
  mediaMetadata?(): IMediaDetails | Promise<IMediaDetails>;
@@ -166,63 +166,63 @@ export interface IPlayerAdaptorApi {
166
166
  * @description cb should be called when the player is setup and the media metadata is loaded.
167
167
  * Note: This method MUST be called as the first event.
168
168
  * If your player does not support this event, simulate it by calling the cb manually.
169
- * @param cb{PlayerEventCallback}
169
+ * @param cb
170
170
  */
171
171
  onReady(cb: PlayerEventCallback): void;
172
172
  /**
173
173
  * @description cb should be called when the media is played.
174
- * @param cb{PlayerEventCallback}
174
+ * @param cb
175
175
  */
176
176
  onPlay(cb: PlayerEventCallback): void;
177
177
  /**
178
178
  * @description cb should be called when the media is paused.
179
- * @param cb{PlayerEventCallback}
179
+ * @param cb
180
180
  */
181
181
  onPause(cb: PlayerEventCallback): void;
182
182
  /**
183
183
  * @description cb should be called when the media is seeked
184
184
  * (playback position changes after seeking).
185
- * @param cb{PlayerEventCallback}
185
+ * @param cb
186
186
  */
187
187
  onSeek(cb: PlayerEventCallback): void;
188
188
  /**
189
189
  * @description cb should be called when the media playback current time is updated.
190
190
  * Or when the media duration is changed.
191
191
  * can be frequent. 200 msec is a good choice for period.
192
- * @param cb{PlayerEventCallback}
192
+ * @param cb
193
193
  */
194
194
  onTimeUpdate(cb: PlayerEventCallback): void;
195
195
  /**
196
196
  * @description cb should be called when the media source changes.
197
- * @param cb{PlayerEventCallback}
197
+ * @param cb
198
198
  */
199
199
  onMediaChange(cb: PlayerEventCallback): void;
200
200
  /**
201
201
  * @description (OPTIONAL) cb should be called when media is ended
202
202
  * NOTE: if not supported the function must be undefined.
203
203
  * Annoto will use other methods to detect media end.
204
- * @param cb{PlayerEventCallback}
204
+ * @param cb
205
205
  */
206
206
  onEnded?(cb: PlayerEventCallback): void;
207
207
  /**
208
208
  * @description (OPTIONAL) cb should be called when full screen state of the player changes.
209
209
  * NOTE: if not supported the function must be undefined.
210
210
  * Annoto will use other methods to detect full screen changes.
211
- * @param cb{(isFullScreen?: boolean) => void} the callback may pass non mandatory new full screen state as boolean.
211
+ * @param cb the callback may pass non mandatory new full screen state as boolean.
212
212
  */
213
213
  onFullScreen?(cb: (isFullScreen?: boolean) => void): void;
214
214
  /**
215
215
  * @description (OPTIONAL) cb should be called when player size changes.
216
216
  * NOTE: if not supported the function must be undefined.
217
217
  * Annoto will use other methods to detect size change.
218
- * @param cb{PlayerEventCallback}
218
+ * @param cb
219
219
  */
220
220
  onSizeChange?(cb: PlayerEventCallback): void;
221
221
  /**
222
222
  * @description (OPTIONAL) cb should be called when
223
223
  * the media element/player is taken off of a page.
224
224
  * Useful for dynamic websites.
225
- * @param cb{PlayerEventCallback}
225
+ * @param cb
226
226
  */
227
227
  onRemove?(cb: PlayerEventCallback): void;
228
228
  /**
@@ -230,28 +230,28 @@ export interface IPlayerAdaptorApi {
230
230
  * or keydown event captured on player.
231
231
  * Implementation of this callback may improve interactions and fast forwarding limit functionality
232
232
  * NOTE: if not supported the function must be undefined.
233
- * @param cb{CaptureUIEventCallback}
233
+ * @param cb
234
234
  */
235
235
  onCaptureUIEvent?(cb: CaptureUIEventCallback): void;
236
236
  /**
237
237
  * @description (OPTIONAL) Get player controls description parameters.
238
238
  * The parameters describe behavior of the player controls.
239
- * @returns {ControlsDescriptor} controls descriptor object
239
+ * @returns controls descriptor object
240
240
  */
241
241
  controlsDescriptor?(): IControlsDescriptor;
242
242
  /**
243
243
  * @description (OPTIONAL) If defined will be called at view refreshes of the widget.
244
244
  * Allows the player to perform optional adjustments to the controls descriptor.
245
245
  * NOTE: may be called frequently, so no heavy operations should be performed.
246
- * @param isPhone {boolean}
247
- * @param isFullScreen {boolean}
246
+ * @param isPhone
247
+ * @param isFullScreen
248
248
  */
249
249
  updateControlsDescriptor?(isPhone: boolean, isFullScreen: boolean): void;
250
250
  /**
251
251
  * @description (OPTIONAL) Get player controls hidden state.
252
252
  * NOTE: if not supported the function must be undefined.
253
253
  * Annoto will use other methods to detect controls state.
254
- * @returns {boolean}
254
+ * @returns
255
255
  */
256
256
  controlsHidden?(): boolean;
257
257
  /**
@@ -259,7 +259,7 @@ export interface IPlayerAdaptorApi {
259
259
  * If supported it will be used instead of controlsDescriptor values.
260
260
  * NOTE: if not supported the function must be undefined.
261
261
  * Annoto will use other methods to detect height of the player.
262
- * @returns {number | string} if string, may contain 'px'
262
+ * @returns if string, may contain 'px'
263
263
  */
264
264
  controlsHeight?(): number | string;
265
265
  /**
@@ -267,7 +267,7 @@ export interface IPlayerAdaptorApi {
267
267
  * If supported it will be used instead of controlsDescriptor values.
268
268
  * NOTE: if not supported the function must be undefined.
269
269
  * Annoto will use other methods to detect height of the player.
270
- * @returns {number | string} if string, may contain 'px'
270
+ * @returns if string, may contain 'px'
271
271
  */
272
272
  trackMarginLeft?(): number | string;
273
273
  /**
@@ -275,7 +275,7 @@ export interface IPlayerAdaptorApi {
275
275
  * If supported it will be used instead of controlsDescriptor values.
276
276
  * NOTE: if not supported the function must be undefined.
277
277
  * Annoto will use other methods to detect height of the player.
278
- * @returns {number | string} if string, may contain 'px'
278
+ * @returns if string, may contain 'px'
279
279
  */
280
280
  trackMarginRight?(): number | string;
281
281
  /**
@@ -285,7 +285,7 @@ export interface IPlayerAdaptorApi {
285
285
  * and controlsDescriptor.mouse parameters.
286
286
  * NOTE: if not supported the function must be undefined.
287
287
  * Annoto will use other methods to detect controls state.
288
- * @param cb{function}
288
+ * @param cb
289
289
  */
290
290
  onControlsShow?(cb: PlayerEventCallback): void;
291
291
  /**
@@ -295,7 +295,7 @@ export interface IPlayerAdaptorApi {
295
295
  * and controlsDescriptor.mouse parameters.
296
296
  * NOTE: if not supported the function must be undefined.
297
297
  * Annoto will use other methods to detect controls state.
298
- * @param cb{PlayerEventCallback}
298
+ * @param cb
299
299
  */
300
300
  onControlsHide?(cb: PlayerEventCallback): void;
301
301
  /**
@@ -315,7 +315,7 @@ export interface IPlayerAdaptorApi {
315
315
  * mouse over the players controls, for example for players where Annoto Timeline interfers with
316
316
  * some hover functionality of the player. The function is required only for Iframe players for
317
317
  * other players Annoto can detect the event by itself.
318
- * @param cb{PlayerEventCallback}
318
+ * @param cb
319
319
  */
320
320
  onControlsEnter?(cb: PlayerEventCallback): void;
321
321
  /**
@@ -327,7 +327,7 @@ export interface IPlayerAdaptorApi {
327
327
  * mouse over the players controls, for example for players where Annoto Timeline interfers with
328
328
  * some hover functionality of the player. The function is required only for Iframe players for
329
329
  * other players Annoto can detect the event by itself.
330
- * @param cb{PlayerEventCallback}
330
+ * @param cb
331
331
  */
332
332
  onControlsLeave?(cb: PlayerEventCallback): void;
333
333
  }