-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
56 lines (54 loc) · 2.42 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Bridge for communicating between a Livery Video Player and the interactive layer page shown within that.
*
* Exports:
*
* - Class {@link InteractiveBridge} enables a Livery interactive layer element or page to communicate with
* the surrounding Livery Player
* - Class {@link AbstractPlayerBridge} is used by LiveryPlayer for the `PlayerBridge` implementation
* (in the past: {@link LiveryBridge})
* - Class {@link MockPlayerBridge} is a player bridge that returns mock data for testing
* - Element {@link LiveryBridgeLog} logs messages posted to specified bridge or the window
* - Element {@link LiveryBridgeMock} mocks a LiveryPlayer with an interactive child element or iframe for testing
* - Element {@link LiveryBridgeInteractive} is an interactive element that enables testing all interactive commands
* - Variable {@link version} specifies the version of this package
* - Schema types:
* {@link AuthClaims}, {@link Config}, {@link DisplayMode}, {@link Features}, {@link InteractivePlayerOptions},
* {@link Orientation}, {@link PlaybackDetails}, {@link PlaybackMode}, {@link PlaybackState}, {@link Qualities},
* {@link Quality}, {@link StreamPhase}, {@link UserFeedback} and {@link Volume}.
* - Schema validators: validateAuthClaims.
*
* **Note:** When using the UMD bundle, the exports can be found as properties of `livery` in the global namespace,
* e.g: `livery.version`.
*
* @packageDocumentation
*/
/**
* Livery Interactive SDK version.
*/
export const version = __VERSION__;
// biome-ignore lint/performance/noBarrelFile: Required for compatibility and it should be fine with named exports
export { AbstractPlayerBridge } from './src/AbstractPlayerBridge.ts';
export { InteractiveBridge } from './src/InteractiveBridge.ts';
export { LiveryBridge } from './src/LiveryBridge.ts';
export { MockPlayerBridge } from './src/MockPlayerBridge.ts';
export { LiveryBridgeInteractive } from './src/livery-bridge-interactive/LiveryBridgeInteractive.ts';
export { LiveryBridgeLog } from './src/livery-bridge-log/LiveryBridgeLog.ts';
export { LiveryBridgeMock } from './src/livery-bridge-mock/LiveryBridgeMock.ts';
export { validateAuthClaims } from './src/util/schema.ts';
export type {
AuthClaims,
Config,
DisplayMode,
Features,
InteractivePlayerOptions,
Orientation,
PlaybackDetails,
PlaybackMode,
PlaybackState,
Qualities,
Quality,
StreamPhase,
UserFeedback,
Volume,
} from './src/util/schema.ts';