@vkontakte/videoplayer-interactive 1.0.19-dev.c9e593de.0 → 1.0.19-dev.d5db4341.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 (57) 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 +2 -3
  10. package/types/manifest/index.d.ts +3 -0
  11. package/types/manifest/utils.d.ts +11 -0
  12. package/types/modules/Graph/Graph.d.ts +2 -2
  13. package/types/modules/Interactives/Interactives.d.ts +21 -16
  14. package/types/modules/Interactives/Layout.d.ts +7 -7
  15. package/types/modules/Interactives/controls/Control.d.ts +3 -4
  16. package/types/modules/Interactives/controls/types.d.ts +4 -5
  17. package/types/modules/Interactives/index.d.ts +2 -1
  18. package/types/modules/Interactives/types.d.ts +12 -15
  19. package/types/modules/Interactives/utils/GameController.d.ts +35 -16
  20. package/types/modules/Interactives/utils/GroupsStack.d.ts +31 -21
  21. package/types/modules/Interactives/utils/HistoryController.d.ts +4 -4
  22. package/types/modules/Interactives/utils/InteractiveEvents.d.ts +16 -10
  23. package/types/modules/Interactives/utils/ResizeManager.d.ts +8 -1
  24. package/types/modules/Interactives/utils/SelectBranches.d.ts +15 -51
  25. package/types/modules/Interactives/utils/SelectBranches.types.d.ts +73 -0
  26. package/types/modules/Interactives/utils/events.d.ts +8 -0
  27. package/types/modules/Interactives/utils/fallbackStrategies.d.ts +23 -6
  28. package/types/modules/Interactives/utils/gameUtils.d.ts +28 -26
  29. package/types/modules/Interactives/utils/getInteractiveRanges.d.ts +2 -3
  30. package/types/modules/Interactives/utils/renderingUtils.d.ts +64 -59
  31. package/types/modules/Loaders/vkVideoLoader/types.d.ts +2 -2
  32. package/types/modules/Loaders/vkVideoLoader/utils.d.ts +1 -1
  33. package/types/modules/ManifestController/ManifestController.d.ts +11 -12
  34. package/types/modules/ManifestController/utils.d.ts +6 -6
  35. package/types/modules/SeamlessController/SeamlessController.d.ts +10 -12
  36. package/types/modules/SeamlessController/utils.d.ts +2 -2
  37. package/types/modules/SeekToInteractiveController/SeekToInteractiveController.d.ts +2 -2
  38. package/types/utils/LastFrame.d.ts +1 -1
  39. package/types/utils/chapterHelpers.d.ts +1 -1
  40. package/types/utils/extractVkMovieId.d.ts +2 -2
  41. package/types/movika.core/manifest/index.d.ts +0 -23
  42. package/types/movika.core/manifest/manifest_3_2/chapter.d.ts +0 -62
  43. package/types/movika.core/manifest/manifest_3_2/control.d.ts +0 -67
  44. package/types/movika.core/manifest/manifest_3_2/manifest.d.ts +0 -50
  45. package/types/movika.core/manifest/manifest_3_2/template.d.ts +0 -34
  46. package/types/movika.core/manifest/manifest_3_3/chapter.d.ts +0 -70
  47. package/types/movika.core/manifest/manifest_3_3/control.d.ts +0 -66
  48. package/types/movika.core/manifest/manifest_3_3/graph.d.ts +0 -73
  49. package/types/movika.core/manifest/manifest_3_3/manifest.d.ts +0 -52
  50. package/types/movika.core/manifest/manifest_3_3/template.d.ts +0 -34
  51. package/types/movika.core/manifest/migrations/index.d.ts +0 -1
  52. package/types/movika.core/manifest/migrations/migrateManifestToLatestVersion.d.ts +0 -1
  53. package/types/movika.core/manifest/migrations/migrate_from_3_0_to_3_1.d.ts +0 -21
  54. package/types/movika.core/manifest/migrations/migrate_from_3_1_to_3_2.d.ts +0 -2
  55. package/types/movika.core/manifest/migrations/migrate_from_3_2_to_3_3.d.ts +0 -8
  56. package/types/movika.core/manifest/types.d.ts +0 -29
  57. package/types/movika.core/manifest/utils.d.ts +0 -5
