@pie-element/shared-player-events 0.2.2-next.20261103123052 → 0.2.2-next.20261110055344
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/dist/index.js +5 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/session-notifier.ts
|
|
2
2
|
var e = "commitPendingSession", t = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
function n(e, n) {
|
|
4
4
|
let r = t.get(e);
|
|
@@ -46,8 +46,7 @@ function o(e) {
|
|
|
46
46
|
let n = t.get(e);
|
|
47
47
|
if (n) for (let e of [...n]) e.flush();
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
//#region ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.7/node_modules/@pie-players/pie-context/dist/events.js
|
|
49
|
+
// ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.7/node_modules/@pie-players/pie-context/dist/events.js
|
|
51
50
|
function s(e, t, n) {
|
|
52
51
|
let r = t.ownerDocument?.defaultView?.Event ?? Event;
|
|
53
52
|
return Object.assign(new r(e, {
|
|
@@ -97,7 +96,7 @@ var c = /* @__PURE__ */ new WeakSet(), l = (e, t) => typeof t == "object" && !!t
|
|
|
97
96
|
requests: []
|
|
98
97
|
}, this.pendingByContext.set(t.context, r));
|
|
99
98
|
let i = t.callback, a = r.callbacks.get(n);
|
|
100
|
-
a || (a = /* @__PURE__ */ new WeakSet(), r.callbacks.set(n, a)),
|
|
99
|
+
a || (a = /* @__PURE__ */ new WeakSet(), r.callbacks.set(n, a)), a.has(i) || (a.add(i), r.requests.push({
|
|
101
100
|
requestorRef: new WeakRef(n),
|
|
102
101
|
callbackRef: new WeakRef(i)
|
|
103
102
|
}), r.requests = d(r.requests));
|
|
@@ -124,8 +123,7 @@ function m(e) {
|
|
|
124
123
|
let r = new f(n);
|
|
125
124
|
r.attach(), t[p] = r;
|
|
126
125
|
}
|
|
127
|
-
|
|
128
|
-
//#region ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.7/node_modules/@pie-players/pie-context/dist/consumer.js
|
|
126
|
+
// ../../../node_modules/.bun/@pie-players+pie-context@1.0.0-beta.7/node_modules/@pie-players/pie-context/dist/consumer.js
|
|
129
127
|
var h = class {
|
|
130
128
|
host;
|
|
131
129
|
context;
|
|
@@ -175,8 +173,7 @@ function b(e, t) {
|
|
|
175
173
|
t(y(e?.idleSaveDelayMs));
|
|
176
174
|
});
|
|
177
175
|
}
|
|
178
|
-
|
|
179
|
-
//#region src/index.ts
|
|
176
|
+
// src/index.ts
|
|
180
177
|
var x = class e extends CustomEvent {
|
|
181
178
|
static {
|
|
182
179
|
this.TYPE = "model-set";
|
|
@@ -207,5 +204,4 @@ var x = class e extends CustomEvent {
|
|
|
207
204
|
}), this.component = t, this.complete = n;
|
|
208
205
|
}
|
|
209
206
|
};
|
|
210
|
-
//#endregion
|
|
211
207
|
export { v as DEFAULT_IDLE_SAVE_DELAY_MS, x as ModelSetEvent, e as SESSION_COMMIT_METHOD, S as SessionChangedEvent, a as createSessionNotifier, o as flushSessionNotifiers, y as resolveIdleSaveDelay, b as subscribeIdleSaveDelay };
|
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.20261110055344",
|
|
4
4
|
"description": "PIE Player Events (ESM) - internalized from @pie-framework/pie-player-events",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|