@mittwald/react-tunnel 1.5.48 → 1.5.50
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 -10
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createContext as e, useContext as t, useEffect as n, useId as r, useLay
|
|
|
3
3
|
import { action as l, makeObservable as u, observable as d } from "mobx";
|
|
4
4
|
import { jsx as f } from "react/jsx-runtime";
|
|
5
5
|
import { observer as p } from "mobx-react-lite";
|
|
6
|
-
|
|
6
|
+
// src/TunnelState.ts
|
|
7
7
|
var m = "default", h = "default", g = class e {
|
|
8
8
|
id;
|
|
9
9
|
instanceId;
|
|
@@ -80,14 +80,10 @@ var m = "default", h = "default", g = class e {
|
|
|
80
80
|
let i = e.get(t), a = i?.get(n);
|
|
81
81
|
if (!i || !a) return;
|
|
82
82
|
let o = new Set(a.owners);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
i.delete(n), i.size === 0 && e.delete(t);
|
|
83
|
+
o.delete(r), o.size > 0 ? i.set(n, {
|
|
84
|
+
...a,
|
|
85
|
+
owners: o
|
|
86
|
+
}) : (i.delete(n), i.size === 0 && e.delete(t));
|
|
91
87
|
}
|
|
92
88
|
deleteChildren(e = m, t, n) {
|
|
93
89
|
this.deleteOwnerFromMap(this.committedChildren, e, t, n), this.deleteOwnerFromMap(this.renderPhaseChildren, e, t, n);
|
|
@@ -152,5 +148,4 @@ var m = "default", h = "default", g = class e {
|
|
|
152
148
|
let m = u?.entries.map((e) => /* @__PURE__ */ f(x, { children: e.children }, e.id));
|
|
153
149
|
return typeof t == "function" ? t(m) : m ?? t;
|
|
154
150
|
});
|
|
155
|
-
//#endregion
|
|
156
151
|
export { b as TunnelEntry, S as TunnelExit, y as TunnelProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/react-tunnel",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "It's like a Portal – but with React components",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"mobx-react-lite": "^4.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@mittwald/flow-core": "1.5.
|
|
43
|
-
"@mittwald/typescript-config": "1.5.
|
|
42
|
+
"@mittwald/flow-core": "1.5.50",
|
|
43
|
+
"@mittwald/typescript-config": "1.5.50",
|
|
44
44
|
"@types/node": "^25.9.3",
|
|
45
45
|
"@types/react": "^19.2",
|
|
46
46
|
"@types/react-dom": "^19.2",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"react": "^19.2.0",
|
|
63
63
|
"react-dom": "^19.2.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e580bd2853938b011002ea7e3c703858a3803230"
|
|
66
66
|
}
|