@pie-element/shared-player-events 0.2.2-next.20261026200905 → 0.2.2-next.20261026212738
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/README.md +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,14 +37,17 @@ class MyElement extends HTMLElement {
|
|
|
37
37
|
super();
|
|
38
38
|
this._notifier = createSessionNotifier(
|
|
39
39
|
this,
|
|
40
|
-
() =>
|
|
41
|
-
|
|
40
|
+
() =>
|
|
41
|
+
this.dispatchEvent(
|
|
42
|
+
new SessionChangedEvent(this.tagName.toLowerCase(), isComplete(this._session))
|
|
43
|
+
),
|
|
44
|
+
{ delayMs: 200 }
|
|
42
45
|
);
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
valueChange(value) {
|
|
46
|
-
this._session.value = value;
|
|
47
|
-
this._notifier.notify();
|
|
49
|
+
this._session.value = value; // synchronous
|
|
50
|
+
this._notifier.notify(); // deferred
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
disconnectedCallback() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/shared-player-events",
|
|
3
|
-
"version": "0.2.2-next.
|
|
3
|
+
"version": "0.2.2-next.20261026212738",
|
|
4
4
|
"description": "PIE Player Events (ESM) - internalized from @pie-framework/pie-player-events",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|