@vkontakte/videoplayer-interactive 1.0.19-dev.d432d6cd.0 → 1.0.19-dev.d6f5a76a.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.
Files changed (56) hide show
  1. package/es2015.cjs.js +6 -6
  2. package/es2015.esm.js +6 -6
  3. package/es2018.cjs.js +6 -6
  4. package/es2018.esm.js +6 -6
  5. package/esnext.cjs.js +6 -6
  6. package/esnext.esm.js +6 -6
  7. package/evergreen.esm.js +6 -6
  8. package/package.json +5 -5
  9. package/types/index.d.ts +3 -2
  10. package/types/modules/Graph/Graph.d.ts +2 -2
  11. package/types/modules/Interactives/Interactives.d.ts +18 -14
  12. package/types/modules/Interactives/Layout.d.ts +7 -7
  13. package/types/modules/Interactives/controls/Control.d.ts +4 -3
  14. package/types/modules/Interactives/controls/types.d.ts +5 -4
  15. package/types/modules/Interactives/index.d.ts +1 -1
  16. package/types/modules/Interactives/types.d.ts +5 -0
  17. package/types/modules/Interactives/utils/GameController.d.ts +19 -36
  18. package/types/modules/Interactives/utils/GroupsStack.d.ts +21 -31
  19. package/types/modules/Interactives/utils/HistoryController.d.ts +13 -3
  20. package/types/modules/Interactives/utils/InteractiveEvents.d.ts +10 -16
  21. package/types/modules/Interactives/utils/ResizeManager.d.ts +1 -8
  22. package/types/modules/Interactives/utils/SelectBranches.d.ts +51 -15
  23. package/types/modules/Interactives/utils/fallbackStrategies.d.ts +6 -23
  24. package/types/modules/Interactives/utils/gameUtils.d.ts +26 -28
  25. package/types/modules/Interactives/utils/getInteractiveRanges.d.ts +1 -1
  26. package/types/modules/Interactives/utils/renderingUtils.d.ts +59 -64
  27. package/types/modules/Loaders/vkVideoLoader/types.d.ts +2 -2
  28. package/types/modules/Loaders/vkVideoLoader/utils.d.ts +1 -1
  29. package/types/modules/ManifestController/ManifestController.d.ts +12 -11
  30. package/types/modules/ManifestController/utils.d.ts +6 -6
  31. package/types/modules/SeamlessController/SeamlessController.d.ts +2 -2
  32. package/types/modules/SeamlessController/utils.d.ts +2 -2
  33. package/types/modules/SeekToInteractiveController/SeekToInteractiveController.d.ts +2 -2
  34. package/types/movika.core/manifest/index.d.ts +24 -0
  35. package/types/movika.core/manifest/manifest_3_2/chapter.d.ts +62 -0
  36. package/types/movika.core/manifest/manifest_3_2/control.d.ts +67 -0
  37. package/types/movika.core/manifest/manifest_3_2/manifest.d.ts +50 -0
  38. package/types/movika.core/manifest/manifest_3_2/template.d.ts +34 -0
  39. package/types/movika.core/manifest/manifest_3_3/chapter.d.ts +70 -0
  40. package/types/movika.core/manifest/manifest_3_3/control.d.ts +66 -0
  41. package/types/movika.core/manifest/manifest_3_3/graph.d.ts +73 -0
  42. package/types/movika.core/manifest/manifest_3_3/manifest.d.ts +52 -0
  43. package/types/movika.core/manifest/manifest_3_3/template.d.ts +34 -0
  44. package/types/movika.core/manifest/migrations/index.d.ts +1 -0
  45. package/types/movika.core/manifest/migrations/migrateManifestToLatestVersion.d.ts +1 -0
  46. package/types/movika.core/manifest/migrations/migrate_from_3_0_to_3_1.d.ts +21 -0
  47. package/types/movika.core/manifest/migrations/migrate_from_3_1_to_3_2.d.ts +2 -0
  48. package/types/movika.core/manifest/migrations/migrate_from_3_2_to_3_3.d.ts +8 -0
  49. package/types/movika.core/manifest/types.d.ts +29 -0
  50. package/types/movika.core/manifest/utils.d.ts +5 -0
  51. package/types/utils/LastFrame.d.ts +1 -1
  52. package/types/utils/chapterHelpers.d.ts +1 -1
  53. package/types/utils/extractVkMovieId.d.ts +1 -1
  54. package/types/manifest/index.d.ts +0 -3
  55. package/types/manifest/utils.d.ts +0 -11
  56. package/types/modules/Interactives/utils/SelectBranches.types.d.ts +0 -73
