@mittwald/flow-remote-core 0.2.0-alpha.110 → 0.2.0-alpha.112

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -14
  2. 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 E = Object.keys({
6
+ const x = Object.keys({
7
7
  getSessionToken: !0,
8
8
  getConfig: !0
9
- }), x = (e) => {
10
- const t = e.imports, n = E.map((o) => [o, (...c) => {
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(mwExtBridge, Object.fromEntries(n));
15
- }, _ = (e) => {
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 mwExtBridge < "u" && (x(t), mwExtBridge.setIsReady()), t;
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 = _(e);
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 w = new Proxy(
40
+ const b = new Proxy(
41
41
  {},
42
42
  {
43
43
  get() {
44
- throw new m("Missing implementation for MwExtBridge");
44
+ throw new m("Missing implementation for mittwald.extBridge");
45
45
  }
46
46
  }
47
- ), b = (e) => {
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 = w
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 = b({
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
- _ as connectHostRenderRoot,
92
+ w as connectHostRenderRoot,
93
93
  v as connectHostRenderRootRef,
94
- b as connectRemoteIframe,
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.110",
3
+ "version": "0.2.0-alpha.112",
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.110",
32
+ "@mittwald/ext-bridge": "0.2.0-alpha.112",
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": "06e4eb54db7851ada531d35cf9e6b71c3d11b384"
53
+ "gitHead": "b422c13d2bbbafca1cfae36e1e2b6789e73abd6e"
54
54
  }