@pie-players/pie-section-player-tools-event-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.
package/EventPanel.svelte CHANGED
@@ -248,6 +248,14 @@
248
248
  pushRecord(event || {});
249
249
  }
250
250
 
251
+ function handleItemControllerEvent(event: ControllerEvent): void {
252
+ handleControllerEvent(event);
253
+ }
254
+
255
+ function handleSectionControllerEvent(event: ControllerEvent): void {
256
+ handleControllerEvent(event);
257
+ }
258
+
251
259
  function getController(): any | null {
252
260
  return getSectionControllerFromCoordinator(
253
261
  toolkitCoordinator,
@@ -323,13 +331,13 @@
323
331
  toolkitCoordinator?.subscribeItemEvents?.({
324
332
  sectionId,
325
333
  attemptId,
326
- listener: handleControllerEvent,
334
+ listener: handleItemControllerEvent,
327
335
  }) || null;
328
336
  const unsubscribeSection =
329
337
  toolkitCoordinator?.subscribeSectionLifecycleEvents?.({
330
338
  sectionId,
331
339
  attemptId,
332
- listener: handleControllerEvent,
340
+ listener: handleSectionControllerEvent,
333
341
  }) || null;
334
342
  subscriptions.controller = () => {
335
343
  unsubscribeItem?.();