@vkontakte/videoplayer 1.1.91 → 1.1.92-dev.04f50366b.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/es2015.cjs +17 -17
- package/es2015.esm.js +35 -35
- package/esnext.cjs +36 -36
- package/esnext.esm.js +36 -36
- package/evergreen.esm.js +36 -36
- package/package.json +5 -5
- package/types/config.d.ts +4 -2
- package/types/store/micro/pictureInPicture.d.ts +1 -1
- package/types/types/index.d.ts +12 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.92-dev.04f50366b.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@adtech/rbadman": "2.2.57",
|
|
46
|
-
"@vkontakte/videoplayer-core": "2.0.
|
|
47
|
-
"@vkontakte/videoplayer-interactive": "1.0.
|
|
48
|
-
"@vkontakte/videoplayer-shared": "1.0.
|
|
49
|
-
"@vkontakte/videoplayer-statistics": "1.0.
|
|
46
|
+
"@vkontakte/videoplayer-core": "2.0.161-dev.04f50366b.0",
|
|
47
|
+
"@vkontakte/videoplayer-interactive": "1.0.67-dev.04f50366b.0",
|
|
48
|
+
"@vkontakte/videoplayer-shared": "1.0.90-dev.04f50366b.0",
|
|
49
|
+
"@vkontakte/videoplayer-statistics": "1.0.107-dev.04f50366b.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -20,10 +20,12 @@ export declare enum LogoType {
|
|
|
20
20
|
* never - не показывать
|
|
21
21
|
* always - показыватьв всегда
|
|
22
22
|
*/
|
|
23
|
-
export type TitleShowBehaviour = "fullscreen" | "with-controls" | "never" | "always";
|
|
23
|
+
export type TitleShowBehaviour = "fullscreen" | "fullscreen-and-dpip" | "with-controls" | "never" | "always";
|
|
24
24
|
export interface IDpipConfig {
|
|
25
|
-
minimalView?: boolean;
|
|
26
25
|
initialSize?: Size;
|
|
26
|
+
minimalView?: boolean;
|
|
27
|
+
showPrevNextButtons?: boolean;
|
|
28
|
+
showAutoplayToggle?: boolean;
|
|
27
29
|
}
|
|
28
30
|
export interface IAdsConfig {
|
|
29
31
|
enable: ForceOrRelay;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseMicroStore } from "./base";
|
|
2
|
-
import type
|
|
2
|
+
import { type InitMicroStoreParams, type PictureInPictureMicroStore } from "../../types";
|
|
3
3
|
import type { Subscription } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
export default class PictureInPicture extends BaseMicroStore {
|
|
5
5
|
readonly stateName = "pictureInPicture$";
|
package/types/types/index.d.ts
CHANGED
|
@@ -610,19 +610,25 @@ export type IToggleable<T> = T & {
|
|
|
610
610
|
};
|
|
611
611
|
type MicroStoreWritableBase<T = unknown> = Writable<T>;
|
|
612
612
|
type ToggleableMicroStore = IToggleable<MicroStoreWritableBase<boolean | null>>;
|
|
613
|
-
export
|
|
613
|
+
export interface DpipHiddenFeatures {
|
|
614
|
+
autoplayToggle?: boolean;
|
|
615
|
+
nextPrev?: boolean;
|
|
616
|
+
}
|
|
617
|
+
export interface PictureInPictureMicroStore {
|
|
618
|
+
hiddenFeatures$: Writable<DpipHiddenFeatures | undefined>;
|
|
614
619
|
isActive$: Writable<boolean>;
|
|
620
|
+
isDpipActive$: Writable<boolean>;
|
|
615
621
|
isEnabled$: Writable<boolean>;
|
|
616
622
|
type$: Writable<PictureInPictureType | undefined>;
|
|
617
|
-
}
|
|
618
|
-
export
|
|
623
|
+
}
|
|
624
|
+
export interface NotificationsMicroStore {
|
|
619
625
|
notificationsToShow$: Writable<Partial<Record<NotificationId, boolean>>>;
|
|
620
626
|
showNotification: (id: NotificationId) => void;
|
|
621
627
|
closeNotification: (id: NotificationId) => void;
|
|
622
|
-
}
|
|
623
|
-
export
|
|
628
|
+
}
|
|
629
|
+
export interface PreviewPlayerMicroStore {
|
|
624
630
|
timelineActive$: Writable<boolean>;
|
|
625
|
-
}
|
|
631
|
+
}
|
|
626
632
|
export interface IMicroStores {
|
|
627
633
|
fakeIsPlaying$: ToggleableMicroStore;
|
|
628
634
|
interactiveControlsOpacity$: ToggleableMicroStore;
|