@@ -1,34 +0,0 @@
1
- export interface ManifestDataTemplate {
2
- /**
3
- * uuid
4
- */
5
- id: string;
6
- /**
7
- * Template name
8
- */
9
- name: string;
10
- /**
11
- * Chapter type this template can be applied to
12
- */
13
- chapterType: 'start' | 'simple' | 'end';
14
- /**
15
- * Template includes stringified JSON object that applied to chapter
16
- */
17
- template: string;
18
- /**
19
- * Template data type to apply to
20
- */
21
- type: 'container';
22
- /**
23
- * Manifest version of template
24
- */
25
- manifestVersion: string;
26
- /**
27
- * Date when template was created
28
- */
29
- created?: number;
30
- /**
31
- * Date when template was updated
32
- */
33
- updated?: number;
34
- }
@@ -1 +0,0 @@
1
- export { migrateManifestToLatestVersion } from "./migrateManifestToLatestVersion";
@@ -1 +0,0 @@
1
- export function migrateManifestToLatestVersion(manifest: any): any;
@@ -1,21 +0,0 @@
1
- export const DEFAULT_MANIFEST_VERSION: "3.1";
2
- export namespace FALLBACK_STRATEGY_TO_ACTION_TYPE {
3
- let _default: string;
4
- export { _default as default };
5
- export let random: string;
6
- export let weightlessRandom: string;
7
- export let max: string;
8
- export let min: string;
9
- }
10
- export namespace defaultEvent {
11
- let type: string;
12
- namespace action {
13
- let type_1: string;
14
- export { type_1 as type };
15
- export namespace args {
16
- let shouldOpenNow: boolean;
17
- let isDetachContainer: boolean;
18
- }
19
- }
20
- }
21
- export function migrate_from_3_0_to_3_1(manifest: any): any;
@@ -1,2 +0,0 @@
1
- export const DEFAULT_MANIFEST_VERSION: "3.2";
2
- export function migrate_from_3_1_to_3_2(manifest: any): any;
@@ -1,8 +0,0 @@
1
- import type { Manifest_3_2 } from '../manifest_3_2/manifest';
2
- import type { ChapterEvent, ContainerEvent } from '../manifest_3_3/chapter';
3
- import type { GraphCustomChapter, GraphDesign } from '../manifest_3_3/graph';
4
- import type { Manifest_3_3 } from '../manifest_3_3/manifest';
5
- export declare const DEFAULT_MANIFEST_VERSION = "3.3";
6
- export declare const createDefaultGraphDesign: (chapters?: GraphCustomChapter[] | undefined) => GraphDesign;
7
- export declare const expectEvent: ContainerEvent & ChapterEvent;
8
- export declare const migrate_from_3_2_to_3_3: (manifest: Manifest_3_2) => Manifest_3_3;
@@ -1,29 +0,0 @@
1
- export type { Control } from './manifest_3_3/control';
2
- import type { Chapter } from './manifest_3_3/chapter';
3
- export declare const containerTypes: Readonly<{
4
- Choice: "Choice";
5
- TextInput: "TextInput";
6
- }>;
7
- export declare const controlTypes: Readonly<{
8
- Button: "Button";
9
- Area: "Area";
10
- Text: "Text";
11
- }>;
12
- export declare const eventTypes: Readonly<{
13
- onClick: "onClick";
14
- onSuspense: "onSuspense";
15
- }>;
16
- export declare const eventActionTypes: Readonly<{
17
- openURI: "openURI";
18
- setNextBranch: "setNextBranch";
19
- setWeightlessRandomBranch: "setWeightlessRandomBranch";
20
- setRandomBranch: "setRandomBranch";
21
- setMaxWeightBranch: "setMaxWeightBranch";
22
- setMinWeightBranch: "setMinWeightBranch";
23
- setDefaultBranch: "setDefaultBranch";
24
- continuePlayback: "continuePlayback";
25
- expect: "expect";
26
- }>;
27
- export type VideoId = number;
28
- export type ChapterContainers = Chapter['containers'];
29
- export type { Chapter } from './manifest_3_3/chapter';
@@ -1,5 +0,0 @@
1
- export function isSupportedManifest(manifestVersion: string): boolean;
2
- export function isValidManifest(manifest: object): boolean;
3
- export function isTextControl(controlItem: any): boolean;
4
- export function isButtonControl(controlItem: any): boolean;
5
- export function isAreaControl(controlItem: any): boolean;