@mittwald/flow-remote-core 0.2.0-alpha.110 → 0.2.0-alpha.111
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 +14 -14
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,16 +3,16 @@ import { ThreadNestedIframe as u, ThreadIframe as l } from "@quilted/threads";
|
|
|
3
3
|
import "@mittwald/ext-bridge";
|
|
4
4
|
import * as i from "remeda";
|
|
5
5
|
import { isObjectType as R, isString as g, isNumber as f, isBoolean as y } from "remeda";
|
|
6
|
-
const
|
|
6
|
+
const x = Object.keys({
|
|
7
7
|
getSessionToken: !0,
|
|
8
8
|
getConfig: !0
|
|
9
|
-
}),
|
|
10
|
-
const t = e.imports, n =
|
|
9
|
+
}), _ = (e) => {
|
|
10
|
+
const t = e.imports, n = x.map((o) => [o, (...c) => {
|
|
11
11
|
var s;
|
|
12
12
|
return (s = t[o]) == null ? void 0 : s.call(t, ...c);
|
|
13
13
|
}]);
|
|
14
|
-
Object.assign(
|
|
15
|
-
},
|
|
14
|
+
Object.assign(mittwald.extBridge, Object.fromEntries(n));
|
|
15
|
+
}, w = (e) => {
|
|
16
16
|
const t = new u({
|
|
17
17
|
exports: {
|
|
18
18
|
render: (n) => import("@mfalkenberg/remote-dom-core/elements").then(
|
|
@@ -22,13 +22,13 @@ const E = Object.keys({
|
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
return t.imports.setIsReady(), typeof
|
|
25
|
+
return t.imports.setIsReady(), typeof mittwald.extBridge < "u" && (_(t), mittwald.extBridge.setIsReady()), t;
|
|
26
26
|
}, v = (e) => {
|
|
27
27
|
if (e === null)
|
|
28
28
|
return;
|
|
29
29
|
if ("__remoteConnection" in e)
|
|
30
30
|
return e.__remoteConnection;
|
|
31
|
-
const t =
|
|
31
|
+
const t = w(e);
|
|
32
32
|
return Object.assign(e, { __remoteConnection: t }), t;
|
|
33
33
|
};
|
|
34
34
|
class m extends Error {
|
|
@@ -37,20 +37,20 @@ class m extends Error {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
m.prototype.name = "RemoteError";
|
|
40
|
-
const
|
|
40
|
+
const b = new Proxy(
|
|
41
41
|
{},
|
|
42
42
|
{
|
|
43
43
|
get() {
|
|
44
|
-
throw new m("Missing implementation for
|
|
44
|
+
throw new m("Missing implementation for mittwald.extBridge");
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
),
|
|
47
|
+
), E = (e) => {
|
|
48
48
|
const {
|
|
49
49
|
connection: t,
|
|
50
50
|
iframe: n,
|
|
51
51
|
onReady: o,
|
|
52
52
|
onError: r,
|
|
53
|
-
extBridgeImplementation: c =
|
|
53
|
+
extBridgeImplementation: c = b
|
|
54
54
|
} = e, s = new l(n, {
|
|
55
55
|
exports: {
|
|
56
56
|
...c,
|
|
@@ -68,7 +68,7 @@ const w = new Proxy(
|
|
|
68
68
|
return;
|
|
69
69
|
if ("__remoteConnection" in t)
|
|
70
70
|
return t.__remoteConnection;
|
|
71
|
-
const n =
|
|
71
|
+
const n = E({
|
|
72
72
|
iframe: t,
|
|
73
73
|
...e
|
|
74
74
|
});
|
|
@@ -89,9 +89,9 @@ export {
|
|
|
89
89
|
h as RemoteElement,
|
|
90
90
|
m as RemoteError,
|
|
91
91
|
A as RemoteEvent,
|
|
92
|
-
|
|
92
|
+
w as connectHostRenderRoot,
|
|
93
93
|
v as connectHostRenderRootRef,
|
|
94
|
-
|
|
94
|
+
E as connectRemoteIframe,
|
|
95
95
|
O as connectRemoteIframeRef,
|
|
96
96
|
T as mapEventHandler,
|
|
97
97
|
k as pick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-core",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.111",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"remeda": "^2.21.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
32
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.111",
|
|
33
33
|
"@mittwald/typescript-config": "",
|
|
34
34
|
"@types/node": "^22.13.10",
|
|
35
35
|
"nx": "^20.5.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"optional": true
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "66ecd717fb7169d9c5985ffc0e995198a988f0a4"
|
|
54
54
|
}
|