@vkontakte/videoplayer-shared 1.0.50-beta.2 → 1.0.50-dev.0bc7ac78.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-shared",
3
- "version": "1.0.50-beta.2",
3
+ "version": "1.0.50-dev.0bc7ac78.0",
4
4
  "author": "vk.com",
5
5
  "description": "Shared code for vk.com videoplayer",
6
6
  "homepage": "https://vk.com",
@@ -49,7 +49,6 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@tracer/opentelemetry": "^1.1.5",
53
52
  "@opentelemetry/api": "^1.8.0",
54
53
  "@opentelemetry/core": "^1.25.0",
55
54
  "@opentelemetry/instrumentation": "^0.52.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 {};
@@ -1,17 +1,13 @@
1
1
  import { Attributes } from '@opentelemetry/api';
2
- import { ITracer } from './types';
2
+ import { ITracer, ITracerParams } from './types';
3
3
  export declare class Tracer implements ITracer {
4
- private readonly tracer;
5
- private readonly span;
6
- private readonly context;
7
- private readonly childTracers;
8
- private readonly spanExporter;
9
- private constructor();
4
+ private readonly fakeTraceId;
5
+ constructor({ name }: Partial<ITracerParams>);
10
6
  log(name: string, attributes?: Attributes): void;
11
7
  error(name: string, attributes?: Attributes): void;
12
8
  critical(name: string, attributes?: Attributes): void;
13
- static createRootTracer(isRealTracer?: boolean): ITracer;
14
9
  createComponentTracer(name: string): ITracer;
10
+ static createRootTracer(isRealTracer?: boolean): ITracer;
15
11
  end(): void;
16
12
  getFinishedSpans(): any | undefined;
17
13
  getTraceId(): string;
package/types/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './utils';
5
5
  export * from './reactive';
6
6
  export * from './types';
7
7
  export * from './translation';
8
+ export * from './InternalsExposure';