@mittwald/flow-remote-core 0.2.0-alpha.172 → 0.2.0-alpha.174
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/js/connection/types.mjs +9 -0
- package/dist/js/connection/types.mjs.map +1 -0
- package/dist/js/index-node.mjs +1 -0
- package/dist/js/index-node.mjs.map +1 -1
- package/dist/js/index.mjs +1 -0
- package/dist/js/index.mjs.map +1 -1
- package/dist/types/connection/types.d.ts +6 -1
- package/dist/types/connection/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var Version = /* @__PURE__ */ ((Version2) => {
|
|
2
|
+
Version2[Version2["vUnknown"] = 0] = "vUnknown";
|
|
3
|
+
Version2[Version2["v1"] = 1] = "v1";
|
|
4
|
+
Version2[Version2["v2"] = 2] = "v2";
|
|
5
|
+
return Version2;
|
|
6
|
+
})(Version || {});
|
|
7
|
+
|
|
8
|
+
export { Version };
|
|
9
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.mjs","sources":["../../../src/connection/types.ts"],"sourcesContent":["import type { ExtBridgeConnectionApi } from \"@mittwald/ext-bridge\";\nimport type { RemoteConnection } from \"@mittwald/remote-dom-core\";\nimport type { ThreadIframe, ThreadNestedIframe } from \"@quilted/threads\";\n\nexport interface NavigationState {\n pathname: string;\n isPending: boolean;\n}\n\nexport interface HostExports extends ExtBridgeConnectionApi {\n setIsReady: (version?: Version) => Promise<void>;\n setError: (error: string) => Promise<void>;\n setNavigationState: (state: NavigationState) => Promise<void>;\n}\n\nexport interface RemoteExports {\n render: (connection: RemoteConnection) => Promise<void>;\n setPathname: (pathname: string) => Promise<void>;\n}\n\nexport type RemoteToHostConnection = ThreadNestedIframe<\n HostExports,\n RemoteExports\n>;\n\nexport interface HostToRemoteConnection {\n version: number;\n thread: ThreadIframe<RemoteExports, HostExports>;\n}\n\nexport enum Version {\n vUnknown = 0,\n v1 = 1,\n v2 = 2,\n}\n"],"names":["Version"],"mappings":"AA8BY,IAAA,OAAA,qBAAAA,QAAL,KAAA;AACL,EAAAA,QAAAA,CAAAA,QAAAA,CAAA,cAAW,CAAX,CAAA,GAAA,UAAA;AACA,EAAAA,QAAAA,CAAAA,QAAAA,CAAA,QAAK,CAAL,CAAA,GAAA,IAAA;AACA,EAAAA,QAAAA,CAAAA,QAAAA,CAAA,QAAK,CAAL,CAAA,GAAA,IAAA;AAHU,EAAAA,OAAAA,QAAAA;AAAA,CAAA,EAAA,OAAA,IAAA,EAAA;;;;"}
|
package/dist/js/index-node.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import './shim.mjs';
|
|
|
2
2
|
export { RemoteElement, RemoteEvent } from '@mittwald/remote-dom-core/elements';
|
|
3
3
|
export { connectHostRenderRoot, connectHostRenderRootRef } from './connection/connectHostRenderRoot.mjs';
|
|
4
4
|
export { connectRemoteIframe, connectRemoteIframeRef } from './connection/connectRemoteIframe.mjs';
|
|
5
|
+
export { Version } from './connection/types.mjs';
|
|
5
6
|
export { RemoteError } from './error.mjs';
|
|
6
7
|
export { mapEventHandler } from './events/index.mjs';
|
|
7
8
|
export { FlowRemoteEvent } from './events/FlowRemoteEvent.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-node.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index-node.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/js/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { RemoteElement, RemoteEvent } from '@mittwald/remote-dom-core/elements';
|
|
2
2
|
export { connectHostRenderRoot, connectHostRenderRootRef } from './connection/connectHostRenderRoot.mjs';
|
|
3
3
|
export { connectRemoteIframe, connectRemoteIframeRef } from './connection/connectRemoteIframe.mjs';
|
|
4
|
+
export { Version } from './connection/types.mjs';
|
|
4
5
|
export { RemoteError } from './error.mjs';
|
|
5
6
|
export { mapEventHandler } from './events/index.mjs';
|
|
6
7
|
export { FlowRemoteEvent } from './events/FlowRemoteEvent.mjs';
|
package/dist/js/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -6,7 +6,7 @@ export interface NavigationState {
|
|
|
6
6
|
isPending: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface HostExports extends ExtBridgeConnectionApi {
|
|
9
|
-
setIsReady: (version?:
|
|
9
|
+
setIsReady: (version?: Version) => Promise<void>;
|
|
10
10
|
setError: (error: string) => Promise<void>;
|
|
11
11
|
setNavigationState: (state: NavigationState) => Promise<void>;
|
|
12
12
|
}
|
|
@@ -19,4 +19,9 @@ export interface HostToRemoteConnection {
|
|
|
19
19
|
version: number;
|
|
20
20
|
thread: ThreadIframe<RemoteExports, HostExports>;
|
|
21
21
|
}
|
|
22
|
+
export declare enum Version {
|
|
23
|
+
vUnknown = 0,
|
|
24
|
+
v1 = 1,
|
|
25
|
+
v2 = 2
|
|
26
|
+
}
|
|
22
27
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/connection/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEzE,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,W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|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-core",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.174",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"remeda": "^2.21.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
34
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.174",
|
|
35
35
|
"@mittwald/typescript-config": "",
|
|
36
36
|
"@types/node": "^22.13.10",
|
|
37
37
|
"nx": "^20.5.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"optional": true
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "98d92e04e8c81aaabb554bd76608d848cc46867e"
|
|
56
56
|
}
|