@dimina-kit/devtools 0.4.0 → 0.5.0-dev.20260908120530
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/README.md +51 -660
- package/dist/main/api.d.ts +2 -1
- package/dist/main/app/app.d.ts +41 -12
- package/dist/main/app/app.js +299 -514
- package/dist/main/app/bootstrap.d.ts +8 -5
- package/dist/main/app/bootstrap.js +15 -15
- package/dist/main/app/editor-view.d.ts +21 -0
- package/dist/main/app/editor-view.js +71 -0
- package/dist/main/app/global-mirrors.d.ts +23 -0
- package/dist/main/app/global-mirrors.js +37 -0
- package/dist/main/app/host-sidebar-default.d.ts +19 -0
- package/dist/main/app/host-sidebar-default.js +44 -0
- package/dist/main/app/lifecycle.d.ts +12 -1
- package/dist/main/app/lifecycle.js +27 -1
- package/dist/main/app/menu-setup.d.ts +13 -0
- package/dist/main/app/menu-setup.js +49 -0
- package/dist/main/app/native-overview.d.ts +1 -1
- package/dist/main/app/open-project-ipc.d.ts +13 -0
- package/dist/main/app/open-project-ipc.js +21 -0
- package/dist/main/app/project-list-surface.d.ts +31 -0
- package/dist/main/app/project-list-surface.js +20 -0
- package/dist/main/app/project-window.d.ts +36 -0
- package/dist/main/app/project-window.js +93 -0
- package/dist/main/app/servers.d.ts +17 -0
- package/dist/main/app/servers.js +60 -0
- package/dist/main/app/ui-extension-targets.d.ts +42 -0
- package/dist/main/app/ui-extension-targets.js +101 -0
- package/dist/main/app/window-close-reveal.harness.d.ts +34 -0
- package/dist/main/app/window-close-reveal.harness.js +65 -0
- package/dist/main/app/window-events.d.ts +15 -0
- package/dist/main/app/window-events.js +45 -0
- package/dist/main/app/window-runtime-services.d.ts +41 -0
- package/dist/main/app/window-runtime-services.js +197 -0
- package/dist/main/app/workbench-modules.d.ts +24 -0
- package/dist/main/app/workbench-modules.js +51 -0
- package/dist/main/app/workbench-window.d.ts +85 -0
- package/dist/main/app/workbench-window.js +310 -0
- package/dist/main/index.bundle.js +11712 -9986
- package/dist/main/index.js +49 -1
- package/dist/main/ipc/app-lifecycle.d.ts +1 -31
- package/dist/main/ipc/app-lifecycle.js +1 -53
- package/dist/main/ipc/app.d.ts +4 -1
- package/dist/main/ipc/app.js +4 -3
- package/dist/main/ipc/bridge-router.d.ts +19 -116
- package/dist/main/ipc/bridge-router.js +28 -2128
- package/dist/main/ipc/device-picker.d.ts +16 -0
- package/dist/main/ipc/device-picker.js +27 -0
- package/dist/main/ipc/index.d.ts +5 -0
- package/dist/main/ipc/index.js +5 -0
- package/dist/main/ipc/internal-devtools.d.ts +16 -0
- package/dist/main/ipc/internal-devtools.js +10 -0
- package/dist/main/ipc/page-scroll.d.ts +1 -13
- package/dist/main/ipc/page-scroll.js +1 -16
- package/dist/main/ipc/popover.d.ts +4 -1
- package/dist/main/ipc/popover.js +26 -19
- package/dist/main/ipc/project-create.d.ts +16 -0
- package/dist/main/ipc/project-create.js +27 -0
- package/dist/main/ipc/project-fs.d.ts +38 -3
- package/dist/main/ipc/project-fs.js +53 -22
- package/dist/main/ipc/projects.d.ts +3 -3
- package/dist/main/ipc/projects.js +47 -11
- package/dist/main/ipc/session-listener-bag.d.ts +1 -40
- package/dist/main/ipc/session-listener-bag.js +1 -39
- package/dist/main/ipc/session.d.ts +4 -1
- package/dist/main/ipc/session.js +26 -26
- package/dist/main/ipc/settings.d.ts +4 -1
- package/dist/main/ipc/settings.js +17 -19
- package/dist/main/ipc/simulator-module.d.ts +9 -3
- package/dist/main/ipc/simulator-module.js +13 -10
- package/dist/main/ipc/simulator.d.ts +4 -1
- package/dist/main/ipc/simulator.js +12 -18
- package/dist/main/ipc/tooltip.d.ts +14 -0
- package/dist/main/ipc/tooltip.js +29 -0
- package/dist/main/ipc/views.d.ts +19 -2
- package/dist/main/ipc/views.js +76 -8
- package/dist/main/runtime/devtools-backend-before-quit.harness.d.ts +43 -0
- package/dist/main/runtime/devtools-backend-before-quit.harness.js +87 -0
- package/dist/main/runtime/devtools-backend.js +60 -4
- package/dist/main/runtime/devtools-runtime-mock.harness.d.ts +21 -0
- package/dist/main/runtime/devtools-runtime-mock.harness.js +313 -0
- package/dist/main/runtime/miniapp-runtime.d.ts +91 -22
- package/dist/main/services/app-services.d.ts +62 -0
- package/dist/main/services/app-services.js +64 -0
- package/dist/main/services/automation/connection-target.d.ts +36 -0
- package/dist/main/services/automation/connection-target.js +29 -0
- package/dist/main/services/automation/console-bridge.d.ts +28 -0
- package/dist/main/services/automation/console-bridge.js +91 -0
- package/dist/main/services/automation/handlers/app.js +4 -4
- package/dist/main/services/automation/handlers/element.js +55 -21
- package/dist/main/services/automation/index.d.ts +12 -1
- package/dist/main/services/automation/index.js +54 -133
- package/dist/main/services/cdp-session/index.d.ts +87 -0
- package/dist/main/services/cdp-session/index.js +173 -0
- package/dist/main/services/compile-standby.js +4 -0
- package/dist/main/services/console-forward/cdp-inject.d.ts +18 -0
- package/dist/main/services/console-forward/cdp-inject.js +30 -0
- package/dist/main/services/console-forward/global-console-mirror.d.ts +33 -0
- package/dist/main/services/console-forward/global-console-mirror.js +71 -0
- package/dist/main/services/console-forward/global-diagnostics-mirror.d.ts +33 -0
- package/dist/main/services/console-forward/global-diagnostics-mirror.js +73 -0
- package/dist/main/services/console-forward/index.d.ts +1 -46
- package/dist/main/services/console-forward/index.js +1 -185
- package/dist/main/services/console-forward/internal-log.d.ts +2 -0
- package/dist/main/services/console-forward/internal-log.js +2 -0
- package/dist/main/services/console-forward/open-gated-relay.d.ts +67 -0
- package/dist/main/services/console-forward/open-gated-relay.js +55 -0
- package/dist/main/services/default-adapter.js +1 -1
- package/dist/main/services/diagnostics/index.d.ts +1 -48
- package/dist/main/services/diagnostics/index.js +1 -60
- package/dist/main/services/dimina-resource-server.d.ts +1 -6
- package/dist/main/services/dimina-resource-server.js +1 -98
- package/dist/main/services/elements-forward/index.d.ts +132 -15
- package/dist/main/services/elements-forward/index.js +155 -304
- package/dist/main/services/fs-bridge-protocol.d.ts +61 -0
- package/dist/main/services/fs-bridge-protocol.js +34 -0
- package/dist/main/services/fs-watch-sse.d.ts +40 -0
- package/dist/main/services/fs-watch-sse.js +113 -0
- package/dist/main/services/http-json.d.ts +9 -0
- package/dist/main/services/http-json.js +6 -0
- package/dist/main/services/layout/index.d.ts +11 -0
- package/dist/main/services/layout/index.js +23 -0
- package/dist/main/services/mcp/connection-owner.d.ts +38 -0
- package/dist/main/services/mcp/connection-owner.js +79 -0
- package/dist/main/services/mcp/index.d.ts +3 -1
- package/dist/main/services/mcp/index.js +4 -3
- package/dist/main/services/mcp/opened-project.d.ts +88 -0
- package/dist/main/services/mcp/opened-project.js +60 -0
- package/dist/main/services/mcp/server.d.ts +2 -1
- package/dist/main/services/mcp/server.js +29 -4
- package/dist/main/services/mcp/target-manager.d.ts +71 -23
- package/dist/main/services/mcp/target-manager.js +269 -138
- package/dist/main/services/mcp/target-selection.d.ts +47 -0
- package/dist/main/services/mcp/target-selection.js +71 -0
- package/dist/main/services/mcp/tools/context-tools.js +20 -5
- package/dist/main/services/mcp/tools/project-tools.d.ts +72 -0
- package/dist/main/services/mcp/tools/project-tools.js +133 -0
- package/dist/main/services/module.d.ts +13 -5
- package/dist/main/services/network-forward/body-cache.d.ts +72 -0
- package/dist/main/services/network-forward/body-cache.js +179 -0
- package/dist/main/services/network-forward/frontend-dispatch.d.ts +91 -0
- package/dist/main/services/network-forward/frontend-dispatch.js +148 -0
- package/dist/main/services/network-forward/global-body-gate.d.ts +46 -0
- package/dist/main/services/network-forward/global-body-gate.js +93 -0
- package/dist/main/services/network-forward/global-mirror-test-fixtures.d.ts +48 -0
- package/dist/main/services/network-forward/global-mirror-test-fixtures.js +96 -0
- package/dist/main/services/network-forward/http.d.ts +47 -0
- package/dist/main/services/network-forward/http.js +162 -0
- package/dist/main/services/network-forward/index.d.ts +135 -15
- package/dist/main/services/network-forward/index.js +854 -224
- package/dist/main/services/network-forward/request-ids.d.ts +5 -0
- package/dist/main/services/network-forward/request-ids.js +5 -0
- package/dist/main/services/network-forward/user-facing.d.ts +21 -0
- package/dist/main/services/network-forward/user-facing.js +50 -0
- package/dist/main/services/network-forward/websocket.d.ts +36 -0
- package/dist/main/services/network-forward/websocket.js +120 -0
- package/dist/main/services/notifications/renderer-notifier.d.ts +71 -9
- package/dist/main/services/notifications/renderer-notifier.js +45 -8
- package/dist/main/services/projects/create-project-service.js +19 -5
- package/dist/main/services/projects/local-provider.js +8 -4
- package/dist/main/services/projects/project-repository.d.ts +59 -7
- package/dist/main/services/projects/project-repository.js +285 -51
- package/dist/main/services/projects/types.d.ts +44 -34
- package/dist/main/services/render-inspect/index.d.ts +12 -2
- package/dist/main/services/render-inspect/index.js +21 -102
- package/dist/main/services/safe-area/index.d.ts +21 -6
- package/dist/main/services/safe-area/index.js +92 -46
- package/dist/main/services/service-host-pool/pool.d.ts +1 -196
- package/dist/main/services/service-host-pool/pool.js +1 -363
- package/dist/main/services/settings/index.d.ts +7 -1
- package/dist/main/services/settings/index.js +22 -2
- package/dist/main/services/simulator/custom-apis.d.ts +1 -42
- package/dist/main/services/simulator/custom-apis.js +1 -46
- package/dist/main/services/simulator/referer.d.ts +1 -9
- package/dist/main/services/simulator/referer.js +1 -19
- package/dist/main/services/simulator/ui-extensions.d.ts +21 -0
- package/dist/main/services/simulator/ui-extensions.js +176 -0
- package/dist/main/services/simulator-appdata/index.d.ts +6 -0
- package/dist/main/services/simulator-appdata/index.js +21 -2
- package/dist/main/services/simulator-current-page/index.d.ts +5 -3
- package/dist/main/services/simulator-current-page/index.js +8 -1
- package/dist/main/services/simulator-storage/index.d.ts +34 -5
- package/dist/main/services/simulator-storage/index.js +73 -71
- package/dist/main/services/simulator-storage/service-storage-ops.d.ts +1 -39
- package/dist/main/services/simulator-storage/service-storage-ops.js +1 -66
- package/dist/main/services/simulator-storage/window-scope.d.ts +20 -0
- package/dist/main/services/simulator-storage/window-scope.js +20 -0
- package/dist/main/services/simulator-temp-files/disk.d.ts +1 -54
- package/dist/main/services/simulator-temp-files/disk.js +1 -237
- package/dist/main/services/simulator-temp-files/fs-channels.d.ts +1 -68
- package/dist/main/services/simulator-temp-files/fs-channels.js +1 -107
- package/dist/main/services/simulator-temp-files/index.d.ts +1 -32
- package/dist/main/services/simulator-temp-files/index.js +1 -181
- package/dist/main/services/simulator-temp-files/request-handler.d.ts +1 -29
- package/dist/main/services/simulator-temp-files/request-handler.js +1 -177
- package/dist/main/services/simulator-temp-files/resolver.d.ts +1 -21
- package/dist/main/services/simulator-temp-files/resolver.js +1 -21
- package/dist/main/services/simulator-temp-files/store.d.ts +1 -13
- package/dist/main/services/simulator-temp-files/store.js +1 -23
- package/dist/main/services/update/github-release-checker.js +22 -3
- package/dist/main/services/update/update-manager.d.ts +21 -4
- package/dist/main/services/update/update-manager.js +55 -11
- package/dist/main/services/views/clear-console-filter.d.ts +44 -0
- package/dist/main/services/views/clear-console-filter.js +86 -0
- package/dist/main/services/views/console-filter-test-fixtures.d.ts +94 -0
- package/dist/main/services/views/console-filter-test-fixtures.js +82 -0
- package/dist/main/services/views/console-filter.d.ts +94 -0
- package/dist/main/services/views/console-filter.js +190 -0
- package/dist/main/services/views/devtools-tabs.d.ts +24 -4
- package/dist/main/services/views/devtools-tabs.js +40 -21
- package/dist/main/services/views/frontend-bootstrap-gate.d.ts +59 -0
- package/dist/main/services/views/frontend-bootstrap-gate.js +117 -0
- 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 +124 -0
- package/dist/main/services/views/host-slot-port-channel.js +289 -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 -237
- package/dist/main/services/views/managed-web-contents-view.d.ts +48 -0
- package/dist/main/services/views/managed-web-contents-view.js +143 -0
- package/dist/main/services/views/miniapp-partition.d.ts +1 -89
- package/dist/main/services/views/miniapp-partition.js +1 -158
- package/dist/main/services/views/native-simulator-devtools-host.js +206 -68
- package/dist/main/services/views/native-simulator-view.d.ts +6 -0
- package/dist/main/services/views/native-simulator-view.js +47 -40
- package/dist/main/services/views/native-view-tree.d.ts +25 -0
- package/dist/main/services/views/native-view-tree.js +69 -0
- package/dist/main/services/views/overlay-panels-view.d.ts +63 -4
- package/dist/main/services/views/overlay-panels-view.js +257 -108
- package/dist/main/services/views/placement-reconciler.d.ts +18 -18
- package/dist/main/services/views/placement-reconciler.js +91 -29
- package/dist/main/services/views/placement-test-driver.d.ts +27 -0
- package/dist/main/services/views/placement-test-driver.js +29 -0
- package/dist/main/services/views/refresh-styles.d.ts +10 -0
- package/dist/main/services/views/refresh-styles.js +57 -0
- package/dist/main/services/views/simulator-session-policy.d.ts +1 -27
- package/dist/main/services/views/simulator-session-policy.js +1 -98
- package/dist/main/services/views/view-manager-devtools-host-test-fixtures.d.ts +76 -0
- package/dist/main/services/views/view-manager-devtools-host-test-fixtures.js +184 -0
- package/dist/main/services/views/view-manager.d.ts +69 -88
- package/dist/main/services/views/view-manager.js +62 -7
- package/dist/main/services/views/workbench-view.d.ts +2 -0
- package/dist/main/services/views/workbench-view.js +104 -17
- package/dist/main/services/window-contexts/context-router.d.ts +36 -0
- package/dist/main/services/window-contexts/context-router.js +55 -0
- package/dist/main/services/workbench-coi-host.d.ts +52 -0
- package/dist/main/services/workbench-coi-host.js +227 -0
- package/dist/main/services/workbench-coi-server.d.ts +11 -0
- package/dist/main/services/workbench-coi-server.js +126 -126
- package/dist/main/services/workbench-coi-shutdown.d.ts +40 -0
- package/dist/main/services/workbench-coi-shutdown.js +69 -0
- package/dist/main/services/workbench-coi-static.d.ts +23 -0
- package/dist/main/services/workbench-coi-static.js +87 -0
- package/dist/main/services/workbench-context.d.ts +88 -8
- package/dist/main/services/workbench-context.js +54 -6
- package/dist/main/services/workspace/compile-log-buffer.d.ts +40 -0
- package/dist/main/services/workspace/compile-log-buffer.js +41 -0
- package/dist/main/services/workspace/compile-mode-adapter.d.ts +18 -0
- package/dist/main/services/workspace/compile-mode-adapter.js +57 -0
- package/dist/main/services/workspace/compile-mode-store.d.ts +25 -0
- package/dist/main/services/workspace/compile-mode-store.js +71 -0
- package/dist/main/services/workspace/open-project-guards.d.ts +16 -0
- package/dist/main/services/workspace/open-project-guards.js +42 -0
- package/dist/main/services/workspace/rebuild-status.d.ts +37 -0
- package/dist/main/services/workspace/rebuild-status.js +36 -0
- package/dist/main/services/workspace/session-status-store.d.ts +47 -0
- package/dist/main/services/workspace/session-status-store.js +73 -0
- package/dist/main/services/workspace/status-tap.d.ts +20 -0
- package/dist/main/services/workspace/status-tap.js +32 -0
- package/dist/main/services/workspace/workspace-compile-modes.d.ts +59 -0
- package/dist/main/services/workspace/workspace-compile-modes.js +93 -0
- package/dist/main/services/workspace/workspace-lifecycle-race.testutil.d.ts +22 -0
- package/dist/main/services/workspace/workspace-lifecycle-race.testutil.js +62 -0
- package/dist/main/services/workspace/workspace-referer.d.ts +17 -0
- package/dist/main/services/workspace/workspace-referer.js +26 -0
- package/dist/main/services/workspace/workspace-service.d.ts +7 -5
- package/dist/main/services/workspace/workspace-service.js +96 -135
- package/dist/main/services/workspace/workspace-thumbnails.d.ts +22 -0
- package/dist/main/services/workspace/workspace-thumbnails.js +67 -0
- package/dist/main/utils/ipc-context-source.d.ts +40 -0
- package/dist/main/utils/ipc-context-source.js +23 -0
- package/dist/main/utils/ipc-registry.d.ts +46 -21
- package/dist/main/utils/ipc-registry.js +166 -76
- package/dist/main/utils/paths.d.ts +18 -0
- package/dist/main/utils/paths.js +18 -0
- package/dist/main/utils/sender-policy.d.ts +10 -1
- package/dist/main/utils/sender-policy.js +42 -4
- package/dist/main/utils/theme.d.ts +18 -8
- package/dist/main/utils/theme.js +19 -9
- package/dist/main/windows/internal-devtools-window/index.d.ts +66 -0
- package/dist/main/windows/internal-devtools-window/index.js +160 -0
- package/dist/main/windows/main-window/create.d.ts +16 -0
- package/dist/main/windows/main-window/create.js +19 -11
- package/dist/main/windows/main-window/events.d.ts +1 -1
- package/dist/main/windows/main-window/events.js +26 -13
- package/dist/main/windows/main-window/index.d.ts +1 -1
- package/dist/main/windows/main-window/index.js +1 -1
- package/dist/main/windows/service-host-window/create.d.ts +1 -92
- package/dist/main/windows/service-host-window/create.js +1 -154
- package/dist/native-host/common/common.js +173 -53
- package/dist/native-host/container/pageFrame.css +1 -1
- package/dist/native-host/render/render.js +8278 -3659
- package/dist/native-host/service/service.js +2 -2
- package/dist/preload/index.d.ts +2 -0
- package/dist/preload/index.js +1 -0
- package/dist/preload/instrumentation/app-data.d.ts +2 -2
- package/dist/preload/instrumentation/app-data.js +1 -1
- package/dist/preload/instrumentation/wxml.js +1 -1
- package/dist/preload/runtime/bridge.d.ts +3 -3
- package/dist/preload/runtime/bridge.js +2 -2
- package/dist/preload/runtime/clipboard.d.ts +6 -0
- package/dist/preload/runtime/clipboard.js +12 -0
- 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/native-host.d.ts +14 -0
- package/dist/preload/runtime/native-host.js +5 -8
- package/dist/preload/runtime/node-bindings.d.ts +18 -0
- package/dist/preload/runtime/node-bindings.js +44 -0
- package/dist/preload/runtime/temp-files.js +9 -2
- package/dist/preload/runtime/wait-for-slot-root.d.ts +23 -0
- package/dist/preload/runtime/wait-for-slot-root.js +80 -0
- package/dist/preload/shared/api-compat.js +63 -41
- package/dist/preload/windows/host-dialog-runtime.cjs +360 -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 +361 -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 +142 -52
- package/dist/preload/windows/host-toolbar-runtime.cjs.map +3 -3
- package/dist/preload/windows/main.cjs +4922 -1246
- package/dist/preload/windows/main.cjs.map +4 -4
- package/dist/preload/windows/main.css +428 -0
- package/dist/preload/windows/main.css.map +7 -0
- package/dist/preload/windows/simulator.cjs +376 -322
- package/dist/preload/windows/simulator.cjs.map +4 -4
- package/dist/preload/windows/simulator.js +376 -322
- package/dist/render-host/pageFrame.html +4 -4
- package/dist/render-host/preload.cjs +30 -0
- package/dist/render-host/render-inspect.js +184 -115
- package/dist/renderer/assets/button-CB2MWjHY.js +2 -0
- package/dist/renderer/assets/constants-CkoGPQTS.js +2 -0
- package/dist/renderer/assets/constants-zQZ2-y21.js +2 -0
- package/dist/renderer/assets/createLucideIcon-cZ9FlZZw.js +2 -0
- package/dist/renderer/assets/devicePicker-H2eIO4e1.js +2 -0
- package/dist/renderer/assets/dialog-pHzEA8Vx.js +46 -0
- package/dist/renderer/assets/dist-B5HADirS.js +2 -0
- package/dist/renderer/assets/dist-DIFlRMKe.js +2 -0
- package/dist/renderer/assets/hostSidebarDefault-DRWh6OCt.js +2 -0
- package/dist/renderer/assets/index-CEL_XFge.js +2 -0
- package/dist/renderer/assets/input-CAObw95L.js +2 -0
- package/dist/renderer/assets/ipc-channels-overlays-gIPUFnqc.js +2 -0
- package/dist/renderer/assets/jsx-runtime-DICEQH_0.css +1 -0
- package/dist/renderer/assets/jsx-runtime-DIw5wnYl.js +9 -0
- package/dist/renderer/assets/plus-BQ9u5EbL.js +2 -0
- package/dist/renderer/assets/popover-Cw7G2Ctp.js +2 -0
- package/dist/renderer/assets/presets-DMZOb9ay.js +2 -0
- package/dist/renderer/assets/project-api-YTOr_Yvo.js +2 -0
- package/dist/renderer/assets/projectCreateDialog-BmLqiYxn.js +2 -0
- package/dist/renderer/assets/search-BMvuYF48.js +2 -0
- package/dist/renderer/assets/select-nFP95TxM.js +2 -0
- package/dist/renderer/assets/settings-CnpVfSWt.js +2 -0
- package/dist/renderer/assets/settings-api-Ccsf-Nsj.js +2 -0
- package/dist/renderer/assets/settings-tab-bar-CAzrv32m.js +2 -0
- package/dist/renderer/assets/smartphone-Bb2GdIKy.js +2 -0
- package/dist/renderer/assets/tabs-CPKN3Mmq.js +2 -0
- package/dist/renderer/assets/tooltip-D6AxXRk5.js +2 -0
- package/dist/renderer/assets/types-Bh0hA7El.js +2 -0
- package/dist/renderer/assets/updateDialog-CwndJ0Bl.js +2 -0
- package/dist/renderer/assets/utils-sEB5OZEQ.js +2 -0
- package/dist/renderer/assets/view-api-B-2zPBR5.js +2 -0
- package/dist/renderer/assets/view-ids-BfaDVV5P.js +2 -0
- package/dist/renderer/assets/workbench-C0Jkdlps.js +5 -0
- package/dist/renderer/assets/workbenchSettings-YD0Ctbm_.js +8 -0
- package/dist/renderer/entries/device-picker/index.html +28 -0
- package/dist/renderer/entries/host-sidebar-default/index.html +22 -0
- package/dist/renderer/entries/main/index.html +16 -7
- package/dist/renderer/entries/popover/index.html +16 -6
- package/dist/renderer/entries/project-create-dialog/index.html +27 -0
- package/dist/renderer/entries/settings/index.html +10 -5
- package/dist/renderer/entries/tooltip/index.html +21 -0
- package/dist/renderer/entries/update-dialog/index.html +25 -0
- package/dist/renderer/entries/workbench/index.html +49 -0
- package/dist/renderer/entries/workbench-settings/index.html +12 -5
- package/dist/service-host/appdata-set-data.cjs +39 -0
- package/dist/service-host/host-env-update.cjs +23 -0
- package/dist/service-host/preload.cjs +54 -48
- package/dist/service-host/service-message-queue.cjs +71 -0
- package/dist/service-host/sync-impls/menu-button-geometry.js +16 -5
- package/dist/service-host/sync-impls/menu-button.js +5 -3
- package/dist/service-host/sync-impls/system-info.js +31 -9
- package/dist/shared/bridge-channels.d.ts +1 -416
- package/dist/shared/bridge-channels.js +1 -89
- package/dist/shared/compile-mode-state.d.ts +73 -0
- package/dist/shared/compile-mode-state.js +100 -0
- package/dist/shared/compile-modes.d.ts +152 -0
- package/dist/shared/compile-modes.js +237 -0
- package/dist/shared/constants.d.ts +22 -0
- package/dist/shared/constants.js +22 -0
- package/dist/shared/dmb-resource-url.d.ts +2 -0
- package/dist/shared/dmb-resource-url.js +2 -0
- package/dist/shared/ipc-channels-overlays.d.ts +162 -0
- package/dist/shared/ipc-channels-overlays.js +203 -0
- package/dist/shared/ipc-channels.d.ts +24 -154
- package/dist/shared/ipc-channels.js +48 -96
- package/dist/shared/ipc-schemas.d.ts +143 -54
- package/dist/shared/ipc-schemas.js +137 -45
- package/dist/shared/node-bindings.d.ts +2 -0
- package/dist/shared/node-bindings.js +2 -0
- package/dist/shared/project-window-types.d.ts +42 -0
- package/dist/shared/project-window-types.js +2 -0
- package/dist/shared/simulator-route.d.ts +8 -0
- package/dist/shared/simulator-route.js +15 -0
- package/dist/shared/simulator-ui.d.ts +61 -0
- package/dist/shared/simulator-ui.js +12 -0
- package/dist/shared/types.d.ts +126 -41
- package/dist/shared/view-ids.d.ts +10 -0
- package/dist/shared/view-ids.js +23 -0
- package/dist/simulator/assets/bridge-channels-B3JAmRfl.js +2 -0
- package/dist/simulator/assets/device-shell-ATEhHV2_.css +1 -0
- package/dist/simulator/assets/device-shell-DucLepkm.js +431 -0
- package/dist/simulator/assets/simulator-B4rbcOVt.js +10 -0
- package/dist/simulator/assets/simulator-mini-app-DFo7fhi5.js +2 -0
- package/dist/simulator/assets/simulator-ui-BupATgKo.css +1 -0
- package/dist/simulator/assets/simulator-ui-i3GCc7YJ.js +2 -0
- package/dist/simulator/simulator.html +4 -3
- package/dist/simulator/temp-files.d.ts +35 -0
- package/dist/simulator/temp-files.js +121 -0
- package/dist/simulator/types.d.ts +50 -0
- package/dist/simulator/types.js +2 -0
- package/dist/vscode-workbench/assets/__vite-browser-external-JIkWewFf.js +1 -0
- package/dist/vscode-workbench/assets/{dist-TpGpmMGi.js → dist-CXG-u1VB.js} +3 -3
- package/dist/vscode-workbench/assets/fs-core-worker-urls-DZ1nod84.js +1 -0
- package/dist/vscode-workbench/assets/fs-core.worker-Bnmpp6fo.js +1 -0
- package/dist/vscode-workbench/assets/fs-query.worker-cZ-7Fjch.js +2 -0
- package/dist/vscode-workbench/assets/{iconv-lite-umd-C9tiCAJa.js → iconv-lite-umd-Dxx9Qyb4.js} +1 -1
- package/dist/vscode-workbench/assets/{index-DJ1HyMZ7.js → index-6VJMsaWj.js} +475 -475
- package/dist/vscode-workbench/assets/{jschardet-DE1jV513.js → jschardet-Ba3D16vt.js} +1 -1
- package/dist/vscode-workbench/index.html +21 -1
- package/package.json +23 -13
- package/dist/main/services/views/destroy-child-view.d.ts +0 -9
- package/dist/main/services/views/destroy-child-view.js +0 -23
- package/dist/preload/instrumentation/wxml-extract.d.ts +0 -11
- package/dist/preload/instrumentation/wxml-extract.js +0 -382
- package/dist/preload/shared/sid-registry.d.ts +0 -11
- package/dist/preload/shared/sid-registry.js +0 -38
- package/dist/renderer/assets/constants-EAMiwL9_.js +0 -2
- package/dist/renderer/assets/index-BMqyDx71.js +0 -49
- package/dist/renderer/assets/input-CDAEwpBO.js +0 -2
- package/dist/renderer/assets/ipc-transport-B7eFOR68.css +0 -1
- package/dist/renderer/assets/ipc-transport-_G1k5V1p.js +0 -9
- package/dist/renderer/assets/popover-DEdjK14m.js +0 -2
- package/dist/renderer/assets/select-DpKPCh3y.js +0 -2
- package/dist/renderer/assets/settings-M5q2elUr.js +0 -2
- package/dist/renderer/assets/settings-api-CDlZoHiO.js +0 -2
- package/dist/renderer/assets/workbenchSettings-CT_H1WhV.js +0 -8
- package/dist/shared/appdata-accumulator.d.ts +0 -95
- package/dist/shared/appdata-accumulator.js +0 -218
- package/dist/shared/request-core.d.ts +0 -84
- package/dist/shared/request-core.js +0 -168
- package/dist/shared/simulator-api-metadata.d.ts +0 -26
- package/dist/shared/simulator-api-metadata.js +0 -59
- package/dist/shared/vpath.d.ts +0 -42
- package/dist/shared/vpath.js +0 -105
- package/dist/simulator/assets/bridge-channels-zhsumfky.js +0 -2
- package/dist/simulator/assets/device-shell-C-wcFq3Z.js +0 -2
- package/dist/simulator/assets/device-shell-CS1rqAQz.css +0 -1
- package/dist/simulator/assets/jsx-runtime-BDTY6fEq.js +0 -2
- package/dist/simulator/assets/simulator-DU3-fS3v.js +0 -10
- package/dist/simulator/assets/simulator-mini-app-DzfMfnVM.js +0 -2
- package/dist/simulator/device-shell/menu-button-geometry.js +0 -8
- package/dist/vscode-workbench/assets/__vite-browser-external-CXi6Kz9W.js +0 -1
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
// Popover → main → main-renderer: the edited compile modes, plus whether
|
|
129
|
+
// the change affects what is currently running (selecting a mode, or
|
|
130
|
+
// editing the selected one) and so needs a relaunch.
|
|
131
|
+
Apply: 'popover:apply',
|
|
132
|
+
Closed: 'popover:closed',
|
|
133
|
+
Init: 'popover:init',
|
|
134
|
+
};
|
|
135
|
+
// ── Tooltip ──────────────────────────────────────────────────────────────
|
|
136
|
+
//
|
|
137
|
+
// A top-tier overlay WebContentsView (VIEW_LAYER.tooltip — see view-ids.ts),
|
|
138
|
+
// NOT a DOM tooltip in the main renderer: any DOM-portaled floating UI (Radix
|
|
139
|
+
// Tooltip) or the browser-native `title` attribute lives in the main
|
|
140
|
+
// renderer's own paint surface, which every other WCV (simulator, editor,
|
|
141
|
+
// settings, popover) renders on top of — CSS cannot reach across that
|
|
142
|
+
// boundary. A trigger reports its anchor rect + label; main computes the
|
|
143
|
+
// tooltip's screen bounds and shows/repositions/hides this overlay.
|
|
144
|
+
export const OverlayChannel = {
|
|
145
|
+
Ready: 'overlay:ready',
|
|
146
|
+
};
|
|
147
|
+
export const TooltipChannel = {
|
|
148
|
+
Prepare: 'tooltip:prepare',
|
|
149
|
+
Show: 'tooltip:show',
|
|
150
|
+
Hide: 'tooltip:hide',
|
|
151
|
+
Init: 'tooltip:init',
|
|
152
|
+
Measured: 'tooltip:measured',
|
|
153
|
+
};
|
|
154
|
+
// ── Project-create dialog ───────────────────────────────────────────────
|
|
155
|
+
//
|
|
156
|
+
// A top-tier overlay WebContentsView (VIEW_LAYER.dialog), NOT the Radix
|
|
157
|
+
// `fixed inset-0` DOM portal it replaced — a DOM overlay paints inside the
|
|
158
|
+
// main window's own renderer, so any native WebContentsView mounted on top
|
|
159
|
+
// (simulator, host-toolbar, host-sidebar) occludes it. main.tsx fetches the
|
|
160
|
+
// template catalog + base-dir defaults, then asks main to show this panel;
|
|
161
|
+
// the panel relays submit/cancel back to main.tsx to run the existing
|
|
162
|
+
// scaffold flow.
|
|
163
|
+
export const ProjectCreateChannel = {
|
|
164
|
+
Show: 'projectCreate:show',
|
|
165
|
+
Init: 'projectCreate:init',
|
|
166
|
+
Submit: 'projectCreate:submit',
|
|
167
|
+
Cancel: 'projectCreate:cancel',
|
|
168
|
+
Submitted: 'projectCreate:submitted',
|
|
169
|
+
};
|
|
170
|
+
// ── Device picker ────────────────────────────────────────────────────────
|
|
171
|
+
//
|
|
172
|
+
// A top-tier overlay WebContentsView (VIEW_LAYER.dialog), for the same reason
|
|
173
|
+
// as the project-create dialog above: the simulator's own WebContentsView is
|
|
174
|
+
// mounted on top of the main renderer and overlaps the centred search panel,
|
|
175
|
+
// so a DOM-portaled dialog is cut in half by it. The toolbar keeps only the
|
|
176
|
+
// trigger button; it asks main to show this panel with the currently selected
|
|
177
|
+
// device, and main relays the picked device name back to the toolbar.
|
|
178
|
+
export const DevicePickerChannel = {
|
|
179
|
+
Show: 'devicePicker:show',
|
|
180
|
+
Init: 'devicePicker:init',
|
|
181
|
+
Select: 'devicePicker:select',
|
|
182
|
+
Cancel: 'devicePicker:cancel',
|
|
183
|
+
Selected: 'devicePicker:selected',
|
|
184
|
+
};
|
|
185
|
+
// ── Embedded settings overlay ────────────────────────────────────────────
|
|
186
|
+
export const SettingsChannel = {
|
|
187
|
+
SetVisible: 'settings:setVisible',
|
|
188
|
+
ProjectSettingsChanged: 'settings:projectSettingsChanged',
|
|
189
|
+
Init: 'settings:init',
|
|
190
|
+
};
|
|
191
|
+
// ── Updates (UpdateManager) ──────────────────────────────────────────────
|
|
192
|
+
//
|
|
193
|
+
// String values are FROZEN: shipped builds key off them. Add new entries
|
|
194
|
+
// here, never rename existing ones.
|
|
195
|
+
export const UpdateChannel = {
|
|
196
|
+
Check: 'updates:check',
|
|
197
|
+
Download: 'updates:download',
|
|
198
|
+
Install: 'updates:install',
|
|
199
|
+
DownloadProgress: 'updates:downloadProgress',
|
|
200
|
+
Available: 'updates:available',
|
|
201
|
+
Close: 'updates:close',
|
|
202
|
+
};
|
|
203
|
+
//# sourceMappingURL=ipc-channels-overlays.js.map
|
|
@@ -13,51 +13,21 @@ export declare const SimulatorChannel: {
|
|
|
13
13
|
readonly Console: "simulator:console";
|
|
14
14
|
readonly CurrentPage: "simulator:current-page";
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
export type NotchType = 'none' | 'notch' | 'dynamic-island';
|
|
18
|
-
/** Per-device safe-area insets in CSS px (portrait). */
|
|
19
|
-
export interface SafeAreaInsets {
|
|
20
|
-
top: number;
|
|
21
|
-
right: number;
|
|
22
|
-
bottom: number;
|
|
23
|
-
left: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Logical device metrics pushed by the renderer device dropdown under
|
|
27
|
-
* native-host (`SimulatorChannel.SetDeviceInfo`). Mirrors a row of the renderer
|
|
28
|
-
* `DEVICES` table; main maps it onto a `HostEnvSnapshot` for the service-host
|
|
29
|
-
* window so `wx.getSystemInfoSync()` reflects the selected device, relays it to
|
|
30
|
-
* the simulator WCV (DeviceShell: bezel size + status bar + notch), and drives
|
|
31
|
-
* the CSS `env(safe-area-inset-*)` override on render-host guests.
|
|
32
|
-
*/
|
|
33
|
-
export interface NativeDeviceInfo {
|
|
34
|
-
brand: string;
|
|
35
|
-
model: string;
|
|
36
|
-
system: string;
|
|
37
|
-
platform: string;
|
|
38
|
-
pixelRatio: number;
|
|
39
|
-
screenWidth: number;
|
|
40
|
-
screenHeight: number;
|
|
41
|
-
statusBarHeight: number;
|
|
42
|
-
notchType: NotchType;
|
|
43
|
-
safeAreaInsets: SafeAreaInsets;
|
|
44
|
-
}
|
|
16
|
+
export type { DeviceOrientation, NativeDeviceInfo, SafeAreaInsets, } from '@dimina-kit/electron-runtime';
|
|
45
17
|
export declare const ServiceHostChannel: {
|
|
46
18
|
/**
|
|
47
|
-
* NATIVE-HOST ONLY.
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
19
|
+
* NATIVE-HOST ONLY. Deliver an AppData-panel edit (`{bridgeId, data}`) into
|
|
20
|
+
* the service-host window. The preload resolves the page instance via
|
|
21
|
+
* `getCurrentPages()` and calls `page.setData(data)`, so the resulting `ub`
|
|
22
|
+
* publish flows back through the normal service→render tap — the panel
|
|
23
|
+
* refreshes from the runtime's own state, not an optimistic local echo.
|
|
51
24
|
*/
|
|
52
|
-
readonly
|
|
25
|
+
readonly AppDataSetData: "service-host:appdata:set-data";
|
|
53
26
|
};
|
|
54
27
|
export declare const SimulatorCustomApiChannel: {
|
|
55
28
|
readonly Invoke: "simulator:custom-apis:invoke";
|
|
56
29
|
};
|
|
57
|
-
export
|
|
58
|
-
readonly Request: "simulator:custom-apis:bridge-request";
|
|
59
|
-
readonly Response: "simulator:custom-apis:bridge-response";
|
|
60
|
-
};
|
|
30
|
+
export { SimulatorCustomApiBridgeChannel, } from '@dimina-kit/electron-runtime/shared/bridge-channels';
|
|
61
31
|
export declare const SimulatorStorageChannel: {
|
|
62
32
|
readonly GetSnapshot: "simulator:storage:snapshot";
|
|
63
33
|
readonly GetActivePrefix: "simulator:storage:activePrefix";
|
|
@@ -67,31 +37,7 @@ export declare const SimulatorStorageChannel: {
|
|
|
67
37
|
readonly ClearAll: "simulator:storage:clearAll";
|
|
68
38
|
readonly Event: "simulator:storage:event";
|
|
69
39
|
};
|
|
70
|
-
export
|
|
71
|
-
key: string;
|
|
72
|
-
value: string;
|
|
73
|
-
}
|
|
74
|
-
export type StorageEvent = {
|
|
75
|
-
type: 'added';
|
|
76
|
-
key: string;
|
|
77
|
-
newValue: string;
|
|
78
|
-
} | {
|
|
79
|
-
type: 'updated';
|
|
80
|
-
key: string;
|
|
81
|
-
oldValue: string;
|
|
82
|
-
newValue: string;
|
|
83
|
-
} | {
|
|
84
|
-
type: 'removed';
|
|
85
|
-
key: string;
|
|
86
|
-
} | {
|
|
87
|
-
type: 'cleared';
|
|
88
|
-
};
|
|
89
|
-
export type StorageWriteResult = {
|
|
90
|
-
ok: true;
|
|
91
|
-
} | {
|
|
92
|
-
ok: false;
|
|
93
|
-
error: string;
|
|
94
|
-
};
|
|
40
|
+
export type { StorageEvent, StorageItem, StorageWriteResult } from '@dimina-kit/inspect';
|
|
95
41
|
/**
|
|
96
42
|
* A storage mutation reported by the service-host's SYNC wx storage APIs
|
|
97
43
|
* (`setStorageSync`/`removeStorageSync`/`clearStorageSync`). Those run inside the
|
|
@@ -125,30 +71,14 @@ export declare const SimulatorWxmlChannel: {
|
|
|
125
71
|
export declare const SimulatorAppDataChannel: {
|
|
126
72
|
readonly GetSnapshot: "simulator:appdata:snapshot";
|
|
127
73
|
readonly Event: "simulator:appdata:event";
|
|
74
|
+
readonly SetData: "simulator:appdata:set-data";
|
|
128
75
|
};
|
|
129
|
-
export
|
|
130
|
-
sid: string;
|
|
131
|
-
rect: {
|
|
132
|
-
x: number;
|
|
133
|
-
y: number;
|
|
134
|
-
width: number;
|
|
135
|
-
height: number;
|
|
136
|
-
};
|
|
137
|
-
style: {
|
|
138
|
-
display: string;
|
|
139
|
-
position: string;
|
|
140
|
-
boxSizing: string;
|
|
141
|
-
margin: string;
|
|
142
|
-
padding: string;
|
|
143
|
-
color: string;
|
|
144
|
-
backgroundColor: string;
|
|
145
|
-
fontSize: string;
|
|
146
|
-
};
|
|
147
|
-
}
|
|
76
|
+
export type { ElementInspection } from '@dimina-kit/inspect';
|
|
148
77
|
export declare const WorkbenchSettingsChannel: {
|
|
149
78
|
readonly Get: "workbenchSettings:get";
|
|
150
79
|
readonly Save: "workbenchSettings:save";
|
|
151
80
|
readonly SetTheme: "workbenchSettings:setTheme";
|
|
81
|
+
readonly Restart: "workbenchSettings:restart";
|
|
152
82
|
readonly GetCdpStatus: "workbenchSettings:getCdpStatus";
|
|
153
83
|
readonly GetMcpStatus: "workbenchSettings:getMcpStatus";
|
|
154
84
|
readonly Init: "workbenchSettings:init";
|
|
@@ -157,17 +87,17 @@ export declare const WorkbenchSettingsChannel: {
|
|
|
157
87
|
export declare const ProjectChannel: {
|
|
158
88
|
readonly Open: "project:open";
|
|
159
89
|
readonly Close: "project:close";
|
|
90
|
+
readonly Rebuild: "project:rebuild";
|
|
160
91
|
readonly GetPages: "project:getPages";
|
|
161
92
|
readonly GetCompileConfig: "project:getCompileConfig";
|
|
162
93
|
readonly SaveCompileConfig: "project:saveCompileConfig";
|
|
94
|
+
readonly GetCompileModeState: "project:getCompileModeState";
|
|
95
|
+
readonly CompileModesChanged: "project:compileModesChanged";
|
|
96
|
+
readonly CompileModesApplyFailed: "project:compileModesApplyFailed";
|
|
163
97
|
readonly Status: "project:status";
|
|
164
98
|
readonly CompileLog: "project:compileLog";
|
|
165
99
|
readonly CaptureThumbnail: "project:captureThumbnail";
|
|
166
100
|
readonly GetThumbnail: "project:getThumbnail";
|
|
167
|
-
readonly GetLaunchConfigs: "project:getLaunchConfigs";
|
|
168
|
-
readonly SaveLaunchConfigs: "project:saveLaunchConfigs";
|
|
169
|
-
readonly GetActiveLaunchConfigId: "project:getActiveLaunchConfigId";
|
|
170
|
-
readonly SaveActiveLaunchConfigId: "project:saveActiveLaunchConfigId";
|
|
171
101
|
};
|
|
172
102
|
export declare const SessionChannel: {
|
|
173
103
|
readonly RuntimeStatus: "session:runtimeStatus";
|
|
@@ -203,10 +133,14 @@ export declare const ProjectsChannel: {
|
|
|
203
133
|
readonly List: "projects:list";
|
|
204
134
|
readonly Add: "projects:add";
|
|
205
135
|
readonly Remove: "projects:remove";
|
|
136
|
+
/** Edit an existing record's name / icon; its path stays the identity. */
|
|
137
|
+
readonly Update: "projects:update";
|
|
206
138
|
/** Merged + sanitized template catalog for the create-project dialog. */
|
|
207
139
|
readonly ListTemplates: "projects:listTemplates";
|
|
208
140
|
/** Host-supplied create-project dialog hook (returns input or null). */
|
|
209
141
|
readonly OpenCreateDialog: "projects:openCreateDialog";
|
|
142
|
+
/** Host-supplied edit-project dialog hook; `null` means no hook is configured. */
|
|
143
|
+
readonly OpenEditDialog: "projects:openEditDialog";
|
|
210
144
|
/** Server-side scaffold + register (delegates to create-project-service). */
|
|
211
145
|
readonly Create: "projects:create";
|
|
212
146
|
/** Default values used to pre-fill the create-project dialog (baseDir). */
|
|
@@ -220,64 +154,10 @@ export interface ProjectCreateDefaults {
|
|
|
220
154
|
export declare const DialogChannel: {
|
|
221
155
|
readonly OpenDirectory: "dialog:openDirectory";
|
|
222
156
|
};
|
|
223
|
-
export declare const ViewChannel: {
|
|
224
|
-
/**
|
|
225
|
-
* Reverse size-advertiser: the host-toolbar WCV's OWN renderer advertises its
|
|
226
|
-
* intrinsic content height so main reserves exactly that much. Payload
|
|
227
|
-
* `{ axis: 'block', extent }`. fire-and-forget (send), NOT invoke.
|
|
228
|
-
*/
|
|
229
|
-
readonly HostToolbarAdvertiseHeight: "view:host-toolbar:advertise-height";
|
|
230
|
-
/**
|
|
231
|
-
* main → host-toolbar WCV renderer: per-load MessagePort handshake for the
|
|
232
|
-
* gated narrow channel. On every toolbar `did-finish-load` main creates a
|
|
233
|
-
* `MessageChannelMain` and transfers port2 here
|
|
234
|
-
* (`wc.postMessage(HostToolbarPort, null, [port2])`); the session-resident
|
|
235
|
-
* toolbar runtime preload receives it via `event.ports[0]` and bridges it to
|
|
236
|
-
* the page as `window.diminaHostToolbar`. Envelope both directions:
|
|
237
|
-
* `{ channel: string, payload: unknown }`.
|
|
238
|
-
*/
|
|
239
|
-
readonly HostToolbarPort: "view:host-toolbar:port";
|
|
240
|
-
/**
|
|
241
|
-
* main → main-window renderer: push the reserved host-toolbar height so the
|
|
242
|
-
* renderer placeholder div resizes (closing the dynamic-height loop).
|
|
243
|
-
*/
|
|
244
|
-
readonly HostToolbarHeightChanged: "view:host-toolbar:height-changed";
|
|
245
|
-
/**
|
|
246
|
-
* main ← main-window renderer (invoke): pull the last NOTIFIED toolbar
|
|
247
|
-
* height retained in main. Mount-time replay companion to
|
|
248
|
-
* `HostToolbarHeightChanged`: the push listener mounts with the project
|
|
249
|
-
* view and the toolbar's size-advertiser deduplicates (never re-reports),
|
|
250
|
-
* so a height pushed while no project view was mounted would otherwise be
|
|
251
|
-
* lost forever (cold start on the project list races it; close-project →
|
|
252
|
-
* reopen hits it deterministically). No payload; resolves a number.
|
|
253
|
-
*/
|
|
254
|
-
readonly HostToolbarGetHeight: "view:host-toolbar:get-height";
|
|
255
|
-
/**
|
|
256
|
-
* Renderer → main: the window-level placement snapshot (one monotonic epoch
|
|
257
|
-
* per commit tick, one generation per renderer lifetime) that drives the view
|
|
258
|
-
* reconciler. The single source of truth for every managed native view's
|
|
259
|
-
* bounds/visibility/z-order — supersedes the per-view bounds channels above.
|
|
260
|
-
* invoke.
|
|
261
|
-
*/
|
|
262
|
-
readonly PlacementSnapshot: "view:placement-snapshot";
|
|
263
|
-
};
|
|
264
|
-
export interface ViewBounds {
|
|
265
|
-
x: number;
|
|
266
|
-
y: number;
|
|
267
|
-
width: number;
|
|
268
|
-
height: number;
|
|
269
|
-
}
|
|
270
|
-
export declare const PopoverChannel: {
|
|
271
|
-
readonly Show: "popover:show";
|
|
272
|
-
readonly Hide: "popover:hide";
|
|
273
|
-
readonly Relaunch: "popover:relaunch";
|
|
274
|
-
readonly Closed: "popover:closed";
|
|
275
|
-
readonly Init: "popover:init";
|
|
276
|
-
readonly SwitchLaunchConfig: "popover:switchLaunchConfig";
|
|
277
|
-
readonly UpdateLaunchConfigs: "popover:updateLaunchConfigs";
|
|
278
|
-
};
|
|
279
157
|
export declare const WindowChannel: {
|
|
280
158
|
readonly NavigateBack: "window:navigateBack";
|
|
159
|
+
readonly OpenProject: "window:openProject";
|
|
160
|
+
readonly OpenProjectWindow: "window:openProjectWindow";
|
|
281
161
|
};
|
|
282
162
|
export declare const AppChannel: {
|
|
283
163
|
readonly GetBranding: "app:getBranding";
|
|
@@ -289,17 +169,7 @@ export declare const MiniappSnapshotChannel: {
|
|
|
289
169
|
export declare const AutomationChannel: {
|
|
290
170
|
readonly GetPort: "automation:port";
|
|
291
171
|
};
|
|
292
|
-
export declare const
|
|
293
|
-
readonly
|
|
294
|
-
readonly ConfigChanged: "settings:configChanged";
|
|
295
|
-
readonly ProjectSettingsChanged: "settings:projectSettingsChanged";
|
|
296
|
-
readonly Init: "settings:init";
|
|
297
|
-
};
|
|
298
|
-
export declare const UpdateChannel: {
|
|
299
|
-
readonly Check: "updates:check";
|
|
300
|
-
readonly Download: "updates:download";
|
|
301
|
-
readonly Install: "updates:install";
|
|
302
|
-
readonly DownloadProgress: "updates:downloadProgress";
|
|
303
|
-
readonly Available: "updates:available";
|
|
172
|
+
export declare const InternalDevtoolsChannel: {
|
|
173
|
+
readonly Open: "internal-devtools:open";
|
|
304
174
|
};
|
|
305
175
|
//# sourceMappingURL=ipc-channels.d.ts.map
|