@pie-players/pie-section-player-tools-session-debugger 0.3.9 → 0.3.10
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.
|
@@ -199,6 +199,14 @@
|
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
function handleItemControllerEvent(detail: { itemId?: string; timestamp?: number }): void {
|
|
203
|
+
handleControllerEvent(detail);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function handleSectionControllerEvent(detail: { itemId?: string; timestamp?: number }): void {
|
|
207
|
+
handleControllerEvent(detail);
|
|
208
|
+
}
|
|
209
|
+
|
|
202
210
|
function ensureControllerSubscription() {
|
|
203
211
|
const controller = getController() || null;
|
|
204
212
|
if (!controller) {
|
|
@@ -233,12 +241,12 @@
|
|
|
233
241
|
const unsubscribeItem = toolkitCoordinator?.subscribeItemEvents?.({
|
|
234
242
|
sectionId,
|
|
235
243
|
attemptId,
|
|
236
|
-
listener:
|
|
244
|
+
listener: handleItemControllerEvent
|
|
237
245
|
}) || null;
|
|
238
246
|
const unsubscribeSection = toolkitCoordinator?.subscribeSectionLifecycleEvents?.({
|
|
239
247
|
sectionId,
|
|
240
248
|
attemptId,
|
|
241
|
-
listener:
|
|
249
|
+
listener: handleSectionControllerEvent
|
|
242
250
|
}) || null;
|
|
243
251
|
unsubscribeController = () => {
|
|
244
252
|
unsubscribeItem?.();
|