@mittwald/flow-remote-core 0.2.0-alpha.31 → 0.2.0-alpha.33
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 +23 -23
- package/dist/types/events/serializers.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { ThreadIframe as
|
|
1
|
+
import { ThreadIframe as a, ThreadNestedIframe as m } from "@quilted/threads";
|
|
2
2
|
import { RemoteElement as j, RemoteEvent as k } from "@remote-dom/core/elements";
|
|
3
3
|
import * as o from "remeda";
|
|
4
|
-
import { isObjectType as
|
|
5
|
-
const
|
|
6
|
-
const t = new
|
|
4
|
+
import { isObjectType as p, isString as d, isNumber as b, isBoolean as l } from "remeda";
|
|
5
|
+
const f = (e) => {
|
|
6
|
+
const t = new a(e.iframe);
|
|
7
7
|
return t.imports.render(e.connection), t;
|
|
8
|
-
},
|
|
9
|
-
t && !("__remoteConnectionEstablished" in t) && (Object.assign(t, { __remoteConnectionEstablished: !0 }),
|
|
8
|
+
}, v = (e) => (t) => {
|
|
9
|
+
t && !("__remoteConnectionEstablished" in t) && (Object.assign(t, { __remoteConnectionEstablished: !0 }), f({
|
|
10
10
|
iframe: t,
|
|
11
11
|
connection: e
|
|
12
12
|
}));
|
|
13
|
-
},
|
|
13
|
+
}, u = (e) => {
|
|
14
14
|
new m({
|
|
15
15
|
exports: {
|
|
16
16
|
render: (t) => {
|
|
17
17
|
import("@remote-dom/core/elements").then(
|
|
18
|
-
({ RemoteMutationObserver:
|
|
19
|
-
new
|
|
18
|
+
({ RemoteMutationObserver: r }) => {
|
|
19
|
+
new r(t).observe(e);
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}, I = (e) => {
|
|
26
|
-
e && !("__remoteConnectionEstablished" in e) && (Object.assign(e, { __remoteConnectionEstablished: !0 }),
|
|
27
|
-
}, s = (e) => d(e) ||
|
|
28
|
-
const
|
|
29
|
-
return e(
|
|
26
|
+
e && !("__remoteConnectionEstablished" in e) && (Object.assign(e, { __remoteConnectionEstablished: !0 }), u(e));
|
|
27
|
+
}, s = (e) => d(e) || b(e) || l(e) || o.isArray(e) && e.every(s), i = (e) => o.isArray(e) ? e.map(i) : p(e) ? o.pickBy(e, s) : e, y = (...e) => (t) => o.pick(t, e), E = i, C = (e, t, r = {}) => (n) => {
|
|
28
|
+
const c = r[t] ?? E;
|
|
29
|
+
return e(c(n));
|
|
30
30
|
};
|
|
31
|
-
class
|
|
32
|
-
constructor(t,
|
|
31
|
+
class h extends CustomEvent {
|
|
32
|
+
constructor(t, r) {
|
|
33
33
|
super(t, {
|
|
34
|
-
detail:
|
|
34
|
+
detail: r
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
h as FlowRemoteEvent,
|
|
40
40
|
j as RemoteElement,
|
|
41
41
|
k as RemoteEvent,
|
|
42
|
-
|
|
42
|
+
u as connectHostIframe,
|
|
43
43
|
I as connectHostIframeRef,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
f as connectRemoteIframe,
|
|
45
|
+
v as connectRemoteIframeRef,
|
|
46
|
+
C as mapEventHandler,
|
|
47
|
+
y as pick,
|
|
48
|
+
i as primitiveFlat,
|
|
49
49
|
E as standard
|
|
50
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../src/events/serializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAUzD,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../src/events/serializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAUzD,eAAO,MAAM,aAAa,EAAE,kBAKf,CAAC;AAEd,eAAO,MAAM,IAAI,aACJ,MAAM,EAAE,KAAG,kBAGrB,CAAC;AAEJ,eAAO,MAAM,QAAQ,oBAAgB,CAAC"}
|
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.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"vite-plugin-dts": "^4.5.0",
|
|
42
42
|
"vite-plugin-externalize-deps": "^0.9.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5259e44a7f9c29b5237dc87441eb8a7e16a4cbe3"
|
|
45
45
|
}
|