@mittwald/flow-remote-core 0.2.0-alpha.45 → 0.2.0-alpha.47
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 +32 -34
- package/dist/types/connection/connectHostRenderRoot.d.ts +7 -0
- package/dist/types/connection/connectHostRenderRoot.d.ts.map +1 -0
- package/dist/types/connection/connectRemoteIframe.d.ts +1 -0
- package/dist/types/connection/connectRemoteIframe.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/types/connection/connectHostIframe.d.ts +0 -3
- package/dist/types/connection/connectHostIframe.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { ThreadIframe as a, ThreadNestedIframe as m } from "@quilted/threads";
|
|
2
1
|
import { RemoteElement as j, RemoteEvent as k } from "@remote-dom/core/elements";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { ThreadNestedIframe as a, ThreadIframe as m } from "@quilted/threads";
|
|
3
|
+
import * as n from "remeda";
|
|
4
|
+
import { isObjectType as d, isString as p, isNumber as u, isBoolean as l } from "remeda";
|
|
5
|
+
const b = (e) => new a({
|
|
6
|
+
exports: {
|
|
7
|
+
render: (t) => {
|
|
8
|
+
import("@remote-dom/core/elements").then(
|
|
9
|
+
({ RemoteMutationObserver: r }) => {
|
|
10
|
+
new r(t).observe(e);
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}), v = (e) => {
|
|
16
|
+
e === null || "__remoteConnectionEstablished" in e || (b(e), Object.assign(e, { __remoteConnectionEstablished: !0 }));
|
|
17
|
+
}, R = (e) => {
|
|
18
|
+
const t = new m(e.iframe);
|
|
7
19
|
return t.imports.render(e.connection), t;
|
|
8
|
-
},
|
|
9
|
-
t &&
|
|
20
|
+
}, y = (e) => (t) => {
|
|
21
|
+
t && ("__remoteConnectionEstablished" in t || (R({
|
|
10
22
|
iframe: t,
|
|
11
23
|
connection: e
|
|
12
|
-
}));
|
|
13
|
-
}, u = (e) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
render: (t) => {
|
|
17
|
-
import("@remote-dom/core/elements").then(
|
|
18
|
-
({ RemoteMutationObserver: r }) => {
|
|
19
|
-
new r(t).observe(e);
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}, I = (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));
|
|
24
|
+
}), Object.assign(t, { __remoteConnectionEstablished: !0 })));
|
|
25
|
+
}, s = (e) => p(e) || u(e) || l(e) || n.isArray(e) && e.every(s), i = (e) => n.isArray(e) ? e.map(i) : d(e) ? n.pickBy(e, s) : e, C = (...e) => (t) => n.pick(t, e), f = i, h = (e, t, r = {}) => (o) => {
|
|
26
|
+
const c = r[t] ?? f;
|
|
27
|
+
return e(c(o));
|
|
30
28
|
};
|
|
31
|
-
class
|
|
29
|
+
class w extends CustomEvent {
|
|
32
30
|
constructor(t, r) {
|
|
33
31
|
super(t, {
|
|
34
32
|
detail: r
|
|
@@ -36,15 +34,15 @@ class h extends CustomEvent {
|
|
|
36
34
|
}
|
|
37
35
|
}
|
|
38
36
|
export {
|
|
39
|
-
|
|
37
|
+
w as FlowRemoteEvent,
|
|
40
38
|
j as RemoteElement,
|
|
41
39
|
k as RemoteEvent,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
b as connectHostRenderRoot,
|
|
41
|
+
v as connectHostRenderRootRef,
|
|
42
|
+
R as connectRemoteIframe,
|
|
43
|
+
y as connectRemoteIframeRef,
|
|
44
|
+
h as mapEventHandler,
|
|
45
|
+
C as pick,
|
|
48
46
|
i as primitiveFlat,
|
|
49
|
-
|
|
47
|
+
f as standard
|
|
50
48
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ThreadNestedIframe } from '@quilted/threads';
|
|
2
|
+
import { RemoteConnection } from '@remote-dom/core/elements';
|
|
3
|
+
export declare const connectHostRenderRoot: (div: HTMLDivElement) => ThreadNestedIframe<Record<string, never>, {
|
|
4
|
+
render: (connection: RemoteConnection) => void;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const connectHostRenderRootRef: (ref: HTMLDivElement | null) => void;
|
|
7
|
+
//# sourceMappingURL=connectHostRenderRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectHostRenderRoot.d.ts","sourceRoot":"","sources":["../../../src/connection/connectHostRenderRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,eAAO,MAAM,qBAAqB,QAAS,cAAc;yBAG9B,gBAAgB;EAU1C,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAS,cAAc,GAAG,IAAI,SAMlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectRemoteIframe.d.ts","sourceRoot":"","sources":["../../../src/connection/connectRemoteIframe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,UAAU,IAAI;IACZ,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,aAAa,CAAC,OAAO,CAAC,CAAC;CAClE;AAED,eAAO,MAAM,mBAAmB,SAAU,IAAI,4DAI7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,eACpB,gBAAgB,WAAW,iBAAiB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"connectRemoteIframe.d.ts","sourceRoot":"","sources":["../../../src/connection/connectRemoteIframe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/C,UAAU,IAAI;IACZ,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,aAAa,CAAC,OAAO,CAAC,CAAC;CAClE;AAED,eAAO,MAAM,mBAAmB,SAAU,IAAI,4DAI7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,eACpB,gBAAgB,WAAW,iBAAiB,GAAG,IAAI,SAc/D,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { RemoteElement, RemoteEvent, type RemoteElementConstructor, } from '@remote-dom/core/elements';
|
|
2
|
+
export * from './connection/connectHostRenderRoot';
|
|
1
3
|
export * from './connection/connectRemoteIframe';
|
|
2
|
-
export * from './connection/connectHostIframe';
|
|
3
4
|
export * from './events';
|
|
4
5
|
export * from './events/FlowRemoteEvent';
|
|
5
6
|
export * from './events/serializers';
|
|
6
|
-
export { RemoteElement, RemoteEvent, type RemoteElementConstructor, } from '@remote-dom/core/elements';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,WAAW,EACX,KAAK,wBAAwB,GAC9B,MAAM,2BAA2B,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,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.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"test:compile": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@quilted/threads": "^3.1.
|
|
27
|
+
"@quilted/threads": "^3.1.3",
|
|
28
28
|
"@remote-dom/core": "1.5.1",
|
|
29
29
|
"remeda": "^2.20.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@mittwald/typescript-config": "workspace:*",
|
|
33
33
|
"@types/node": "^22.13.4",
|
|
34
|
-
"nx": "^20.4.
|
|
34
|
+
"nx": "^20.4.5",
|
|
35
35
|
"prettier": "^3.5.1",
|
|
36
36
|
"rimraf": "^6.0.1",
|
|
37
37
|
"rollup-preserve-directives": "^1.1.3",
|
|
38
38
|
"typescript": "^5.7.3",
|
|
39
|
-
"vite": "^6.1.
|
|
39
|
+
"vite": "^6.1.1",
|
|
40
40
|
"vite-plugin-checker": "^0.8.0",
|
|
41
41
|
"vite-plugin-dts": "^4.5.0",
|
|
42
42
|
"vite-plugin-externalize-deps": "^0.9.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "dfd43a192d6b3755906d3632a93a2725ed898ea0"
|
|
45
45
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectHostIframe.d.ts","sourceRoot":"","sources":["../../../src/connection/connectHostIframe.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,WAAY,iBAAiB,SAa1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAS,iBAAiB,GAAG,IAAI,SAKjE,CAAC"}
|