@dimina-kit/devtools 0.4.0-dev.20260824071518 → 0.4.0-dev.20260828092243
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/main/api.d.ts +1 -1
- package/dist/main/app/app.js +55 -2
- package/dist/main/index.bundle.js +887 -234
- package/dist/main/ipc/index.d.ts +2 -0
- package/dist/main/ipc/index.js +2 -0
- package/dist/main/ipc/popover.js +1 -1
- package/dist/main/ipc/project-create.d.ts +15 -0
- package/dist/main/ipc/project-create.js +26 -0
- package/dist/main/ipc/projects.d.ts +1 -1
- package/dist/main/ipc/projects.js +11 -0
- package/dist/main/ipc/settings.js +2 -1
- package/dist/main/ipc/simulator-module.d.ts +4 -3
- package/dist/main/ipc/simulator-module.js +4 -5
- package/dist/main/ipc/tooltip.js +1 -1
- package/dist/main/ipc/views.d.ts +15 -1
- package/dist/main/ipc/views.js +61 -4
- package/dist/main/runtime/miniapp-runtime.d.ts +87 -19
- package/dist/main/services/notifications/renderer-notifier.d.ts +30 -1
- package/dist/main/services/notifications/renderer-notifier.js +23 -1
- package/dist/main/services/projects/project-repository.d.ts +4 -1
- package/dist/main/services/projects/project-repository.js +63 -5
- package/dist/main/services/update/update-manager.d.ts +17 -3
- package/dist/main/services/update/update-manager.js +25 -6
- package/dist/main/services/views/host-dialog-port-channel.d.ts +18 -0
- package/dist/main/services/views/host-dialog-port-channel.js +15 -0
- package/dist/main/services/views/host-dialog-session-runtime.d.ts +10 -0
- package/dist/main/services/views/host-dialog-session-runtime.js +17 -0
- package/dist/main/services/views/host-dialog-view.d.ts +95 -0
- package/dist/main/services/views/host-dialog-view.js +147 -0
- package/dist/main/services/views/host-sidebar-port-channel.d.ts +18 -0
- package/dist/main/services/views/host-sidebar-port-channel.js +15 -0
- package/dist/main/services/views/host-sidebar-session-runtime.d.ts +10 -0
- package/dist/main/services/views/host-sidebar-session-runtime.js +17 -0
- package/dist/main/services/views/host-sidebar-view.d.ts +59 -0
- package/dist/main/services/views/host-sidebar-view.js +44 -0
- package/dist/main/services/views/host-slot-port-channel.d.ts +107 -0
- package/dist/main/services/views/host-slot-port-channel.js +261 -0
- package/dist/main/services/views/host-slot-session-runtime.d.ts +40 -0
- package/dist/main/services/views/host-slot-session-runtime.js +50 -0
- package/dist/main/services/views/host-slot-view.d.ts +109 -0
- package/dist/main/services/views/host-slot-view.js +147 -0
- package/dist/main/services/views/host-toolbar-port-channel.d.ts +6 -91
- package/dist/main/services/views/host-toolbar-port-channel.js +10 -243
- package/dist/main/services/views/host-toolbar-session-runtime.d.ts +5 -30
- package/dist/main/services/views/host-toolbar-session-runtime.js +9 -47
- package/dist/main/services/views/host-toolbar-view.d.ts +34 -7
- package/dist/main/services/views/host-toolbar-view.js +30 -224
- package/dist/main/services/views/managed-web-contents-view.d.ts +48 -0
- package/dist/main/services/views/managed-web-contents-view.js +123 -0
- package/dist/main/services/views/overlay-panels-view.d.ts +23 -0
- package/dist/main/services/views/overlay-panels-view.js +93 -4
- package/dist/main/services/views/placement-reconciler.d.ts +14 -2
- package/dist/main/services/views/placement-reconciler.js +27 -0
- package/dist/main/services/views/placement-test-driver.d.ts +1 -0
- package/dist/main/services/views/placement-test-driver.js +3 -0
- package/dist/main/services/views/view-manager-devtools-host-test-fixtures.js +3 -1
- package/dist/main/services/views/view-manager.d.ts +10 -78
- package/dist/main/services/views/view-manager.js +34 -3
- package/dist/main/utils/paths.d.ts +4 -0
- package/dist/main/utils/paths.js +4 -0
- package/dist/main/utils/sender-policy.js +10 -0
- package/dist/native-host/common/common.js +65 -62
- package/dist/native-host/render/render.js +2230 -2052
- package/dist/native-host/service/service.js +2 -2
- package/dist/preload/runtime/host-dialog-advertiser.d.ts +22 -0
- package/dist/preload/runtime/host-dialog-advertiser.js +37 -0
- package/dist/preload/runtime/host-dialog-port.d.ts +44 -0
- package/dist/preload/runtime/host-dialog-port.js +53 -0
- package/dist/preload/runtime/host-dialog-runtime.d.ts +28 -0
- package/dist/preload/runtime/host-dialog-runtime.js +36 -0
- package/dist/preload/runtime/host-sidebar-advertiser.d.ts +19 -0
- package/dist/preload/runtime/host-sidebar-advertiser.js +35 -0
- package/dist/preload/runtime/host-sidebar-port.d.ts +44 -0
- package/dist/preload/runtime/host-sidebar-port.js +53 -0
- package/dist/preload/runtime/host-sidebar-runtime.d.ts +28 -0
- package/dist/preload/runtime/host-sidebar-runtime.js +36 -0
- package/dist/preload/runtime/host-slot-port-bridge.d.ts +18 -0
- package/dist/preload/runtime/host-slot-port-bridge.js +112 -0
- package/dist/preload/runtime/host-toolbar-advertiser.d.ts +5 -13
- package/dist/preload/runtime/host-toolbar-advertiser.js +18 -38
- package/dist/preload/runtime/host-toolbar-port.d.ts +9 -0
- package/dist/preload/runtime/host-toolbar-port.js +11 -95
- package/dist/preload/runtime/wait-for-slot-root.d.ts +20 -0
- package/dist/preload/runtime/wait-for-slot-root.js +52 -0
- package/dist/preload/windows/host-dialog-runtime.cjs +353 -0
- package/dist/preload/windows/host-dialog-runtime.cjs.map +7 -0
- package/dist/preload/windows/host-dialog-runtime.d.ts +2 -0
- package/dist/preload/windows/host-dialog-runtime.js +13 -0
- package/dist/preload/windows/host-sidebar-runtime.cjs +354 -0
- package/dist/preload/windows/host-sidebar-runtime.cjs.map +7 -0
- package/dist/preload/windows/host-sidebar-runtime.d.ts +2 -0
- package/dist/preload/windows/host-sidebar-runtime.js +13 -0
- package/dist/preload/windows/host-toolbar-runtime.cjs +134 -51
- package/dist/preload/windows/host-toolbar-runtime.cjs.map +3 -3
- package/dist/preload/windows/simulator.cjs.map +1 -1
- package/dist/renderer/assets/button-DsNqZm7o.js +2 -0
- package/dist/renderer/assets/constants-D7DfVqMp.js +2 -0
- package/dist/renderer/assets/constants-D8zsejFq.js +2 -0
- package/dist/renderer/assets/createLucideIcon-CYJeT1ji.js +2 -0
- package/dist/renderer/assets/dialog-pT4qWmka.js +46 -0
- package/dist/renderer/assets/dist-o70xmpc1.js +2 -0
- package/dist/renderer/assets/hostSidebarDefault-NvGZlE9O.js +2 -0
- package/dist/renderer/assets/index-zErhG3ta.js +5 -0
- package/dist/renderer/assets/input-4QxTXMZN.js +2 -0
- package/dist/renderer/assets/ipc-channels-overlays-Blr5TNoB.js +2 -0
- package/dist/renderer/assets/jsx-runtime-B-3rq1y5.css +1 -0
- package/dist/renderer/assets/jsx-runtime-CqVdW3eg.js +9 -0
- package/dist/renderer/assets/popover-CJiSWwuE.js +2 -0
- package/dist/renderer/assets/project-api-DZ1Zi6EC.js +2 -0
- package/dist/renderer/assets/projectCreateDialog-DMWNhw_1.js +2 -0
- package/dist/renderer/assets/select-C86pNcsu.js +2 -0
- package/dist/renderer/assets/settings-BoI8mLT1.js +2 -0
- package/dist/renderer/assets/settings-api-Bs_g4NHs.js +2 -0
- package/dist/renderer/assets/settings-tab-bar-DHLLygqv.js +2 -0
- package/dist/renderer/assets/tooltip-BhAyY0T4.js +2 -0
- package/dist/renderer/assets/types-YYjkvane.js +2 -0
- package/dist/renderer/assets/updateDialog-DPum3wx1.js +2 -0
- package/dist/renderer/assets/utils-kfQov6Pa.js +2 -0
- package/dist/renderer/assets/view-api-DFhb2R8-.js +2 -0
- package/dist/renderer/assets/{workbenchSettings-oq_EyfKf.js → workbenchSettings-DrajRQUk.js} +3 -3
- package/dist/renderer/entries/host-sidebar-default/index.html +21 -0
- package/dist/renderer/entries/main/index.html +15 -8
- package/dist/renderer/entries/popover/index.html +10 -7
- package/dist/renderer/entries/project-create-dialog/index.html +27 -0
- package/dist/renderer/entries/settings/index.html +10 -7
- package/dist/renderer/entries/tooltip/index.html +5 -4
- package/dist/renderer/entries/update-dialog/index.html +25 -0
- package/dist/renderer/entries/workbench-settings/index.html +11 -7
- package/dist/service-host/preload.cjs +10 -0
- package/dist/shared/constants.d.ts +22 -0
- package/dist/shared/constants.js +22 -0
- package/dist/shared/ipc-channels-overlays.d.ts +156 -0
- package/dist/shared/ipc-channels-overlays.js +186 -0
- package/dist/shared/ipc-channels.d.ts +0 -77
- package/dist/shared/ipc-channels.js +0 -98
- package/dist/shared/ipc-schemas.d.ts +33 -0
- package/dist/shared/ipc-schemas.js +41 -0
- package/dist/shared/types.d.ts +10 -0
- package/dist/shared/view-ids.d.ts +7 -0
- package/dist/shared/view-ids.js +10 -0
- package/package.json +8 -8
- package/dist/renderer/assets/constants-Bdz0LHdy.js +0 -2
- package/dist/renderer/assets/index-CtznrmHR.js +0 -49
- package/dist/renderer/assets/input-Dmm6nob5.js +0 -2
- package/dist/renderer/assets/ipc-transport-BOg0gR9W.js +0 -9
- package/dist/renderer/assets/ipc-transport-DgQhZaE9.css +0 -1
- package/dist/renderer/assets/popover-Cd1FEGOX.js +0 -2
- package/dist/renderer/assets/select-BaYox7If.js +0 -2
- package/dist/renderer/assets/settings-BXvwuFaz.js +0 -2
- package/dist/renderer/assets/settings-api-Bo9GbYqs.js +0 -2
- package/dist/renderer/assets/settings-tab-bar-Beia6lMr.js +0 -2
- package/dist/renderer/assets/tooltip-DfQqK3Sk.js +0 -2
- package/dist/renderer/assets/view-api-nn69je7A.js +0 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<!-- See main/index.html for CSP rationale. -->
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: http: https:; font-src 'self' data:; media-src 'self' blob: http: https:; connect-src 'self' http: https: ws: wss:;" />
|
|
7
|
+
<title>Host Sidebar</title>
|
|
8
|
+
<style>
|
|
9
|
+
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
|
|
10
|
+
#root { height: 100%; }
|
|
11
|
+
</style>
|
|
12
|
+
<script type="module" crossorigin src="../../assets/hostSidebarDefault-NvGZlE9O.js"></script>
|
|
13
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="../../assets/createLucideIcon-CYJeT1ji.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/types-YYjkvane.js">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="root"></div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -26,14 +26,21 @@
|
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
}
|
|
28
28
|
</style>
|
|
29
|
-
<script type="module" crossorigin src="../../assets/index-
|
|
30
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
31
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
32
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
33
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
34
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
35
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
36
|
-
<link rel="
|
|
29
|
+
<script type="module" crossorigin src="../../assets/index-zErhG3ta.js"></script>
|
|
30
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
31
|
+
<link rel="modulepreload" crossorigin href="../../assets/utils-kfQov6Pa.js">
|
|
32
|
+
<link rel="modulepreload" crossorigin href="../../assets/button-DsNqZm7o.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="../../assets/createLucideIcon-CYJeT1ji.js">
|
|
34
|
+
<link rel="modulepreload" crossorigin href="../../assets/types-YYjkvane.js">
|
|
35
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
36
|
+
<link rel="modulepreload" crossorigin href="../../assets/project-api-DZ1Zi6EC.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-api-Bs_g4NHs.js">
|
|
38
|
+
<link rel="modulepreload" crossorigin href="../../assets/view-api-DFhb2R8-.js">
|
|
39
|
+
<link rel="modulepreload" crossorigin href="../../assets/input-4QxTXMZN.js">
|
|
40
|
+
<link rel="modulepreload" crossorigin href="../../assets/select-C86pNcsu.js">
|
|
41
|
+
<link rel="modulepreload" crossorigin href="../../assets/constants-D8zsejFq.js">
|
|
42
|
+
<link rel="modulepreload" crossorigin href="../../assets/constants-D7DfVqMp.js">
|
|
43
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
37
44
|
</head>
|
|
38
45
|
<body>
|
|
39
46
|
<div id="root"></div>
|
|
@@ -8,13 +8,16 @@
|
|
|
8
8
|
<style>
|
|
9
9
|
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: transparent !important; }
|
|
10
10
|
</style>
|
|
11
|
-
<script type="module" crossorigin src="../../assets/popover-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
13
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
14
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
15
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
16
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
17
|
-
<link rel="
|
|
11
|
+
<script type="module" crossorigin src="../../assets/popover-CJiSWwuE.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="../../assets/utils-kfQov6Pa.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="../../assets/button-DsNqZm7o.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="../../assets/view-api-DFhb2R8-.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="../../assets/input-4QxTXMZN.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="../../assets/select-C86pNcsu.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="../../assets/constants-D7DfVqMp.js">
|
|
20
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
18
21
|
</head>
|
|
19
22
|
<body>
|
|
20
23
|
<div id="root"></div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<!-- See main/index.html for CSP rationale. -->
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: http: https:; font-src 'self' data:; media-src 'self' blob: http: https:; connect-src 'self' http: https: ws: wss:;" />
|
|
7
|
+
<title>Create Project</title>
|
|
8
|
+
<style>
|
|
9
|
+
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: transparent !important; }
|
|
10
|
+
</style>
|
|
11
|
+
<script type="module" crossorigin src="../../assets/projectCreateDialog-DMWNhw_1.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="../../assets/utils-kfQov6Pa.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="../../assets/button-DsNqZm7o.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/dist-o70xmpc1.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="../../assets/createLucideIcon-CYJeT1ji.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="../../assets/dialog-pT4qWmka.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="../../assets/project-api-DZ1Zi6EC.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="../../assets/view-api-DFhb2R8-.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="../../assets/input-4QxTXMZN.js">
|
|
22
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<div id="root"></div>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
@@ -11,13 +11,16 @@
|
|
|
11
11
|
closes the overlay — mirrors the popover entry. */
|
|
12
12
|
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: transparent !important; }
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="../../assets/settings-
|
|
15
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
16
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
17
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
18
|
-
<link rel="modulepreload" crossorigin href="../../assets/settings-tab-bar-
|
|
19
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
20
|
-
<link rel="
|
|
14
|
+
<script type="module" crossorigin src="../../assets/settings-BoI8mLT1.js"></script>
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="../../assets/dist-o70xmpc1.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="../../assets/utils-kfQov6Pa.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-tab-bar-DHLLygqv.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-api-Bs_g4NHs.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="../../assets/view-api-DFhb2R8-.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="../../assets/input-4QxTXMZN.js">
|
|
23
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
21
24
|
</head>
|
|
22
25
|
<body>
|
|
23
26
|
<div id="root"></div>
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
html, body { margin: 0; padding: 0; width: -moz-max-content; width: max-content; height: -moz-max-content; height: max-content; overflow: hidden; background: transparent !important; }
|
|
10
10
|
#root { width: -moz-max-content; width: max-content; height: -moz-max-content; height: max-content; display: block; overflow: visible; }
|
|
11
11
|
</style>
|
|
12
|
-
<script type="module" crossorigin src="../../assets/tooltip-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
14
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
15
|
-
<link rel="
|
|
12
|
+
<script type="module" crossorigin src="../../assets/tooltip-BhAyY0T4.js"></script>
|
|
13
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/view-api-DFhb2R8-.js">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
16
17
|
</head>
|
|
17
18
|
<body>
|
|
18
19
|
<div id="root"></div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<!-- See main/index.html for CSP rationale. -->
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: http: https:; font-src 'self' data:; media-src 'self' blob: http: https:; connect-src 'self' http: https: ws: wss:;" />
|
|
7
|
+
<title>Update Available</title>
|
|
8
|
+
<style>
|
|
9
|
+
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: transparent !important; }
|
|
10
|
+
</style>
|
|
11
|
+
<script type="module" crossorigin src="../../assets/updateDialog-DPum3wx1.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="../../assets/utils-kfQov6Pa.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="../../assets/button-DsNqZm7o.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/dist-o70xmpc1.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="../../assets/createLucideIcon-CYJeT1ji.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="../../assets/dialog-pT4qWmka.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="../../assets/view-api-DFhb2R8-.js">
|
|
20
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
21
|
+
</head>
|
|
22
|
+
<body>
|
|
23
|
+
<div id="root"></div>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
@@ -6,13 +6,17 @@
|
|
|
6
6
|
<!-- See entries/main/index.html for CSP rationale. -->
|
|
7
7
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: http: https:; font-src 'self' data:; media-src 'self' blob: http: https:; connect-src 'self' http: https: ws: wss:;" />
|
|
8
8
|
<title>开发工具设置</title>
|
|
9
|
-
<script type="module" crossorigin src="../../assets/workbenchSettings-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
11
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
12
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
13
|
-
<link rel="modulepreload" crossorigin href="../../assets/settings-tab-bar-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="../../assets/
|
|
15
|
-
<link rel="
|
|
9
|
+
<script type="module" crossorigin src="../../assets/workbenchSettings-DrajRQUk.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="../../assets/jsx-runtime-CqVdW3eg.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="../../assets/dist-o70xmpc1.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="../../assets/utils-kfQov6Pa.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-tab-bar-DHLLygqv.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="../../assets/button-DsNqZm7o.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-channels-overlays-Blr5TNoB.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-api-Bs_g4NHs.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="../../assets/input-4QxTXMZN.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="../../assets/constants-D7DfVqMp.js">
|
|
19
|
+
<link rel="stylesheet" crossorigin href="../../assets/jsx-runtime-B-3rq1y5.css">
|
|
16
20
|
</head>
|
|
17
21
|
<body>
|
|
18
22
|
<div id="root"></div>
|
|
@@ -63,6 +63,16 @@ globalThis.__diminaApiNamespaces = apiNamespacesRaw
|
|
|
63
63
|
? apiNamespacesRaw.split(',').map((name) => name.trim()).filter(Boolean)
|
|
64
64
|
: []
|
|
65
65
|
|
|
66
|
+
// Host-registered custom API names (`ElectronRuntime.registerApi('joinIsland', ...)`
|
|
67
|
+
// etc.). service.js's `registerEnumerableApiNames()` installs these as real
|
|
68
|
+
// own-enumerable forwarding functions on `wx`/`dd` — its Proxy `get` trap
|
|
69
|
+
// deliberately returns `undefined` for anything not registered this way, so
|
|
70
|
+
// without this the names are silently unusable from mini-program logic.
|
|
71
|
+
const registeredApisRaw = params.get('registeredApis')
|
|
72
|
+
globalThis.__diminaRegisteredApis = registeredApisRaw
|
|
73
|
+
? registeredApisRaw.split(',').map((name) => name.trim()).filter(Boolean)
|
|
74
|
+
: []
|
|
75
|
+
|
|
66
76
|
// Live host-env updates (native-host device dropdown). The binding above is
|
|
67
77
|
// non-configurable, but the inner object's properties are writable — merge the
|
|
68
78
|
// pushed metrics into `hostEnvSnapshot` in place. `sync-impls/system-info.ts`
|
|
@@ -21,4 +21,26 @@ export declare const HEADER_H = 40;
|
|
|
21
21
|
* both guard wings are required).
|
|
22
22
|
*/
|
|
23
23
|
export declare const HOST_TOOLBAR_RUNTIME_MARKER = "--dimina-host-toolbar";
|
|
24
|
+
/**
|
|
25
|
+
* Same guard-marker contract as {@link HOST_TOOLBAR_RUNTIME_MARKER}, for the
|
|
26
|
+
* host-sidebar WebContentsView (`src/preload/runtime/host-sidebar-runtime.ts`).
|
|
27
|
+
*/
|
|
28
|
+
export declare const HOST_SIDEBAR_RUNTIME_MARKER = "--dimina-host-sidebar";
|
|
29
|
+
/**
|
|
30
|
+
* Same guard-marker contract as {@link HOST_TOOLBAR_RUNTIME_MARKER}, for the
|
|
31
|
+
* host-dialog WebContentsView (`src/preload/runtime/host-dialog-runtime.ts`).
|
|
32
|
+
*/
|
|
33
|
+
export declare const HOST_DIALOG_RUNTIME_MARKER = "--dimina-host-dialog";
|
|
34
|
+
/**
|
|
35
|
+
* Intrinsic width (px) of devtools' own default host-sidebar content (the
|
|
36
|
+
* project-category icon rail). Single source of truth shared by the renderer
|
|
37
|
+
* (`host-sidebar-default.tsx`, which gives its `[data-host-sidebar-root]` this
|
|
38
|
+
* exact width so the width advertiser reports it) and anything in main that
|
|
39
|
+
* needs to reason about the default rail's size. The slot is NOT left pinned
|
|
40
|
+
* at this width: main pushes it once as a seed and immediately returns the
|
|
41
|
+
* slot to 'auto' (see `createDevtoolsRuntime`), so the rail — and any
|
|
42
|
+
* downstream `loadURL`/`loadFile` content that replaces it — advertises its
|
|
43
|
+
* own width from then on, exactly like any other host-sidebar content.
|
|
44
|
+
*/
|
|
45
|
+
export declare const HOST_SIDEBAR_DEFAULT_WIDTH = 56;
|
|
24
46
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/shared/constants.js
CHANGED
|
@@ -21,4 +21,26 @@ export const HEADER_H = 40;
|
|
|
21
21
|
* both guard wings are required).
|
|
22
22
|
*/
|
|
23
23
|
export const HOST_TOOLBAR_RUNTIME_MARKER = '--dimina-host-toolbar';
|
|
24
|
+
/**
|
|
25
|
+
* Same guard-marker contract as {@link HOST_TOOLBAR_RUNTIME_MARKER}, for the
|
|
26
|
+
* host-sidebar WebContentsView (`src/preload/runtime/host-sidebar-runtime.ts`).
|
|
27
|
+
*/
|
|
28
|
+
export const HOST_SIDEBAR_RUNTIME_MARKER = '--dimina-host-sidebar';
|
|
29
|
+
/**
|
|
30
|
+
* Same guard-marker contract as {@link HOST_TOOLBAR_RUNTIME_MARKER}, for the
|
|
31
|
+
* host-dialog WebContentsView (`src/preload/runtime/host-dialog-runtime.ts`).
|
|
32
|
+
*/
|
|
33
|
+
export const HOST_DIALOG_RUNTIME_MARKER = '--dimina-host-dialog';
|
|
34
|
+
/**
|
|
35
|
+
* Intrinsic width (px) of devtools' own default host-sidebar content (the
|
|
36
|
+
* project-category icon rail). Single source of truth shared by the renderer
|
|
37
|
+
* (`host-sidebar-default.tsx`, which gives its `[data-host-sidebar-root]` this
|
|
38
|
+
* exact width so the width advertiser reports it) and anything in main that
|
|
39
|
+
* needs to reason about the default rail's size. The slot is NOT left pinned
|
|
40
|
+
* at this width: main pushes it once as a seed and immediately returns the
|
|
41
|
+
* slot to 'auto' (see `createDevtoolsRuntime`), so the rail — and any
|
|
42
|
+
* downstream `loadURL`/`loadFile` content that replaces it — advertises its
|
|
43
|
+
* own width from then on, exactly like any other host-sidebar content.
|
|
44
|
+
*/
|
|
45
|
+
export const HOST_SIDEBAR_DEFAULT_WIDTH = 56;
|
|
24
46
|
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IPC channel name constants for dimina-devtools' overlay/panel
|
|
3
|
+
* WebContentsViews — layout slots (host-toolbar/host-sidebar/host-dialog),
|
|
4
|
+
* the popover, tooltip, project-create dialog and settings overlays, plus
|
|
5
|
+
* the update flow. Split out of `ipc-channels.ts` (see that file's header)
|
|
6
|
+
* once this group alone pushed it past the repo's file-length threshold —
|
|
7
|
+
* these constants share no runtime dependency on the rest of that file, so
|
|
8
|
+
* the split is a pure line-count relief valve, not a behavior change.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ViewChannel: {
|
|
11
|
+
/**
|
|
12
|
+
* Reverse size-advertiser: the host-toolbar WCV's OWN renderer advertises its
|
|
13
|
+
* intrinsic content height so main reserves exactly that much. Payload
|
|
14
|
+
* `{ axis: 'block', extent }`. fire-and-forget (send), NOT invoke.
|
|
15
|
+
*/
|
|
16
|
+
readonly HostToolbarAdvertiseHeight: "view:host-toolbar:advertise-height";
|
|
17
|
+
/**
|
|
18
|
+
* main → host-toolbar WCV renderer: per-load MessagePort handshake for the
|
|
19
|
+
* gated narrow channel. On every toolbar `did-finish-load` main creates a
|
|
20
|
+
* `MessageChannelMain` and transfers port2 here
|
|
21
|
+
* (`wc.postMessage(HostToolbarPort, null, [port2])`); the session-resident
|
|
22
|
+
* toolbar runtime preload receives it via `event.ports[0]` and bridges it to
|
|
23
|
+
* the page as `window.diminaHostToolbar`. Envelope both directions:
|
|
24
|
+
* `{ channel: string, payload: unknown }`.
|
|
25
|
+
*/
|
|
26
|
+
readonly HostToolbarPort: "view:host-toolbar:port";
|
|
27
|
+
/**
|
|
28
|
+
* main → main-window renderer: push the reserved host-toolbar height so the
|
|
29
|
+
* renderer placeholder div resizes (closing the dynamic-height loop).
|
|
30
|
+
*/
|
|
31
|
+
readonly HostToolbarHeightChanged: "view:host-toolbar:height-changed";
|
|
32
|
+
/**
|
|
33
|
+
* main ← main-window renderer (invoke): pull the last NOTIFIED toolbar
|
|
34
|
+
* height retained in main. Mount-time replay companion to
|
|
35
|
+
* `HostToolbarHeightChanged`: the push listener mounts with the project
|
|
36
|
+
* view and the toolbar's size-advertiser deduplicates (never re-reports),
|
|
37
|
+
* so a height pushed while no project view was mounted would otherwise be
|
|
38
|
+
* lost forever (cold start on the project list races it; close-project →
|
|
39
|
+
* reopen hits it deterministically). No payload; resolves a number.
|
|
40
|
+
*/
|
|
41
|
+
readonly HostToolbarGetHeight: "view:host-toolbar:get-height";
|
|
42
|
+
/**
|
|
43
|
+
* Reverse size-advertiser for the host-sidebar WCV, mirroring
|
|
44
|
+
* `HostToolbarAdvertiseHeight` on the inline (width) axis instead of block.
|
|
45
|
+
* Payload `{ axis: 'inline', extent }`. fire-and-forget (send), NOT invoke.
|
|
46
|
+
*/
|
|
47
|
+
readonly HostSidebarAdvertiseWidth: "view:host-sidebar:advertise-width";
|
|
48
|
+
/**
|
|
49
|
+
* main → host-sidebar WCV renderer: per-load MessagePort handshake, same
|
|
50
|
+
* contract as `HostToolbarPort` (see that entry).
|
|
51
|
+
*/
|
|
52
|
+
readonly HostSidebarPort: "view:host-sidebar:port";
|
|
53
|
+
/**
|
|
54
|
+
* main → main-window renderer: push the reserved host-sidebar width so the
|
|
55
|
+
* renderer placeholder div resizes, mirroring `HostToolbarHeightChanged`.
|
|
56
|
+
*/
|
|
57
|
+
readonly HostSidebarWidthChanged: "view:host-sidebar:width-changed";
|
|
58
|
+
/**
|
|
59
|
+
* main ← main-window renderer (invoke): pull the last NOTIFIED sidebar
|
|
60
|
+
* width, mirroring `HostToolbarGetHeight`'s mount-time replay role.
|
|
61
|
+
*/
|
|
62
|
+
readonly HostSidebarGetWidth: "view:host-sidebar:get-width";
|
|
63
|
+
/**
|
|
64
|
+
* main → main-window renderer: push the project category (`Project.type`)
|
|
65
|
+
* selected in the host-sidebar's content — devtools' own default icon rail,
|
|
66
|
+
* or any downstream replacement that sends on the same channel. No
|
|
67
|
+
* pull/replay companion like `HostSidebarGetWidth`: the default category is
|
|
68
|
+
* a stable initial value regardless of load-order, and nothing is ever sent
|
|
69
|
+
* before the main-window renderer (and thus `ProjectListScreen`) is already
|
|
70
|
+
* mounted.
|
|
71
|
+
*/
|
|
72
|
+
readonly HostSidebarCategorySelected: "view:host-sidebar:category-selected";
|
|
73
|
+
/**
|
|
74
|
+
* Reverse size-advertiser for the host-dialog WCV. Unlike the toolbar/sidebar
|
|
75
|
+
* (single-axis, `setBaseDesired`-placed strips), the dialog is a BOTH-AXES
|
|
76
|
+
* overlay positioned by `setOverlayDesired` — main centers it in the main
|
|
77
|
+
* window once it knows both dimensions. One channel carries either axis'
|
|
78
|
+
* report (`{ axis: 'block' | 'inline', extent }`); the dialog's own content
|
|
79
|
+
* advertises both from the same root (see `host-dialog-advertiser.ts`).
|
|
80
|
+
* fire-and-forget (send), NOT invoke.
|
|
81
|
+
*
|
|
82
|
+
* No `HostDialogSizeChanged` / `HostDialogGetSize` counterparts: those exist
|
|
83
|
+
* for toolbar/sidebar so a renderer-owned PLACEHOLDER can replay a size it
|
|
84
|
+
* missed. The dialog has no such placeholder — it is a main-driven overlay
|
|
85
|
+
* shown/hidden on demand (`hostDialog.show()`/`hide()`), so there is nothing
|
|
86
|
+
* in the renderer to replay a size into.
|
|
87
|
+
*/
|
|
88
|
+
readonly HostDialogAdvertiseSize: "view:host-dialog:advertise-size";
|
|
89
|
+
/**
|
|
90
|
+
* main → host-dialog WCV renderer: per-load MessagePort handshake, same
|
|
91
|
+
* contract as `HostToolbarPort` (see that entry).
|
|
92
|
+
*/
|
|
93
|
+
readonly HostDialogPort: "view:host-dialog:port";
|
|
94
|
+
/**
|
|
95
|
+
* Renderer → main: the window-level placement snapshot (one monotonic epoch
|
|
96
|
+
* per commit tick, one generation per renderer lifetime) that drives the view
|
|
97
|
+
* reconciler. The single source of truth for every managed native view's
|
|
98
|
+
* bounds/visibility/z-order — supersedes the per-view bounds channels above.
|
|
99
|
+
* invoke.
|
|
100
|
+
*/
|
|
101
|
+
readonly PlacementSnapshot: "view:placement-snapshot";
|
|
102
|
+
/**
|
|
103
|
+
* main ← main-window renderer (invoke): allocate a fresh placement
|
|
104
|
+
* generation seed for this renderer bootstrap. See
|
|
105
|
+
* renderer-placement-generation.ts for why the seed comes from main
|
|
106
|
+
* (a wall-clock `Date.now()` seed is not guaranteed to exceed main's
|
|
107
|
+
* still-standing high-water mark across two reloads that happen faster
|
|
108
|
+
* than the clock's resolution). No payload; resolves a number.
|
|
109
|
+
*/
|
|
110
|
+
readonly AllocatePlacementGeneration: "view:allocate-placement-generation";
|
|
111
|
+
};
|
|
112
|
+
export interface ViewBounds {
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
width: number;
|
|
116
|
+
height: number;
|
|
117
|
+
}
|
|
118
|
+
export declare const PopoverChannel: {
|
|
119
|
+
readonly Show: "popover:show";
|
|
120
|
+
readonly Hide: "popover:hide";
|
|
121
|
+
readonly Relaunch: "popover:relaunch";
|
|
122
|
+
readonly Closed: "popover:closed";
|
|
123
|
+
readonly Init: "popover:init";
|
|
124
|
+
};
|
|
125
|
+
export declare const OverlayChannel: {
|
|
126
|
+
readonly Ready: "overlay:ready";
|
|
127
|
+
};
|
|
128
|
+
export declare const TooltipChannel: {
|
|
129
|
+
readonly Prepare: "tooltip:prepare";
|
|
130
|
+
readonly Show: "tooltip:show";
|
|
131
|
+
readonly Hide: "tooltip:hide";
|
|
132
|
+
readonly Init: "tooltip:init";
|
|
133
|
+
readonly Measured: "tooltip:measured";
|
|
134
|
+
};
|
|
135
|
+
export declare const ProjectCreateChannel: {
|
|
136
|
+
readonly Show: "projectCreate:show";
|
|
137
|
+
readonly Init: "projectCreate:init";
|
|
138
|
+
readonly Submit: "projectCreate:submit";
|
|
139
|
+
readonly Cancel: "projectCreate:cancel";
|
|
140
|
+
readonly Submitted: "projectCreate:submitted";
|
|
141
|
+
};
|
|
142
|
+
export declare const SettingsChannel: {
|
|
143
|
+
readonly SetVisible: "settings:setVisible";
|
|
144
|
+
readonly ConfigChanged: "settings:configChanged";
|
|
145
|
+
readonly ProjectSettingsChanged: "settings:projectSettingsChanged";
|
|
146
|
+
readonly Init: "settings:init";
|
|
147
|
+
};
|
|
148
|
+
export declare const UpdateChannel: {
|
|
149
|
+
readonly Check: "updates:check";
|
|
150
|
+
readonly Download: "updates:download";
|
|
151
|
+
readonly Install: "updates:install";
|
|
152
|
+
readonly DownloadProgress: "updates:downloadProgress";
|
|
153
|
+
readonly Available: "updates:available";
|
|
154
|
+
readonly Close: "updates:close";
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=ipc-channels-overlays.d.ts.map
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IPC channel name constants for dimina-devtools' overlay/panel
|
|
3
|
+
* WebContentsViews — layout slots (host-toolbar/host-sidebar/host-dialog),
|
|
4
|
+
* the popover, tooltip, project-create dialog and settings overlays, plus
|
|
5
|
+
* the update flow. Split out of `ipc-channels.ts` (see that file's header)
|
|
6
|
+
* once this group alone pushed it past the repo's file-length threshold —
|
|
7
|
+
* these constants share no runtime dependency on the rest of that file, so
|
|
8
|
+
* the split is a pure line-count relief valve, not a behavior change.
|
|
9
|
+
*/
|
|
10
|
+
// ── Embedded views (renderer → main) ─────────────────────────────────────
|
|
11
|
+
//
|
|
12
|
+
// The main window's React layout owns the *positions* of the editor +
|
|
13
|
+
// simulator-DevTools WebContentsView overlays — each visible placeholder
|
|
14
|
+
// `<div>` measures its client rect via ResizeObserver and pushes the
|
|
15
|
+
// rectangle to the main process. The view manager caches the latest
|
|
16
|
+
// payload per kind and applies it to the overlay; no payload means the
|
|
17
|
+
// overlay is hidden.
|
|
18
|
+
//
|
|
19
|
+
// Payload (after schema validation): `{ x, y, width, height }` in CSS
|
|
20
|
+
// pixels relative to the window's content area (origin = top-left,
|
|
21
|
+
// not including the OS chrome).
|
|
22
|
+
export const ViewChannel = {
|
|
23
|
+
/**
|
|
24
|
+
* Reverse size-advertiser: the host-toolbar WCV's OWN renderer advertises its
|
|
25
|
+
* intrinsic content height so main reserves exactly that much. Payload
|
|
26
|
+
* `{ axis: 'block', extent }`. fire-and-forget (send), NOT invoke.
|
|
27
|
+
*/
|
|
28
|
+
HostToolbarAdvertiseHeight: 'view:host-toolbar:advertise-height',
|
|
29
|
+
/**
|
|
30
|
+
* main → host-toolbar WCV renderer: per-load MessagePort handshake for the
|
|
31
|
+
* gated narrow channel. On every toolbar `did-finish-load` main creates a
|
|
32
|
+
* `MessageChannelMain` and transfers port2 here
|
|
33
|
+
* (`wc.postMessage(HostToolbarPort, null, [port2])`); the session-resident
|
|
34
|
+
* toolbar runtime preload receives it via `event.ports[0]` and bridges it to
|
|
35
|
+
* the page as `window.diminaHostToolbar`. Envelope both directions:
|
|
36
|
+
* `{ channel: string, payload: unknown }`.
|
|
37
|
+
*/
|
|
38
|
+
HostToolbarPort: 'view:host-toolbar:port',
|
|
39
|
+
/**
|
|
40
|
+
* main → main-window renderer: push the reserved host-toolbar height so the
|
|
41
|
+
* renderer placeholder div resizes (closing the dynamic-height loop).
|
|
42
|
+
*/
|
|
43
|
+
HostToolbarHeightChanged: 'view:host-toolbar:height-changed',
|
|
44
|
+
/**
|
|
45
|
+
* main ← main-window renderer (invoke): pull the last NOTIFIED toolbar
|
|
46
|
+
* height retained in main. Mount-time replay companion to
|
|
47
|
+
* `HostToolbarHeightChanged`: the push listener mounts with the project
|
|
48
|
+
* view and the toolbar's size-advertiser deduplicates (never re-reports),
|
|
49
|
+
* so a height pushed while no project view was mounted would otherwise be
|
|
50
|
+
* lost forever (cold start on the project list races it; close-project →
|
|
51
|
+
* reopen hits it deterministically). No payload; resolves a number.
|
|
52
|
+
*/
|
|
53
|
+
HostToolbarGetHeight: 'view:host-toolbar:get-height',
|
|
54
|
+
/**
|
|
55
|
+
* Reverse size-advertiser for the host-sidebar WCV, mirroring
|
|
56
|
+
* `HostToolbarAdvertiseHeight` on the inline (width) axis instead of block.
|
|
57
|
+
* Payload `{ axis: 'inline', extent }`. fire-and-forget (send), NOT invoke.
|
|
58
|
+
*/
|
|
59
|
+
HostSidebarAdvertiseWidth: 'view:host-sidebar:advertise-width',
|
|
60
|
+
/**
|
|
61
|
+
* main → host-sidebar WCV renderer: per-load MessagePort handshake, same
|
|
62
|
+
* contract as `HostToolbarPort` (see that entry).
|
|
63
|
+
*/
|
|
64
|
+
HostSidebarPort: 'view:host-sidebar:port',
|
|
65
|
+
/**
|
|
66
|
+
* main → main-window renderer: push the reserved host-sidebar width so the
|
|
67
|
+
* renderer placeholder div resizes, mirroring `HostToolbarHeightChanged`.
|
|
68
|
+
*/
|
|
69
|
+
HostSidebarWidthChanged: 'view:host-sidebar:width-changed',
|
|
70
|
+
/**
|
|
71
|
+
* main ← main-window renderer (invoke): pull the last NOTIFIED sidebar
|
|
72
|
+
* width, mirroring `HostToolbarGetHeight`'s mount-time replay role.
|
|
73
|
+
*/
|
|
74
|
+
HostSidebarGetWidth: 'view:host-sidebar:get-width',
|
|
75
|
+
/**
|
|
76
|
+
* main → main-window renderer: push the project category (`Project.type`)
|
|
77
|
+
* selected in the host-sidebar's content — devtools' own default icon rail,
|
|
78
|
+
* or any downstream replacement that sends on the same channel. No
|
|
79
|
+
* pull/replay companion like `HostSidebarGetWidth`: the default category is
|
|
80
|
+
* a stable initial value regardless of load-order, and nothing is ever sent
|
|
81
|
+
* before the main-window renderer (and thus `ProjectListScreen`) is already
|
|
82
|
+
* mounted.
|
|
83
|
+
*/
|
|
84
|
+
HostSidebarCategorySelected: 'view:host-sidebar:category-selected',
|
|
85
|
+
/**
|
|
86
|
+
* Reverse size-advertiser for the host-dialog WCV. Unlike the toolbar/sidebar
|
|
87
|
+
* (single-axis, `setBaseDesired`-placed strips), the dialog is a BOTH-AXES
|
|
88
|
+
* overlay positioned by `setOverlayDesired` — main centers it in the main
|
|
89
|
+
* window once it knows both dimensions. One channel carries either axis'
|
|
90
|
+
* report (`{ axis: 'block' | 'inline', extent }`); the dialog's own content
|
|
91
|
+
* advertises both from the same root (see `host-dialog-advertiser.ts`).
|
|
92
|
+
* fire-and-forget (send), NOT invoke.
|
|
93
|
+
*
|
|
94
|
+
* No `HostDialogSizeChanged` / `HostDialogGetSize` counterparts: those exist
|
|
95
|
+
* for toolbar/sidebar so a renderer-owned PLACEHOLDER can replay a size it
|
|
96
|
+
* missed. The dialog has no such placeholder — it is a main-driven overlay
|
|
97
|
+
* shown/hidden on demand (`hostDialog.show()`/`hide()`), so there is nothing
|
|
98
|
+
* in the renderer to replay a size into.
|
|
99
|
+
*/
|
|
100
|
+
HostDialogAdvertiseSize: 'view:host-dialog:advertise-size',
|
|
101
|
+
/**
|
|
102
|
+
* main → host-dialog WCV renderer: per-load MessagePort handshake, same
|
|
103
|
+
* contract as `HostToolbarPort` (see that entry).
|
|
104
|
+
*/
|
|
105
|
+
HostDialogPort: 'view:host-dialog:port',
|
|
106
|
+
/**
|
|
107
|
+
* Renderer → main: the window-level placement snapshot (one monotonic epoch
|
|
108
|
+
* per commit tick, one generation per renderer lifetime) that drives the view
|
|
109
|
+
* reconciler. The single source of truth for every managed native view's
|
|
110
|
+
* bounds/visibility/z-order — supersedes the per-view bounds channels above.
|
|
111
|
+
* invoke.
|
|
112
|
+
*/
|
|
113
|
+
PlacementSnapshot: 'view:placement-snapshot',
|
|
114
|
+
/**
|
|
115
|
+
* main ← main-window renderer (invoke): allocate a fresh placement
|
|
116
|
+
* generation seed for this renderer bootstrap. See
|
|
117
|
+
* renderer-placement-generation.ts for why the seed comes from main
|
|
118
|
+
* (a wall-clock `Date.now()` seed is not guaranteed to exceed main's
|
|
119
|
+
* still-standing high-water mark across two reloads that happen faster
|
|
120
|
+
* than the clock's resolution). No payload; resolves a number.
|
|
121
|
+
*/
|
|
122
|
+
AllocatePlacementGeneration: 'view:allocate-placement-generation',
|
|
123
|
+
};
|
|
124
|
+
// ── Popover ──────────────────────────────────────────────────────────────
|
|
125
|
+
export const PopoverChannel = {
|
|
126
|
+
Show: 'popover:show',
|
|
127
|
+
Hide: 'popover:hide',
|
|
128
|
+
Relaunch: 'popover:relaunch',
|
|
129
|
+
Closed: 'popover:closed',
|
|
130
|
+
Init: 'popover:init',
|
|
131
|
+
};
|
|
132
|
+
// ── Tooltip ──────────────────────────────────────────────────────────────
|
|
133
|
+
//
|
|
134
|
+
// A top-tier overlay WebContentsView (VIEW_LAYER.tooltip — see view-ids.ts),
|
|
135
|
+
// NOT a DOM tooltip in the main renderer: any DOM-portaled floating UI (Radix
|
|
136
|
+
// Tooltip) or the browser-native `title` attribute lives in the main
|
|
137
|
+
// renderer's own paint surface, which every other WCV (simulator, editor,
|
|
138
|
+
// settings, popover) renders on top of — CSS cannot reach across that
|
|
139
|
+
// boundary. A trigger reports its anchor rect + label; main computes the
|
|
140
|
+
// tooltip's screen bounds and shows/repositions/hides this overlay.
|
|
141
|
+
export const OverlayChannel = {
|
|
142
|
+
Ready: 'overlay:ready',
|
|
143
|
+
};
|
|
144
|
+
export const TooltipChannel = {
|
|
145
|
+
Prepare: 'tooltip:prepare',
|
|
146
|
+
Show: 'tooltip:show',
|
|
147
|
+
Hide: 'tooltip:hide',
|
|
148
|
+
Init: 'tooltip:init',
|
|
149
|
+
Measured: 'tooltip:measured',
|
|
150
|
+
};
|
|
151
|
+
// ── Project-create dialog ───────────────────────────────────────────────
|
|
152
|
+
//
|
|
153
|
+
// A top-tier overlay WebContentsView (VIEW_LAYER.dialog), NOT the Radix
|
|
154
|
+
// `fixed inset-0` DOM portal it replaced — a DOM overlay paints inside the
|
|
155
|
+
// main window's own renderer, so any native WebContentsView mounted on top
|
|
156
|
+
// (simulator, host-toolbar, host-sidebar) occludes it. main.tsx fetches the
|
|
157
|
+
// template catalog + base-dir defaults, then asks main to show this panel;
|
|
158
|
+
// the panel relays submit/cancel back to main.tsx to run the existing
|
|
159
|
+
// scaffold flow.
|
|
160
|
+
export const ProjectCreateChannel = {
|
|
161
|
+
Show: 'projectCreate:show',
|
|
162
|
+
Init: 'projectCreate:init',
|
|
163
|
+
Submit: 'projectCreate:submit',
|
|
164
|
+
Cancel: 'projectCreate:cancel',
|
|
165
|
+
Submitted: 'projectCreate:submitted',
|
|
166
|
+
};
|
|
167
|
+
// ── Embedded settings overlay ────────────────────────────────────────────
|
|
168
|
+
export const SettingsChannel = {
|
|
169
|
+
SetVisible: 'settings:setVisible',
|
|
170
|
+
ConfigChanged: 'settings:configChanged',
|
|
171
|
+
ProjectSettingsChanged: 'settings:projectSettingsChanged',
|
|
172
|
+
Init: 'settings:init',
|
|
173
|
+
};
|
|
174
|
+
// ── Updates (UpdateManager) ──────────────────────────────────────────────
|
|
175
|
+
//
|
|
176
|
+
// String values are FROZEN: shipped builds key off them. Add new entries
|
|
177
|
+
// here, never rename existing ones.
|
|
178
|
+
export const UpdateChannel = {
|
|
179
|
+
Check: 'updates:check',
|
|
180
|
+
Download: 'updates:download',
|
|
181
|
+
Install: 'updates:install',
|
|
182
|
+
DownloadProgress: 'updates:downloadProgress',
|
|
183
|
+
Available: 'updates:available',
|
|
184
|
+
Close: 'updates:close',
|
|
185
|
+
};
|
|
186
|
+
//# sourceMappingURL=ipc-channels-overlays.js.map
|