@vkontakte/videoplayer-shared 1.0.50-dev.b56f184f.0 → 1.0.50-dev.bf48bdd8.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.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +1 -1
- package/types/InternalsExposure/index.d.ts +26 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const GLOBAL_KEY: {
|
|
2
|
+
readonly UI: "__vkVideoPlayer";
|
|
3
|
+
readonly CORE: "__vkVideoCore";
|
|
4
|
+
};
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
__vkVideoPlayer?: {
|
|
8
|
+
[k: string]: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
__vkVideoCore?: {
|
|
11
|
+
[k: string]: Record<string, unknown>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
type ExposeType = keyof typeof GLOBAL_KEY;
|
|
16
|
+
export declare class InternalsExposure {
|
|
17
|
+
private readonly id;
|
|
18
|
+
private readonly type;
|
|
19
|
+
constructor(type: ExposeType);
|
|
20
|
+
private getWindowObject;
|
|
21
|
+
private initWindowObjects;
|
|
22
|
+
expose(data: Record<string, unknown>): void;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
private key;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
package/types/index.d.ts
CHANGED