@pie-players/pie-section-player-tools-event-debugger 0.3.35 → 0.3.36
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
|
@@ -43,14 +43,15 @@
|
|
|
43
43
|
totalItems?: number;
|
|
44
44
|
} | null;
|
|
45
45
|
type ToolkitCoordinatorLike = {
|
|
46
|
+
// Phase D (>=0.3.35): subscribe* helpers follow the toolkit's
|
|
47
|
+
// active section cohort automatically and do not accept
|
|
48
|
+
// sectionId / attemptId arguments. The debugger keeps `sectionId`
|
|
49
|
+
// + `attemptId` in `subscriptions` purely to gate same-target
|
|
50
|
+
// re-subscribe — it does not pass them to the coordinator.
|
|
46
51
|
subscribeItemEvents?: (args: {
|
|
47
|
-
sectionId: string;
|
|
48
|
-
attemptId?: string;
|
|
49
52
|
listener: (event: ControllerEvent) => void;
|
|
50
53
|
}) => () => void;
|
|
51
54
|
subscribeSectionLifecycleEvents?: (args: {
|
|
52
|
-
sectionId: string;
|
|
53
|
-
attemptId?: string;
|
|
54
55
|
listener: (event: ControllerEvent) => void;
|
|
55
56
|
}) => () => void;
|
|
56
57
|
getSectionController?: (args: {
|
|
@@ -378,14 +379,10 @@
|
|
|
378
379
|
detachControllerSubscription();
|
|
379
380
|
const unsubscribeItem =
|
|
380
381
|
toolkitCoordinator?.subscribeItemEvents?.({
|
|
381
|
-
sectionId,
|
|
382
|
-
attemptId,
|
|
383
382
|
listener: handleItemControllerEvent,
|
|
384
383
|
}) || null;
|
|
385
384
|
const unsubscribeSection =
|
|
386
385
|
toolkitCoordinator?.subscribeSectionLifecycleEvents?.({
|
|
387
|
-
sectionId,
|
|
388
|
-
attemptId,
|
|
389
386
|
listener: handleSectionControllerEvent,
|
|
390
387
|
}) || null;
|
|
391
388
|
subscriptions.controller = () => {
|
|
@@ -3692,15 +3692,7 @@ function Rc(e, t) {
|
|
|
3692
3692
|
const y = o() || void 0;
|
|
3693
3693
|
if (m.activeSectionId === a() && m.activeAttemptId === y && m.controller) return;
|
|
3694
3694
|
be();
|
|
3695
|
-
const x = s()?.subscribeItemEvents?.({
|
|
3696
|
-
sectionId: a(),
|
|
3697
|
-
attemptId: o(),
|
|
3698
|
-
listener: Kn
|
|
3699
|
-
}) || null, R = s()?.subscribeSectionLifecycleEvents?.({
|
|
3700
|
-
sectionId: a(),
|
|
3701
|
-
attemptId: o(),
|
|
3702
|
-
listener: Gn
|
|
3703
|
-
}) || null;
|
|
3695
|
+
const x = s()?.subscribeItemEvents?.({ listener: Kn }) || null, R = s()?.subscribeSectionLifecycleEvents?.({ listener: Gn }) || null;
|
|
3704
3696
|
m.controller = () => {
|
|
3705
3697
|
x?.(), R?.();
|
|
3706
3698
|
}, m.activeSectionId = a(), m.activeAttemptId = y, kt(u);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-section-player-tools-event-debugger",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Runtime event debugger panel for PIE section-player session broadcasts",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
],
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@pie-players/pie-section-player-tools-shared": "0.3.
|
|
43
|
-
"@pie-players/pie-theme": "0.3.
|
|
42
|
+
"@pie-players/pie-section-player-tools-shared": "0.3.36",
|
|
43
|
+
"@pie-players/pie-theme": "0.3.36"
|
|
44
44
|
},
|
|
45
45
|
"types": "./dist/index.d.ts",
|
|
46
46
|
"scripts": {
|