@@ -1,73 +0,0 @@
1
- import type { ChapterContainer, Control, ChapterBranch, ControlEvent, ContainerEvent, ChapterEvent } from '../../../manifest';
2
- import type { EventEmitter } from '../../../utils/EventEmitter';
3
- import type { IPlayer } from '@vkontakte/videoplayer-core';
4
- import type { InteractiveEventsType } from './InteractiveEvents';
5
- export type SubjectName = 'chapter' | 'container' | 'control';
6
- export type SelectBranchesArg = {
7
- globalEventEmitter: EventEmitter;
8
- player: IPlayer;
9
- interactiveEvents: InteractiveEventsType;
10
- removeControllers?: AnyFn;
11
- };
12
- export type OnControlEventArg = {
13
- action: ControlEvent['action'];
14
- controlType: Control['type'];
15
- controlId: Control['id'];
16
- containerId: ChapterContainer['id'];
17
- onEvent: AnyFn;
18
- branches?: ChapterBranch[];
19
- isEOV?: () => boolean;
20
- isDisabled?: () => boolean;
21
- };
22
- export type OnContainerEventArg = {
23
- action: ContainerEvent['action'];
24
- container: ChapterContainer;
25
- autoSelected?: boolean;
26
- branches?: ChapterBranch[];
27
- isEOV?: boolean;
28
- };
29
- export type OnChapterEventArg = {
30
- action: ChapterEvent['action'];
31
- chapterId: string;
32
- branches?: ChapterBranch[];
33
- };
34
- export type SetManifestContainerEventsArg = {
35
- container: ChapterContainer;
36
- branches: ChapterBranch[];
37
- isEOV?: boolean;
38
- };
39
- export type AnyAction = ControlEvent['action'] | ContainerEvent['action'] | ChapterEvent['action'];
40
- export type ActionMap = {
41
- control: ControlEvent['action'];
42
- container: ContainerEvent['action'];
43
- chapter: ChapterEvent['action'];
44
- };
45
- export type SubjectType<T extends keyof ActionMap> = T extends 'control' ? Control['type'] : undefined;
46
- export type EventActionCommon<T extends keyof ActionMap> = {
47
- subjectId: string;
48
- subjectName: T;
49
- subjectType?: SubjectType<T>;
50
- };
51
- export type EventActionCommonWithAction<T extends keyof ActionMap> = EventActionCommon<T> & {
52
- action: ActionMap[T];
53
- };
54
- export type OpenURIArg<T extends keyof ActionMap> = EventActionCommonWithAction<T> & {
55
- payload: {
56
- URI?: string;
57
- };
58
- };
59
- export type ChangeManifestArg<T extends keyof ActionMap> = EventActionCommonWithAction<T> & {
60
- payload: {
61
- behaviour?: string;
62
- };
63
- };
64
- export type ChangeChapterArg<T extends keyof ActionMap> = EventActionCommonWithAction<T> & {
65
- payload: {
66
- chapterId: string;
67
- autoSelect: boolean;
68
- behaviour?: string;
69
- };
70
- };
71
- export type ContinuePlaybackArg<T extends keyof ActionMap> = EventActionCommonWithAction<T>;
72
- export type OnExpectEventArg<T extends keyof ActionMap> = EventActionCommon<T>;
73
- export type ExpectEventHandlerArg<T extends keyof ActionMap> = EventActionCommon<T>;