@player-tools/devtools-types 0.5.3--canary.90.2515

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.
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/types/src/index.ts
17
+ var src_exports = {};
18
+ module.exports = __toCommonJS(src_exports);
19
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/devtools/types/src/index.ts"],"sourcesContent":["import type { Flow } from \"@player-ui/types\";\n\nexport interface BaseEvent<T extends string, P = null> {\n /** Event type */\n type: T;\n /** Event payload */\n payload: P;\n}\n\nexport type TransactionMetadata = {\n /** Unique ID */\n id: number;\n /** Timestamp */\n timestamp: number;\n /** Sender ID */\n sender: string;\n /** Target ID */\n target?: string;\n /** Context */\n context: \"player\" | \"devtools\";\n /** Messenger tag */\n _messenger_: boolean;\n};\n\nexport type BeaconEvent = BaseEvent<\"MESSENGER_BEACON\">;\n\nexport type EventsBatchEvent<T extends BaseEvent<string, unknown>> = BaseEvent<\n \"MESSENGER_EVENT_BATCH\",\n {\n /** Array of Events */\n events: (MessengerEvent<T> & TransactionMetadata)[];\n }\n>;\n\nexport type RequestLostEventsEvent = BaseEvent<\n \"MESSENGER_REQUEST_LOST_EVENTS\",\n {\n /** Last received message id */\n lastReceivedMessageId: number;\n }\n>;\n\nexport type DisconnectEvent = BaseEvent<\"MESSENGER_DISCONNECT\">;\n\nexport type InternalEvent<T extends BaseEvent<string, unknown>> =\n | BeaconEvent\n | RequestLostEventsEvent\n | EventsBatchEvent<T>\n | DisconnectEvent;\n\nexport type MessengerEvent<T extends BaseEvent<string, unknown>> =\n | T\n | InternalEvent<T>;\n\nexport type Transaction<T extends BaseEvent<string, unknown>> =\n TransactionMetadata & MessengerEvent<T>;\n\nexport type Connection = {\n /** Target ID */\n id: string;\n /** Last sent message id */\n lastSentMessageId: number;\n /** Last received message id */\n lastReceivedMessageId: number;\n /** Lost events since the last one received */\n desync: boolean;\n};\n\n/** Messenger options */\nexport interface MessengerOptions<T extends BaseEvent<string, unknown>> {\n /** API to send messages (e.g. window.postMessage, browser.runtime.sendMessage) */\n sendMessage: (message: MessengerEvent<T>) => Promise<void>;\n /** API to add a listener (e.g. window.addEventListener, browser.runtime.onMessage.addListener) */\n addListener: (\n callback: (message: TransactionMetadata & MessengerEvent<T>) => void\n ) => void;\n /** API to remove a listener (e.g. window.removeEventListener, browser.runtime.onMessage.removeListener) */\n removeListener: (\n callback: (message: TransactionMetadata & MessengerEvent<T>) => void\n ) => void;\n /** Callback to handle messages */\n messageCallback: (message: TransactionMetadata & MessengerEvent<T>) => void;\n /** Context */\n context: \"player\" | \"devtools\";\n /** Unique id */\n id?: string;\n /** Time between beacons in ms */\n beaconIntervalMS?: number;\n /** Debug mode */\n debug?: boolean;\n /** Handle failed message */\n handleFailedMessage?: (message: Transaction<T>) => void;\n /** Logger */\n logger: {\n /** Log message */\n log: (...args: Array<unknown>) => void;\n };\n}\n\n/** Plugin data */\nexport interface PluginData {\n /** Plugin id */\n id: string;\n /** Plugin version */\n version: string;\n /** Plugin name */\n name: string;\n /** Plugin description */\n description: string;\n /** Plugin UI */\n flow: Flow;\n}\n\nexport interface ExtensionState {\n /** currently being inspected */\n current: {\n /** player */\n player: string | null;\n /** plugin */\n plugin: string | null;\n };\n /** */\n players: Record<\n string,\n {\n /** registeredPlugins */\n plugins: Record<string, PluginData>;\n /** active */\n active: boolean;\n /** config */\n config: Record<string, unknown>;\n }\n >;\n}\n\ninterface InitPayload {\n /** Devtools plugins */\n plugins: Record<string, PluginData>;\n}\n\ninterface FlowChangePayload {\n /** Flow */\n flow: Partial<Flow>;\n /** Plugin ID */\n pluginID: string;\n}\n\ninterface DataChangePayload {\n /** Data */\n data: Flow[\"data\"];\n /** Plugin ID */\n pluginID: string;\n}\n\ninterface EventsBatchPayload {\n /** Events */\n events: Array<TransactionMetadata & MessengerEvent<ExtensionSupportedEvents>>;\n}\n\n/** Proxy events from the devtools player to the devtools plungins */\ninterface PluginInteractionPayload {\n /** Interaction Type */\n type: string;\n /** Stringified payload */\n payload?: string;\n}\n\nexport type PlayerInitEvent = BaseEvent<\n \"PLAYER_DEVTOOLS_PLAYER_INIT\",\n InitPayload\n>;\n\nexport type DevtoolsFlowChangeEvent = BaseEvent<\n \"PLAYER_DEVTOOLS_PLUGIN_FLOW_CHANGE\",\n FlowChangePayload\n>;\n\nexport type DevtoolsDataChangeEvent = BaseEvent<\n \"PLAYER_DEVTOOLS_PLUGIN_DATA_CHANGE\",\n DataChangePayload\n>;\n\nexport type PlayerStoppedEvent = BaseEvent<\"PLAYER_DEVTOOLS_PLAYER_STOPPED\">;\n\nexport type DevtoolsEventsBatchEvent = BaseEvent<\n \"MESSENGER_EVENT_BATCH\",\n EventsBatchPayload\n>;\n\nexport type ExtensionSelectedPlayerEvent = BaseEvent<\n \"PLAYER_DEVTOOLS_PLAYER_SELECTED\",\n {\n /** Player ID */\n playerID: string;\n }\n>;\n\nexport type ExtensionSelectedPluginEvent = BaseEvent<\n \"PLAYER_DEVTOOLS_PLUGIN_SELECTED\",\n {\n /** Plugin ID */\n pluginID: string;\n }\n>;\n\nexport type DevtoolsPluginInteractionEvent = BaseEvent<\n \"PLAYER_DEVTOOLS_PLUGIN_INTERACTION\",\n PluginInteractionPayload\n>;\n\nexport type ExtensionSupportedEvents =\n | PlayerInitEvent\n | DevtoolsFlowChangeEvent\n | DevtoolsDataChangeEvent\n | PlayerStoppedEvent\n | DevtoolsEventsBatchEvent\n | ExtensionSelectedPlayerEvent\n | ExtensionSelectedPluginEvent\n | BeaconEvent\n | DisconnectEvent\n | DevtoolsPluginInteractionEvent;\n\nexport type CommunicationLayerMethods = Pick<\n MessengerOptions<ExtensionSupportedEvents>,\n \"sendMessage\" | \"addListener\" | \"removeListener\"\n>;\n\n/** Interface representing the Devtools Plugins Store. */\nexport interface DevtoolsPluginsStore {\n /** Plugins data. */\n plugins: Record<string, PluginData>;\n /** Array of supported events. */\n messages: Array<ExtensionSupportedEvents>;\n /** Array of interactions triggered from the Devtools Player Content by plugin and player */\n interactions: Array<DevtoolsPluginInteractionEvent>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@player-tools/devtools-types",
3
+ "version": "0.5.3--canary.90.2515",
4
+ "main": "dist/cjs/index.cjs",
5
+ "module": "dist/index.legacy-esm.js",
6
+ "types": "types/index.d.ts",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ "./dist/index.css": "./dist/index.css",
11
+ ".": {
12
+ "types": "./types/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "default": "./dist/cjs/index.cjs"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "src",
20
+ "types"
21
+ ],
22
+ "dependencies": {
23
+ "@player-ui/types": "0.7.2-next.4",
24
+ "tslib": "^2.6.2"
25
+ },
26
+ "peerDependencies": {}
27
+ }
package/src/index.ts ADDED
@@ -0,0 +1,236 @@
1
+ import type { Flow } from "@player-ui/types";
2
+
3
+ export interface BaseEvent<T extends string, P = null> {
4
+ /** Event type */
5
+ type: T;
6
+ /** Event payload */
7
+ payload: P;
8
+ }
9
+
10
+ export type TransactionMetadata = {
11
+ /** Unique ID */
12
+ id: number;
13
+ /** Timestamp */
14
+ timestamp: number;
15
+ /** Sender ID */
16
+ sender: string;
17
+ /** Target ID */
18
+ target?: string;
19
+ /** Context */
20
+ context: "player" | "devtools";
21
+ /** Messenger tag */
22
+ _messenger_: boolean;
23
+ };
24
+
25
+ export type BeaconEvent = BaseEvent<"MESSENGER_BEACON">;
26
+
27
+ export type EventsBatchEvent<T extends BaseEvent<string, unknown>> = BaseEvent<
28
+ "MESSENGER_EVENT_BATCH",
29
+ {
30
+ /** Array of Events */
31
+ events: (MessengerEvent<T> & TransactionMetadata)[];
32
+ }
33
+ >;
34
+
35
+ export type RequestLostEventsEvent = BaseEvent<
36
+ "MESSENGER_REQUEST_LOST_EVENTS",
37
+ {
38
+ /** Last received message id */
39
+ lastReceivedMessageId: number;
40
+ }
41
+ >;
42
+
43
+ export type DisconnectEvent = BaseEvent<"MESSENGER_DISCONNECT">;
44
+
45
+ export type InternalEvent<T extends BaseEvent<string, unknown>> =
46
+ | BeaconEvent
47
+ | RequestLostEventsEvent
48
+ | EventsBatchEvent<T>
49
+ | DisconnectEvent;
50
+
51
+ export type MessengerEvent<T extends BaseEvent<string, unknown>> =
52
+ | T
53
+ | InternalEvent<T>;
54
+
55
+ export type Transaction<T extends BaseEvent<string, unknown>> =
56
+ TransactionMetadata & MessengerEvent<T>;
57
+
58
+ export type Connection = {
59
+ /** Target ID */
60
+ id: string;
61
+ /** Last sent message id */
62
+ lastSentMessageId: number;
63
+ /** Last received message id */
64
+ lastReceivedMessageId: number;
65
+ /** Lost events since the last one received */
66
+ desync: boolean;
67
+ };
68
+
69
+ /** Messenger options */
70
+ export interface MessengerOptions<T extends BaseEvent<string, unknown>> {
71
+ /** API to send messages (e.g. window.postMessage, browser.runtime.sendMessage) */
72
+ sendMessage: (message: MessengerEvent<T>) => Promise<void>;
73
+ /** API to add a listener (e.g. window.addEventListener, browser.runtime.onMessage.addListener) */
74
+ addListener: (
75
+ callback: (message: TransactionMetadata & MessengerEvent<T>) => void
76
+ ) => void;
77
+ /** API to remove a listener (e.g. window.removeEventListener, browser.runtime.onMessage.removeListener) */
78
+ removeListener: (
79
+ callback: (message: TransactionMetadata & MessengerEvent<T>) => void
80
+ ) => void;
81
+ /** Callback to handle messages */
82
+ messageCallback: (message: TransactionMetadata & MessengerEvent<T>) => void;
83
+ /** Context */
84
+ context: "player" | "devtools";
85
+ /** Unique id */
86
+ id?: string;
87
+ /** Time between beacons in ms */
88
+ beaconIntervalMS?: number;
89
+ /** Debug mode */
90
+ debug?: boolean;
91
+ /** Handle failed message */
92
+ handleFailedMessage?: (message: Transaction<T>) => void;
93
+ /** Logger */
94
+ logger: {
95
+ /** Log message */
96
+ log: (...args: Array<unknown>) => void;
97
+ };
98
+ }
99
+
100
+ /** Plugin data */
101
+ export interface PluginData {
102
+ /** Plugin id */
103
+ id: string;
104
+ /** Plugin version */
105
+ version: string;
106
+ /** Plugin name */
107
+ name: string;
108
+ /** Plugin description */
109
+ description: string;
110
+ /** Plugin UI */
111
+ flow: Flow;
112
+ }
113
+
114
+ export interface ExtensionState {
115
+ /** currently being inspected */
116
+ current: {
117
+ /** player */
118
+ player: string | null;
119
+ /** plugin */
120
+ plugin: string | null;
121
+ };
122
+ /** */
123
+ players: Record<
124
+ string,
125
+ {
126
+ /** registeredPlugins */
127
+ plugins: Record<string, PluginData>;
128
+ /** active */
129
+ active: boolean;
130
+ /** config */
131
+ config: Record<string, unknown>;
132
+ }
133
+ >;
134
+ }
135
+
136
+ interface InitPayload {
137
+ /** Devtools plugins */
138
+ plugins: Record<string, PluginData>;
139
+ }
140
+
141
+ interface FlowChangePayload {
142
+ /** Flow */
143
+ flow: Partial<Flow>;
144
+ /** Plugin ID */
145
+ pluginID: string;
146
+ }
147
+
148
+ interface DataChangePayload {
149
+ /** Data */
150
+ data: Flow["data"];
151
+ /** Plugin ID */
152
+ pluginID: string;
153
+ }
154
+
155
+ interface EventsBatchPayload {
156
+ /** Events */
157
+ events: Array<TransactionMetadata & MessengerEvent<ExtensionSupportedEvents>>;
158
+ }
159
+
160
+ /** Proxy events from the devtools player to the devtools plungins */
161
+ interface PluginInteractionPayload {
162
+ /** Interaction Type */
163
+ type: string;
164
+ /** Stringified payload */
165
+ payload?: string;
166
+ }
167
+
168
+ export type PlayerInitEvent = BaseEvent<
169
+ "PLAYER_DEVTOOLS_PLAYER_INIT",
170
+ InitPayload
171
+ >;
172
+
173
+ export type DevtoolsFlowChangeEvent = BaseEvent<
174
+ "PLAYER_DEVTOOLS_PLUGIN_FLOW_CHANGE",
175
+ FlowChangePayload
176
+ >;
177
+
178
+ export type DevtoolsDataChangeEvent = BaseEvent<
179
+ "PLAYER_DEVTOOLS_PLUGIN_DATA_CHANGE",
180
+ DataChangePayload
181
+ >;
182
+
183
+ export type PlayerStoppedEvent = BaseEvent<"PLAYER_DEVTOOLS_PLAYER_STOPPED">;
184
+
185
+ export type DevtoolsEventsBatchEvent = BaseEvent<
186
+ "MESSENGER_EVENT_BATCH",
187
+ EventsBatchPayload
188
+ >;
189
+
190
+ export type ExtensionSelectedPlayerEvent = BaseEvent<
191
+ "PLAYER_DEVTOOLS_PLAYER_SELECTED",
192
+ {
193
+ /** Player ID */
194
+ playerID: string;
195
+ }
196
+ >;
197
+
198
+ export type ExtensionSelectedPluginEvent = BaseEvent<
199
+ "PLAYER_DEVTOOLS_PLUGIN_SELECTED",
200
+ {
201
+ /** Plugin ID */
202
+ pluginID: string;
203
+ }
204
+ >;
205
+
206
+ export type DevtoolsPluginInteractionEvent = BaseEvent<
207
+ "PLAYER_DEVTOOLS_PLUGIN_INTERACTION",
208
+ PluginInteractionPayload
209
+ >;
210
+
211
+ export type ExtensionSupportedEvents =
212
+ | PlayerInitEvent
213
+ | DevtoolsFlowChangeEvent
214
+ | DevtoolsDataChangeEvent
215
+ | PlayerStoppedEvent
216
+ | DevtoolsEventsBatchEvent
217
+ | ExtensionSelectedPlayerEvent
218
+ | ExtensionSelectedPluginEvent
219
+ | BeaconEvent
220
+ | DisconnectEvent
221
+ | DevtoolsPluginInteractionEvent;
222
+
223
+ export type CommunicationLayerMethods = Pick<
224
+ MessengerOptions<ExtensionSupportedEvents>,
225
+ "sendMessage" | "addListener" | "removeListener"
226
+ >;
227
+
228
+ /** Interface representing the Devtools Plugins Store. */
229
+ export interface DevtoolsPluginsStore {
230
+ /** Plugins data. */
231
+ plugins: Record<string, PluginData>;
232
+ /** Array of supported events. */
233
+ messages: Array<ExtensionSupportedEvents>;
234
+ /** Array of interactions triggered from the Devtools Player Content by plugin and player */
235
+ interactions: Array<DevtoolsPluginInteractionEvent>;
236
+ }
@@ -0,0 +1,155 @@
1
+ import type { Flow } from "@player-ui/types";
2
+ export interface BaseEvent<T extends string, P = null> {
3
+ /** Event type */
4
+ type: T;
5
+ /** Event payload */
6
+ payload: P;
7
+ }
8
+ export type TransactionMetadata = {
9
+ /** Unique ID */
10
+ id: number;
11
+ /** Timestamp */
12
+ timestamp: number;
13
+ /** Sender ID */
14
+ sender: string;
15
+ /** Target ID */
16
+ target?: string;
17
+ /** Context */
18
+ context: "player" | "devtools";
19
+ /** Messenger tag */
20
+ _messenger_: boolean;
21
+ };
22
+ export type BeaconEvent = BaseEvent<"MESSENGER_BEACON">;
23
+ export type EventsBatchEvent<T extends BaseEvent<string, unknown>> = BaseEvent<"MESSENGER_EVENT_BATCH", {
24
+ /** Array of Events */
25
+ events: (MessengerEvent<T> & TransactionMetadata)[];
26
+ }>;
27
+ export type RequestLostEventsEvent = BaseEvent<"MESSENGER_REQUEST_LOST_EVENTS", {
28
+ /** Last received message id */
29
+ lastReceivedMessageId: number;
30
+ }>;
31
+ export type DisconnectEvent = BaseEvent<"MESSENGER_DISCONNECT">;
32
+ export type InternalEvent<T extends BaseEvent<string, unknown>> = BeaconEvent | RequestLostEventsEvent | EventsBatchEvent<T> | DisconnectEvent;
33
+ export type MessengerEvent<T extends BaseEvent<string, unknown>> = T | InternalEvent<T>;
34
+ export type Transaction<T extends BaseEvent<string, unknown>> = TransactionMetadata & MessengerEvent<T>;
35
+ export type Connection = {
36
+ /** Target ID */
37
+ id: string;
38
+ /** Last sent message id */
39
+ lastSentMessageId: number;
40
+ /** Last received message id */
41
+ lastReceivedMessageId: number;
42
+ /** Lost events since the last one received */
43
+ desync: boolean;
44
+ };
45
+ /** Messenger options */
46
+ export interface MessengerOptions<T extends BaseEvent<string, unknown>> {
47
+ /** API to send messages (e.g. window.postMessage, browser.runtime.sendMessage) */
48
+ sendMessage: (message: MessengerEvent<T>) => Promise<void>;
49
+ /** API to add a listener (e.g. window.addEventListener, browser.runtime.onMessage.addListener) */
50
+ addListener: (callback: (message: TransactionMetadata & MessengerEvent<T>) => void) => void;
51
+ /** API to remove a listener (e.g. window.removeEventListener, browser.runtime.onMessage.removeListener) */
52
+ removeListener: (callback: (message: TransactionMetadata & MessengerEvent<T>) => void) => void;
53
+ /** Callback to handle messages */
54
+ messageCallback: (message: TransactionMetadata & MessengerEvent<T>) => void;
55
+ /** Context */
56
+ context: "player" | "devtools";
57
+ /** Unique id */
58
+ id?: string;
59
+ /** Time between beacons in ms */
60
+ beaconIntervalMS?: number;
61
+ /** Debug mode */
62
+ debug?: boolean;
63
+ /** Handle failed message */
64
+ handleFailedMessage?: (message: Transaction<T>) => void;
65
+ /** Logger */
66
+ logger: {
67
+ /** Log message */
68
+ log: (...args: Array<unknown>) => void;
69
+ };
70
+ }
71
+ /** Plugin data */
72
+ export interface PluginData {
73
+ /** Plugin id */
74
+ id: string;
75
+ /** Plugin version */
76
+ version: string;
77
+ /** Plugin name */
78
+ name: string;
79
+ /** Plugin description */
80
+ description: string;
81
+ /** Plugin UI */
82
+ flow: Flow;
83
+ }
84
+ export interface ExtensionState {
85
+ /** currently being inspected */
86
+ current: {
87
+ /** player */
88
+ player: string | null;
89
+ /** plugin */
90
+ plugin: string | null;
91
+ };
92
+ /** */
93
+ players: Record<string, {
94
+ /** registeredPlugins */
95
+ plugins: Record<string, PluginData>;
96
+ /** active */
97
+ active: boolean;
98
+ /** config */
99
+ config: Record<string, unknown>;
100
+ }>;
101
+ }
102
+ interface InitPayload {
103
+ /** Devtools plugins */
104
+ plugins: Record<string, PluginData>;
105
+ }
106
+ interface FlowChangePayload {
107
+ /** Flow */
108
+ flow: Partial<Flow>;
109
+ /** Plugin ID */
110
+ pluginID: string;
111
+ }
112
+ interface DataChangePayload {
113
+ /** Data */
114
+ data: Flow["data"];
115
+ /** Plugin ID */
116
+ pluginID: string;
117
+ }
118
+ interface EventsBatchPayload {
119
+ /** Events */
120
+ events: Array<TransactionMetadata & MessengerEvent<ExtensionSupportedEvents>>;
121
+ }
122
+ /** Proxy events from the devtools player to the devtools plungins */
123
+ interface PluginInteractionPayload {
124
+ /** Interaction Type */
125
+ type: string;
126
+ /** Stringified payload */
127
+ payload?: string;
128
+ }
129
+ export type PlayerInitEvent = BaseEvent<"PLAYER_DEVTOOLS_PLAYER_INIT", InitPayload>;
130
+ export type DevtoolsFlowChangeEvent = BaseEvent<"PLAYER_DEVTOOLS_PLUGIN_FLOW_CHANGE", FlowChangePayload>;
131
+ export type DevtoolsDataChangeEvent = BaseEvent<"PLAYER_DEVTOOLS_PLUGIN_DATA_CHANGE", DataChangePayload>;
132
+ export type PlayerStoppedEvent = BaseEvent<"PLAYER_DEVTOOLS_PLAYER_STOPPED">;
133
+ export type DevtoolsEventsBatchEvent = BaseEvent<"MESSENGER_EVENT_BATCH", EventsBatchPayload>;
134
+ export type ExtensionSelectedPlayerEvent = BaseEvent<"PLAYER_DEVTOOLS_PLAYER_SELECTED", {
135
+ /** Player ID */
136
+ playerID: string;
137
+ }>;
138
+ export type ExtensionSelectedPluginEvent = BaseEvent<"PLAYER_DEVTOOLS_PLUGIN_SELECTED", {
139
+ /** Plugin ID */
140
+ pluginID: string;
141
+ }>;
142
+ export type DevtoolsPluginInteractionEvent = BaseEvent<"PLAYER_DEVTOOLS_PLUGIN_INTERACTION", PluginInteractionPayload>;
143
+ export type ExtensionSupportedEvents = PlayerInitEvent | DevtoolsFlowChangeEvent | DevtoolsDataChangeEvent | PlayerStoppedEvent | DevtoolsEventsBatchEvent | ExtensionSelectedPlayerEvent | ExtensionSelectedPluginEvent | BeaconEvent | DisconnectEvent | DevtoolsPluginInteractionEvent;
144
+ export type CommunicationLayerMethods = Pick<MessengerOptions<ExtensionSupportedEvents>, "sendMessage" | "addListener" | "removeListener">;
145
+ /** Interface representing the Devtools Plugins Store. */
146
+ export interface DevtoolsPluginsStore {
147
+ /** Plugins data. */
148
+ plugins: Record<string, PluginData>;
149
+ /** Array of supported events. */
150
+ messages: Array<ExtensionSupportedEvents>;
151
+ /** Array of interactions triggered from the Devtools Player Content by plugin and player */
152
+ interactions: Array<DevtoolsPluginInteractionEvent>;
153
+ }
154
+ export {};
155
+ //# sourceMappingURL=index.d.ts.map