@mittwald/flow-remote-core 0.2.0-alpha.19 → 0.2.0-alpha.20

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 CHANGED
@@ -1,13 +1,12 @@
1
1
  import { ThreadIframe as i, ThreadNestedIframe as c } from "@quilted/threads";
2
- import { RemoteMutationObserver as m } from "@remote-dom/core/elements";
3
- import { RemoteElement as H, RemoteEvent as T } from "@remote-dom/core/elements";
4
- import * as n from "remeda";
5
- import { isObjectType as a, isString as d, isNumber as p, isBoolean as b } from "remeda";
6
- const f = (e) => {
2
+ import { RemoteElement as k, RemoteEvent as H } from "@remote-dom/core/elements";
3
+ import * as r from "remeda";
4
+ import { isObjectType as m, isString as a, isNumber as d, isBoolean as p } from "remeda";
5
+ const b = (e) => {
7
6
  const t = new i(e.iframe);
8
7
  return t.imports.render(e.connection), t;
9
- }, h = (e) => (t) => {
10
- t && !("__remoteConnectionEstablished" in t) && (Object.assign(t, { __remoteConnectionEstablished: !0 }), f({
8
+ }, R = (e) => (t) => {
9
+ t && !("__remoteConnectionEstablished" in t) && (Object.assign(t, { __remoteConnectionEstablished: !0 }), b({
11
10
  iframe: t,
12
11
  connection: e
13
12
  }));
@@ -15,17 +14,21 @@ const f = (e) => {
15
14
  new c({
16
15
  exports: {
17
16
  render: (t) => {
18
- new m(t).observe(e);
17
+ import("@remote-dom/core/elements").then(
18
+ ({ RemoteMutationObserver: o }) => {
19
+ new o(t).observe(e);
20
+ }
21
+ );
19
22
  }
20
23
  }
21
24
  });
22
- }, C = (e) => {
25
+ }, h = (e) => {
23
26
  e && !("__remoteConnectionEstablished" in e) && (Object.assign(e, { __remoteConnectionEstablished: !0 }), l(e));
24
- }, u = (e) => d(e) || p(e) || b(e), E = (e) => a(e) ? n.pickBy(e, u) : e, w = (...e) => (t) => n.pick(t, e), v = E, x = (e, t, o = {}) => (r) => {
25
- const s = o[t] ?? v;
26
- return e(s(r));
27
+ }, f = (e) => a(e) || d(e) || p(e), E = (e) => m(e) ? r.pickBy(e, f) : e, I = (...e) => (t) => r.pick(t, e), u = E, C = (e, t, o = {}) => (n) => {
28
+ const s = o[t] ?? u;
29
+ return e(s(n));
27
30
  };
28
- class O extends CustomEvent {
31
+ class w extends CustomEvent {
29
32
  constructor(t, o) {
30
33
  super(t, {
31
34
  detail: o
@@ -33,15 +36,15 @@ class O extends CustomEvent {
33
36
  }
34
37
  }
35
38
  export {
36
- O as FlowRemoteEvent,
37
- H as RemoteElement,
38
- T as RemoteEvent,
39
+ w as FlowRemoteEvent,
40
+ k as RemoteElement,
41
+ H as RemoteEvent,
39
42
  l as connectHostIframe,
40
- C as connectHostIframeRef,
41
- f as connectRemoteIframe,
42
- h as connectRemoteIframeRef,
43
- x as mapEventHandler,
44
- w as pick,
43
+ h as connectHostIframeRef,
44
+ b as connectRemoteIframe,
45
+ R as connectRemoteIframeRef,
46
+ C as mapEventHandler,
47
+ I as pick,
45
48
  E as primitiveFlat,
46
- v as standard
49
+ u as standard
47
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"connectHostIframe.d.ts","sourceRoot":"","sources":["../../../src/connection/connectHostIframe.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,WAAY,iBAAiB,SAS1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAS,iBAAiB,GAAG,IAAI,SAKjE,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-core",
3
- "version": "0.2.0-alpha.19",
3
+ "version": "0.2.0-alpha.20",
4
4
  "type": "module",
5
5
  "description": "Core functionality to setup a remote/host environment",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -9,10 +9,6 @@
9
9
  ".": {
10
10
  "types": "./dist/types/index.d.ts",
11
11
  "default": "./dist/index.js"
12
- },
13
- "./polyfill": {
14
- "types": "./dist/types/polyfill.d.ts",
15
- "default": "./dist/polyfill.js"
16
12
  }
17
13
  },
18
14
  "files": [
@@ -38,11 +34,12 @@
38
34
  "nx": "^20.3.2",
39
35
  "prettier": "^3.4.2",
40
36
  "rimraf": "^6.0.1",
37
+ "rollup-preserve-directives": "^1.1.3",
41
38
  "typescript": "^5.7.3",
42
39
  "vite": "^6.0.9",
43
40
  "vite-plugin-checker": "^0.8.0",
44
41
  "vite-plugin-dts": "^4.5.0",
45
42
  "vite-plugin-externalize-deps": "^0.9.0"
46
43
  },
47
- "gitHead": "c530a238f59ce1bf3ff990ba12ab760c42b9ca31"
44
+ "gitHead": "a51a4a784af8bf8d6e983075c954d6c5a33144be"
48
45
  }
package/dist/polyfill.js DELETED
@@ -1 +0,0 @@
1
- import "@remote-dom/core/polyfill";
@@ -1 +0,0 @@
1
- //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/polyfill.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}