@annoto/widget-api 3.0.0-alpha.2 → 3.0.0-alpha.6

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 (66) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/build/api/device-detector.d.ts +12 -0
  3. package/dist/build/api/device-detector.d.ts.map +1 -0
  4. package/dist/build/api/device-detector.js +3 -0
  5. package/dist/build/api/device-detector.js.map +1 -0
  6. package/dist/build/api/index.d.ts +11 -1
  7. package/dist/build/api/index.d.ts.map +1 -1
  8. package/dist/build/api/metadata.d.ts +45 -0
  9. package/dist/build/api/metadata.d.ts.map +1 -0
  10. package/dist/build/api/metadata.js +3 -0
  11. package/dist/build/api/metadata.js.map +1 -0
  12. package/dist/build/config/backend.d.ts +11 -0
  13. package/dist/build/config/backend.d.ts.map +1 -0
  14. package/dist/build/config/backend.js +3 -0
  15. package/dist/build/config/backend.js.map +1 -0
  16. package/dist/build/config/features.d.ts +46 -0
  17. package/dist/build/config/features.d.ts.map +1 -0
  18. package/dist/build/config/features.js +3 -0
  19. package/dist/build/config/features.js.map +1 -0
  20. package/dist/build/config/group-details.d.ts +28 -0
  21. package/dist/build/config/group-details.d.ts.map +1 -0
  22. package/dist/build/config/group-details.js +3 -0
  23. package/dist/build/config/group-details.js.map +1 -0
  24. package/dist/build/config/launch-source.d.ts +10 -0
  25. package/dist/build/config/launch-source.d.ts.map +1 -0
  26. package/dist/build/config/launch-source.js +3 -0
  27. package/dist/build/config/launch-source.js.map +1 -0
  28. package/dist/build/config/media-details.d.ts +28 -0
  29. package/dist/build/config/media-details.d.ts.map +1 -0
  30. package/dist/build/config/media-details.js +3 -0
  31. package/dist/build/config/media-details.js.map +1 -0
  32. package/dist/build/config/timeline.d.ts +30 -0
  33. package/dist/build/config/timeline.d.ts.map +1 -0
  34. package/dist/build/config/timeline.js +3 -0
  35. package/dist/build/config/timeline.js.map +1 -0
  36. package/dist/build/config/ux.d.ts +2 -2
  37. package/dist/build/events/index.d.ts +8 -0
  38. package/dist/build/events/index.d.ts.map +1 -0
  39. package/dist/build/events/index.js +20 -0
  40. package/dist/build/events/index.js.map +1 -0
  41. package/dist/build/events/my-activity.d.ts +48 -0
  42. package/dist/build/events/my-activity.d.ts.map +1 -0
  43. package/dist/build/events/my-activity.js +3 -0
  44. package/dist/build/events/my-activity.js.map +1 -0
  45. package/dist/build/events/stats-event.d.ts +54 -0
  46. package/dist/build/events/stats-event.d.ts.map +1 -0
  47. package/dist/build/events/stats-event.js +28 -0
  48. package/dist/build/events/stats-event.js.map +1 -0
  49. package/dist/build/events/ux-event.d.ts +5 -0
  50. package/dist/build/events/ux-event.d.ts.map +1 -0
  51. package/dist/build/events/ux-event.js +3 -0
  52. package/dist/build/events/ux-event.js.map +1 -0
  53. package/dist/build/events/video-benchmark-event.d.ts +70 -0
  54. package/dist/build/events/video-benchmark-event.d.ts.map +1 -0
  55. package/dist/build/events/video-benchmark-event.js +3 -0
  56. package/dist/build/events/video-benchmark-event.js.map +1 -0
  57. package/dist/build/player-adapter/controls-descriptor.d.ts +174 -0
  58. package/dist/build/player-adapter/controls-descriptor.d.ts.map +1 -0
  59. package/dist/build/player-adapter/controls-descriptor.js +7 -0
  60. package/dist/build/player-adapter/controls-descriptor.js.map +1 -0
  61. package/dist/build_esm/api/index.d.ts +11 -1
  62. package/dist/build_esm/api/index.d.ts.map +1 -1
  63. package/dist/build_esm/config/ux.d.ts +2 -2
  64. package/dist/tsconfig.module.tsbuildinfo +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.0.0-alpha.6](https://bitbucket.org/annototeam/annoto/compare/v3.0.0-alpha.5...v3.0.0-alpha.6) (2022-01-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **widget:** fix wistia adaptor side panel func ([673f091](https://bitbucket.org/annototeam/annoto/commits/673f0915a42663eb3d1546c4ea2a4b2bacb81a8d))
12
+
13
+
14
+ ### Features
15
+
16
+ * **widget:** implemented autoplay triggers ([0e932d3](https://bitbucket.org/annototeam/annoto/commits/0e932d3809357eed7c35c59a675325adf036c8e8))
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.0.0-alpha.2](https://bitbucket.org/annototeam/annoto/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2021-12-19)
7
23
 
8
24
 
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface IDeviceDetectorApi {
5
+ isSmallScreen(): boolean;
6
+ isPhone(): boolean;
7
+ isTablet(): boolean;
8
+ isDesktop(): boolean;
9
+ isLandscape?(): boolean;
10
+ detect?(): void;
11
+ }
12
+ //# sourceMappingURL=device-detector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device-detector.d.ts","sourceRoot":"","sources":["../../../lib/api/device-detector.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,aAAa,IAAI,OAAO,CAAC;IACzB,OAAO,IAAI,OAAO,CAAC;IACnB,QAAQ,IAAI,OAAO,CAAC;IACpB,SAAS,IAAI,OAAO,CAAC;IACrB,WAAW,CAAC,IAAI,OAAO,CAAC;IACxB,MAAM,CAAC,IAAI,IAAI,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=device-detector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device-detector.js","sourceRoot":"","sources":["../../../lib/api/device-detector.ts"],"names":[],"mappings":""}
@@ -35,6 +35,16 @@ export interface IAnnotoApi {
35
35
  * @param index if provided hide specific widget
36
36
  */
37
37
  hide(index?: number): Promise<void>;
38
- getMetadata(): IMetadata;
38
+ /**
39
+ * get metrics stats
40
+ * @param index widget index, 0 by default
41
+ */
42
+ getMetadata(index?: number): IMetadata;
43
+ /**
44
+ * Get state of the a widget
45
+ * @param index widget index, 0 by default
46
+ */
47
+ getWidgetState(index?: number): WidgetStateType;
39
48
  }
49
+ export declare type WidgetStateType = 'open' | 'closed' | 'mini' | 'hidden';
40
50
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/api/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAElC,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,WAAW,IAAI,SAAS,CAAC;CAC5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/api/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAElC,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC;;;OAGG;IACH,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;;OAGG;IACH,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC;CACnD;AAED,oBAAY,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,45 @@
1
+ interface IContentCountersBase {
2
+ rootCount?: number;
3
+ count?: number;
4
+ emotions?: any;
5
+ }
6
+ export interface IContentCounters extends IContentCountersBase {
7
+ emotions?: {
8
+ [key: string]: number;
9
+ };
10
+ }
11
+ export interface ICommentsCounters extends IContentCounters {
12
+ rootCountDiff?: number;
13
+ countDiff?: number;
14
+ }
15
+ export interface IVisibleEmotionData {
16
+ vn: number;
17
+ cn: number;
18
+ rcn: number;
19
+ tvn: number;
20
+ }
21
+ export interface IVisibleCountersData extends IContentCountersBase {
22
+ emotions?: {
23
+ [key: string]: IVisibleEmotionData;
24
+ };
25
+ }
26
+ export interface IThreadMetrics {
27
+ emotionsCount?: number;
28
+ emotionsVotes?: {
29
+ [key: string]: number;
30
+ };
31
+ rating?: number;
32
+ ratingDiff?: number;
33
+ live?: boolean;
34
+ pbResolution?: number;
35
+ createdAt?: Date;
36
+ updatedAt?: Date;
37
+ }
38
+ export interface IMetadata {
39
+ thread: IThreadMetrics;
40
+ comments: ICommentsCounters;
41
+ notes?: IContentCounters;
42
+ visible?: IVisibleCountersData;
43
+ }
44
+ export {};
45
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../lib/api/metadata.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC1D,QAAQ,CAAC,EAAE;QACP,CAAC,GAAG,EAAC,MAAM,GAAG,MAAM,CAAC;KACxB,CAAC;CACL;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAC9D,QAAQ,CAAC,EAAE;QACP,CAAC,GAAG,EAAC,MAAM,GAAG,mBAAmB,CAAC;KACrC,CAAC;CACL;AAED,MAAM,WAAW,cAAc;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE;QACZ,CAAC,GAAG,EAAC,MAAM,GAAG,MAAM,CAAC;KACxB,CAAA;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAClC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../lib/api/metadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Backend domain and api endpoints configuration
3
+ */
4
+ export interface IWidgetBackendOptions {
5
+ domain?: string;
6
+ apiUrl?: string;
7
+ apiV2Url?: string;
8
+ authUrl?: string;
9
+ insightsUrl?: string;
10
+ }
11
+ //# sourceMappingURL=backend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../lib/config/backend.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=backend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend.js","sourceRoot":"","sources":["../../../lib/config/backend.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ export interface IFeatures {
2
+ comments?: ICommentsFeature;
3
+ notes?: INotesFeature;
4
+ voting?: IVotingFeature;
5
+ timeline?: ITimelineFeature;
6
+ /**
7
+ * @internal
8
+ */
9
+ cta?: IFeatureBase;
10
+ /**
11
+ * @internal
12
+ */
13
+ stats?: IFeatureBase;
14
+ }
15
+ export interface IFeatureBase {
16
+ enabled: boolean;
17
+ }
18
+ /**
19
+ * Collaborative public comments
20
+ */
21
+ export interface ICommentsFeature extends IFeatureBase {
22
+ /**
23
+ * * if set to true comments are loaded in read only
24
+ */
25
+ readonly?: boolean;
26
+ }
27
+ /**
28
+ * Private notes
29
+ */
30
+ export interface INotesFeature extends IFeatureBase {
31
+ /**
32
+ * If set to true, private notes are loaded in read only
33
+ */
34
+ readonly?: boolean;
35
+ }
36
+ /**
37
+ * Vote directly on threads via button on the timeline
38
+ */
39
+ export interface IVotingFeature extends IFeatureBase {
40
+ }
41
+ /**
42
+ * Interactive Video timeline
43
+ */
44
+ export interface ITimelineFeature extends IFeatureBase {
45
+ }
46
+ //# sourceMappingURL=features.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../lib/config/features.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;OAEG;IACH,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,YAAY;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAI;AAExD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;CAAI"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features.js","sourceRoot":"","sources":["../../../lib/config/features.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Course/group details
3
+ * If provided the discussions on the media will be categorized by groups
4
+ * allowing private discussions per group for same media
5
+ */
6
+ export interface IGroupDetails {
7
+ /**
8
+ * Unique group identifier
9
+ */
10
+ id: string | number;
11
+ /**
12
+ * Group title
13
+ */
14
+ title: string;
15
+ /**
16
+ * Group description
17
+ */
18
+ description?: string;
19
+ /**
20
+ * Group thumbnail
21
+ */
22
+ thumbnails?: IGroupThumbnails;
23
+ }
24
+ export interface IGroupThumbnails {
25
+ default: string;
26
+ mobile?: string;
27
+ }
28
+ //# sourceMappingURL=group-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-details.d.ts","sourceRoot":"","sources":["../../../lib/config/group-details.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=group-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-details.js","sourceRoot":"","sources":["../../../lib/config/group-details.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Launch source credentials for widget integration via proxy domain
3
+ * For example LTI
4
+ */
5
+ export interface ILaunchSourceConfig {
6
+ accessToken?: string;
7
+ consumerKey?: string;
8
+ origin?: string;
9
+ }
10
+ //# sourceMappingURL=launch-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-source.d.ts","sourceRoot":"","sources":["../../../lib/config/launch-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=launch-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-source.js","sourceRoot":"","sources":["../../../lib/config/launch-source.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ export interface IMediaDetails {
2
+ /**
3
+ * Media Title
4
+ */
5
+ title: string;
6
+ /**
7
+ * If provided will be used as the media identifier instead of obtaining it from the player
8
+ * Can be any unique id string
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Media description
13
+ */
14
+ description?: string;
15
+ /**
16
+ * Media thumbnail
17
+ */
18
+ thumbnails?: IMediaThumbnails;
19
+ /**
20
+ * author name of the media
21
+ */
22
+ authorName?: string;
23
+ }
24
+ export interface IMediaThumbnails {
25
+ default: string;
26
+ mobile?: string;
27
+ }
28
+ //# sourceMappingURL=media-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-details.d.ts","sourceRoot":"","sources":["../../../lib/config/media-details.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=media-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-details.js","sourceRoot":"","sources":["../../../lib/config/media-details.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Timeline configuration
3
+ */
4
+ export interface ITimelineConfig {
5
+ /**
6
+ * The height of the timeline in pixels
7
+ * @default 32
8
+ */
9
+ height?: number;
10
+ /**
11
+ * If true the timeline will attempt to be embedded in the player controls and overlay video
12
+ * If false the timeline will be docked under the player element
13
+ * @default true
14
+ */
15
+ overlay?: boolean;
16
+ /**
17
+ * If enabled and timeline overlay is disabled, the a margin under the player will be added
18
+ * @default true
19
+ */
20
+ dockMargin?: boolean;
21
+ /**
22
+ * @internal
23
+ */
24
+ scrubberHeight?: number;
25
+ /**
26
+ * @internal
27
+ */
28
+ scrubberColor?: string;
29
+ }
30
+ //# sourceMappingURL=timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../../lib/config/timeline.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=timeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../../lib/config/timeline.ts"],"names":[],"mappings":""}
@@ -135,12 +135,12 @@ export interface IPlayerPauseTriggers {
135
135
  }
136
136
  export interface IPlayerPlayTriggers {
137
137
  /**
138
- * Pause when user starts to comment
138
+ * Play video after user adds new comment
139
139
  * @default false
140
140
  */
141
141
  comment?: boolean;
142
142
  /**
143
- * Pause when user starts to add new note
143
+ * Play video after user adds new note
144
144
  * @default false
145
145
  */
146
146
  note?: boolean;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Events
3
+ */
4
+ export * from './stats-event';
5
+ export * from './ux-event';
6
+ export * from './video-benchmark-event';
7
+ export * from './my-activity';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/events/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ /**
14
+ * @module Events
15
+ */
16
+ __exportStar(require("./stats-event"), exports);
17
+ __exportStar(require("./ux-event"), exports);
18
+ __exportStar(require("./video-benchmark-event"), exports);
19
+ __exportStar(require("./my-activity"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,gDAA6B;AAC7B,6CAA2B;AAC3B,0DAAwC;AACxC,gDAA8B"}
@@ -0,0 +1,48 @@
1
+ import { IVideoBenchmarkHeatmap } from './video-benchmark-event';
2
+ export interface IMyActivity {
3
+ /**
4
+ * Quantity of comments
5
+ */
6
+ comments: number;
7
+ /**
8
+ * Quantity of replies
9
+ */
10
+ replies: number;
11
+ /**
12
+ * acc_completion from {@link IVideoBenchmarkEvent}
13
+ */
14
+ completion: number;
15
+ /**
16
+ * acc_heatmap from {@link IVideoBenchmarkEvent}
17
+ */
18
+ heatmap: IVideoBenchmarkHeatmap;
19
+ /**
20
+ * acc_watch_time from {@link IVideoBenchmarkEvent}
21
+ */
22
+ watch_time: number;
23
+ /**
24
+ * User sso id
25
+ */
26
+ sso_id?: string;
27
+ /**
28
+ * The group Id provided on {@link MediaDetails}
29
+ */
30
+ group_id?: string;
31
+ /**
32
+ * Media source
33
+ */
34
+ media_src: string;
35
+ /**
36
+ * index of the widget
37
+ */
38
+ widget_index: number;
39
+ /**
40
+ * Unique visitor identifier
41
+ */
42
+ visitor_id: string;
43
+ /**
44
+ * Unique session identifier
45
+ */
46
+ session_id: string;
47
+ }
48
+ //# sourceMappingURL=my-activity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-activity.d.ts","sourceRoot":"","sources":["../../../lib/events/my-activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,sBAAsB,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=my-activity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-activity.js","sourceRoot":"","sources":["../../../lib/events/my-activity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ export declare enum StatsTypeEnum {
2
+ firstPlay = 1,
3
+ commentTimetagTap = 2,
4
+ showReplyTap = 3,
5
+ noteTimetagTap = 4,
6
+ vote = 5,
7
+ threadSort = 6,
8
+ threadFollow = 7,
9
+ commentKukuTap = 8,
10
+ commentTap = 9,
11
+ noteKukuTap = 10,
12
+ noteTap = 11,
13
+ timelineUgcTap = 12,
14
+ syncTap = 13,
15
+ comment = 14,
16
+ reply = 15,
17
+ note = 16,
18
+ commentEdit = 17,
19
+ commentDelete = 18,
20
+ noteEdit = 19,
21
+ noteDelete = 20,
22
+ groupFollow = 21
23
+ }
24
+ export interface IStatsEvent {
25
+ /**
26
+ * The type of the event
27
+ */
28
+ type: StatsTypeEnum;
29
+ /**
30
+ * The group Id provided on {@link MediaDetails}
31
+ */
32
+ group_id?: string;
33
+ /**
34
+ * Media source
35
+ */
36
+ media_src: string;
37
+ /**
38
+ * Video timestamp in seconds
39
+ */
40
+ ps?: number;
41
+ /**
42
+ * index of the widget
43
+ */
44
+ widget_index: number;
45
+ /**
46
+ * Unique visitor identifier
47
+ */
48
+ visitor_id: string;
49
+ /**
50
+ * Unique session identifier
51
+ */
52
+ session_id: string;
53
+ }
54
+ //# sourceMappingURL=stats-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats-event.d.ts","sourceRoot":"","sources":["../../../lib/events/stats-event.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,SAAS,IAAI;IACb,iBAAiB,IAAA;IACjB,YAAY,IAAA;IACZ,cAAc,IAAA;IACd,IAAI,IAAA;IACJ,UAAU,IAAA;IACV,YAAY,IAAA;IACZ,cAAc,IAAA;IACd,UAAU,IAAA;IACV,WAAW,KAAA;IACX,OAAO,KAAA;IACP,cAAc,KAAA;IACd,OAAO,KAAA;IACP,OAAO,KAAA;IACP,KAAK,KAAA;IACL,IAAI,KAAA;IACJ,WAAW,KAAA;IACX,aAAa,KAAA;IACb,QAAQ,KAAA;IACR,UAAU,KAAA;IACV,WAAW,KAAA;CACd;AAED,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatsTypeEnum = void 0;
4
+ var StatsTypeEnum;
5
+ (function (StatsTypeEnum) {
6
+ StatsTypeEnum[StatsTypeEnum["firstPlay"] = 1] = "firstPlay";
7
+ StatsTypeEnum[StatsTypeEnum["commentTimetagTap"] = 2] = "commentTimetagTap";
8
+ StatsTypeEnum[StatsTypeEnum["showReplyTap"] = 3] = "showReplyTap";
9
+ StatsTypeEnum[StatsTypeEnum["noteTimetagTap"] = 4] = "noteTimetagTap";
10
+ StatsTypeEnum[StatsTypeEnum["vote"] = 5] = "vote";
11
+ StatsTypeEnum[StatsTypeEnum["threadSort"] = 6] = "threadSort";
12
+ StatsTypeEnum[StatsTypeEnum["threadFollow"] = 7] = "threadFollow";
13
+ StatsTypeEnum[StatsTypeEnum["commentKukuTap"] = 8] = "commentKukuTap";
14
+ StatsTypeEnum[StatsTypeEnum["commentTap"] = 9] = "commentTap";
15
+ StatsTypeEnum[StatsTypeEnum["noteKukuTap"] = 10] = "noteKukuTap";
16
+ StatsTypeEnum[StatsTypeEnum["noteTap"] = 11] = "noteTap";
17
+ StatsTypeEnum[StatsTypeEnum["timelineUgcTap"] = 12] = "timelineUgcTap";
18
+ StatsTypeEnum[StatsTypeEnum["syncTap"] = 13] = "syncTap";
19
+ StatsTypeEnum[StatsTypeEnum["comment"] = 14] = "comment";
20
+ StatsTypeEnum[StatsTypeEnum["reply"] = 15] = "reply";
21
+ StatsTypeEnum[StatsTypeEnum["note"] = 16] = "note";
22
+ StatsTypeEnum[StatsTypeEnum["commentEdit"] = 17] = "commentEdit";
23
+ StatsTypeEnum[StatsTypeEnum["commentDelete"] = 18] = "commentDelete";
24
+ StatsTypeEnum[StatsTypeEnum["noteEdit"] = 19] = "noteEdit";
25
+ StatsTypeEnum[StatsTypeEnum["noteDelete"] = 20] = "noteDelete";
26
+ StatsTypeEnum[StatsTypeEnum["groupFollow"] = 21] = "groupFollow";
27
+ })(StatsTypeEnum = exports.StatsTypeEnum || (exports.StatsTypeEnum = {}));
28
+ //# sourceMappingURL=stats-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats-event.js","sourceRoot":"","sources":["../../../lib/events/stats-event.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAsBX;AAtBD,WAAY,aAAa;IACrB,2DAAa,CAAA;IACb,2EAAiB,CAAA;IACjB,iEAAY,CAAA;IACZ,qEAAc,CAAA;IACd,iDAAI,CAAA;IACJ,6DAAU,CAAA;IACV,iEAAY,CAAA;IACZ,qEAAc,CAAA;IACd,6DAAU,CAAA;IACV,gEAAW,CAAA;IACX,wDAAO,CAAA;IACP,sEAAc,CAAA;IACd,wDAAO,CAAA;IACP,wDAAO,CAAA;IACP,oDAAK,CAAA;IACL,kDAAI,CAAA;IACJ,gEAAW,CAAA;IACX,oEAAa,CAAA;IACb,0DAAQ,CAAA;IACR,8DAAU,CAAA;IACV,gEAAW,CAAA;AACf,CAAC,EAtBW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAsBxB"}
@@ -0,0 +1,5 @@
1
+ export interface IUxEvent {
2
+ name: 'widget:hide' | 'widget:show' | 'widget:minimise' | 'timeline:hide' | 'timeline:show' | 'timeline:focusin' | 'timeline:focusout';
3
+ widget_id: number;
4
+ }
5
+ //# sourceMappingURL=ux-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ux-event.d.ts","sourceRoot":"","sources":["../../../lib/events/ux-event.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,aAAa,GAAG,aAAa,GAAG,iBAAiB,GAAG,eAAe,GAAG,eAAe,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;IACvI,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ux-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ux-event.js","sourceRoot":"","sources":["../../../lib/events/ux-event.ts"],"names":[],"mappings":""}