@vkontakte/videoplayer-interactive 1.0.35-dev.5ad0a071.0 → 1.0.35-dev.6226d75c.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.
@@ -1,4 +1,5 @@
1
1
  import type { IPlayer } from '@vkontakte/videoplayer-core';
2
+ import { Nullable } from '@vkontakte/videoplayer-shared';
2
3
  type ResizeManagerArg = () => {
3
4
  parentElement: HTMLElement;
4
5
  player?: Nullable<IPlayer>;
@@ -3,6 +3,7 @@ import type { EventEmitter } from '../../../utils/EventEmitter';
3
3
  import type { IPlayer } from '@vkontakte/videoplayer-core';
4
4
  import type { InteractiveEventsType } from './InteractiveEvents';
5
5
  import type { GlobalEvents } from './events';
6
+ import { Nullable } from '@vkontakte/videoplayer-shared';
6
7
  export type SubjectName = 'chapter' | 'container' | 'control';
7
8
  export type AfterExpectActionType = 'after-expect';
8
9
  export type Behaviour = 'change-chapter' | 'change-manifest';
@@ -7,11 +7,11 @@ export declare const getRandomNumber: (limit: number) => number;
7
7
  /**
8
8
  * Finds the value with minimal weight number
9
9
  */
10
- export declare const minFallbackStrategy: (branches: ChapterBranch[]) => Nullable<ChapterBranch>;
10
+ export declare const minFallbackStrategy: (branches: ChapterBranch[]) => ChapterBranch | null;
11
11
  /**
12
12
  * Finds the value with maximal weight number
13
13
  */
14
- export declare const maxFallbackStrategy: (branches: ChapterBranch[]) => Nullable<ChapterBranch>;
14
+ export declare const maxFallbackStrategy: (branches: ChapterBranch[]) => ChapterBranch | null;
15
15
  /**
16
16
  * Finds first branch with `isDefault === true` value
17
17
  */
@@ -1,4 +1,4 @@
1
- import type { IValueSubject } from '@vkontakte/videoplayer-shared';
1
+ import type { IValueSubject, Nullable } from '@vkontakte/videoplayer-shared';
2
2
  import type { ChapterBranch, ManifestVideo, Chapter, Manifest, GraphEditChapter, GraphViewChapter, AnyManifest } from '../../manifest';
3
3
  import { Loadable } from './Loadable';
4
4
  type BranchesData = {
@@ -1,5 +1,5 @@
1
1
  import type { IConfig, PlaybackRate, VideoQuality } from '@vkontakte/videoplayer-core';
2
- import { ValueSubject } from '@vkontakte/videoplayer-shared';
2
+ import { Nullable, ValueSubject } from '@vkontakte/videoplayer-shared';
3
3
  import type { ManifestVideo, Extension } from '../../manifest';
4
4
  import type { Interactives } from '../../modules/Interactives';
5
5
  import type { Instance } from './InstanceManager';