@coasys/ad4m-connect 0.12.0 → 0.13.0-postmessage-ws-proxy.0
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/PostMessageWebSocket.d.ts +26 -0
- package/dist/components/icons/CheckCircleIcon.d.ts +1 -0
- package/dist/components/icons/MapPinIcon.d.ts +1 -0
- package/dist/components/icons/TickIcon.d.ts +1 -0
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/shared/Ad4mLogo.d.ts +1 -0
- package/dist/components/shared/AppLogo.d.ts +1 -0
- package/dist/components/shared/Header.d.ts +1 -0
- package/dist/components/shared/Logo.d.ts +1 -0
- package/dist/components/states/ErrorState.d.ts +6 -0
- package/dist/components/views/ConnectionOptions.d.ts +2 -7
- package/dist/components/views/ConnectionOverview.d.ts +22 -0
- package/dist/components/views/HostBrowser.d.ts +0 -1
- package/dist/components/views/HostDetail.d.ts +2 -1
- package/dist/components/views/Hosting.d.ts +22 -0
- package/dist/components/views/LocalAuthentication.d.ts +2 -1
- package/dist/components/views/LoggedInDashboard.d.ts +20 -2
- package/dist/components/views/MultiUserAuth.d.ts +26 -0
- package/dist/components/views/RemoteAuthentication.d.ts +7 -1
- package/dist/components/views/RemoteConnection.d.ts +19 -0
- package/dist/components/views/RequestCapability.d.ts +16 -0
- package/dist/components/views/ScanQRCode.d.ts +14 -0
- package/dist/components/views/Settings.d.ts +19 -0
- package/dist/components/views/Start.d.ts +19 -0
- package/dist/components/views/old/Hosting.d.ts +22 -0
- package/dist/components/views/old/MultiUserAuth.d.ts +26 -0
- package/dist/components/views/old/RemoteConnection.d.ts +19 -0
- package/dist/components/views/old/RequestCapability.d.ts +16 -0
- package/dist/components/views/old/ScanQRCode.d.ts +14 -0
- package/dist/components/views/old/Settings.d.ts +19 -0
- package/dist/components/views/old/Start.d.ts +19 -0
- package/dist/core.d.ts +23 -7
- package/dist/core.js +11323 -1545
- package/dist/core.js.map +7 -0
- package/dist/index.js +15175 -2293
- package/dist/index.js.map +7 -0
- package/dist/old/components/InvalidToken.d.ts +0 -0
- package/dist/old/components/VerifyCode.d.ts +0 -0
- package/dist/old/core.d.ts +0 -0
- package/dist/old/electron.d.ts +0 -0
- package/dist/old/state/ConnectState.d.ts +0 -0
- package/dist/old/state/index.d.ts +0 -0
- package/dist/old/utils.d.ts +0 -0
- package/dist/old/views/Hosting.d.ts +0 -0
- package/dist/old/views/MultiUserAuth.d.ts +0 -0
- package/dist/old/views/RemoteConnection.d.ts +0 -0
- package/dist/old/views/RequestCapability.d.ts +0 -0
- package/dist/old/views/ScanQRCode.d.ts +0 -0
- package/dist/old/views/Settings.d.ts +0 -0
- package/dist/old/views/Start.d.ts +0 -0
- package/dist/old/web.d.ts +0 -0
- package/dist/services/hostIndex.d.ts +2 -2
- package/dist/state/ConnectState.d.ts +101 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/types.d.ts +38 -0
- package/dist/utils.d.ts +8 -1
- package/dist/utils.js +99 -1
- package/dist/utils.js.map +7 -0
- package/dist/web.d.ts +22 -2
- package/dist/web.js +13592 -1947
- package/dist/web.js.map +7 -0
- package/package.json +9 -7
- package/public/dialog.html +0 -49
package/package.json
CHANGED
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
"dev": "NODE_ENV=dev && vite dev",
|
|
39
39
|
"serve": "npx serve",
|
|
40
40
|
"build": "pnpm run build:index && pnpm run build:core && pnpm run build:web && pnpm run build:utils && tsc",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest",
|
|
41
43
|
"build:index": "tsc --project tsconfig.json && node scripts/esbuild_index.js",
|
|
42
44
|
"build:core": "tsc --project tsconfig.json && node scripts/esbuild.js",
|
|
43
45
|
"build:web": "tsc --project tsconfig.json && node scripts/esbuild_web.js",
|
|
@@ -48,23 +50,23 @@
|
|
|
48
50
|
"email": "nicolas@coasys.org"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
|
-
"@coasys/ad4m": "workspace:0.
|
|
52
|
-
"@apollo/client": "3.7.10",
|
|
53
|
+
"@coasys/ad4m": "workspace:0.13.0-test-6",
|
|
53
54
|
"@types/node": "^16.11.11",
|
|
54
55
|
"esbuild": "^0.15.5",
|
|
56
|
+
"esbuild-plugin-copy": "^2.1.1",
|
|
55
57
|
"esbuild-plugin-lit": "^0.0.10",
|
|
56
|
-
"
|
|
58
|
+
"esbuild-plugin-replace": "^1.4.0",
|
|
57
59
|
"np": "^7.6.2",
|
|
58
60
|
"npm-run-all": "^4.1.5",
|
|
59
61
|
"typescript": "^4.6.2",
|
|
60
|
-
"vite": "^4.1.1"
|
|
62
|
+
"vite": "^4.1.1",
|
|
63
|
+
"vitest": "^1.6.0",
|
|
64
|
+
"happy-dom": "^14.0.0"
|
|
61
65
|
},
|
|
62
66
|
"dependencies": {
|
|
63
67
|
"@undecaf/barcode-detector-polyfill": "^0.9.15",
|
|
64
68
|
"@undecaf/zbar-wasm": "^0.9.12",
|
|
65
69
|
"auto-bind": "^5.0.1",
|
|
66
|
-
"esbuild-plugin-copy": "^2.1.1",
|
|
67
|
-
"esbuild-plugin-replace": "^1.4.0",
|
|
68
70
|
"lit": "^2.3.1"
|
|
69
71
|
},
|
|
70
72
|
"publishConfig": {
|
|
@@ -72,5 +74,5 @@
|
|
|
72
74
|
"@coasys/ad4m": "*"
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
|
-
"version": "0.
|
|
77
|
+
"version": "0.13.0-postmessage-ws-proxy.0"
|
|
76
78
|
}
|
package/public/dialog.html
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
6
|
-
<title>AD4M Connection Wizard</title>
|
|
7
|
-
<link rel="icon" type="image/png" href="favicon.png" />
|
|
8
|
-
</head>
|
|
9
|
-
|
|
10
|
-
<body>
|
|
11
|
-
<div id="container"></div>
|
|
12
|
-
<script type="module">
|
|
13
|
-
const { ipcRenderer } = require("electron");
|
|
14
|
-
|
|
15
|
-
import { getForVersion } from "../src/utils";
|
|
16
|
-
import Ad4mConnectUI from "../dist/web.js";
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
appName,
|
|
20
|
-
appDesc = "",
|
|
21
|
-
appDomain = "",
|
|
22
|
-
appIconPath,
|
|
23
|
-
executorUrl,
|
|
24
|
-
capabilityToken,
|
|
25
|
-
capabilities,
|
|
26
|
-
} = ipcRenderer.sendSync("get");
|
|
27
|
-
|
|
28
|
-
const ui = Ad4mConnectUI({
|
|
29
|
-
appName,
|
|
30
|
-
appDesc,
|
|
31
|
-
appDomain,
|
|
32
|
-
appIconPath,
|
|
33
|
-
capabilities,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
ui.connect();
|
|
37
|
-
|
|
38
|
-
ui.addEventListener("authstatechange", (e) => {
|
|
39
|
-
if (ui.authState === "authenticated") {
|
|
40
|
-
console.log(ui.token);
|
|
41
|
-
ipcRenderer.send("resolve", {
|
|
42
|
-
executorUrl,
|
|
43
|
-
capabilityToken: ui.token || getForVersion("ad4mtoken"),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
</script>
|
|
48
|
-
</body>
|
|
49
|
-
</html>
|