diff options
Diffstat (limited to 'packages/shared/src')
-rw-r--r-- | packages/shared/src/contextBridge/SophieRenderer.ts | 2 | ||||
-rw-r--r-- | packages/shared/src/index.ts | 6 | ||||
-rw-r--r-- | packages/shared/src/ipc.ts (renamed from packages/shared/src/ipc/MainToRendererIpcMessage.ts) | 11 | ||||
-rw-r--r-- | packages/shared/src/ipc/RendererToMainIpcMessage.ts | 25 |
4 files changed, 15 insertions, 29 deletions
diff --git a/packages/shared/src/contextBridge/SophieRenderer.ts b/packages/shared/src/contextBridge/SophieRenderer.ts index f2e2180..e310829 100644 --- a/packages/shared/src/contextBridge/SophieRenderer.ts +++ b/packages/shared/src/contextBridge/SophieRenderer.ts | |||
@@ -28,4 +28,6 @@ export interface SophieRenderer { | |||
28 | setBrowserViewBounds(bounds: BrowserViewBounds): void; | 28 | setBrowserViewBounds(bounds: BrowserViewBounds): void; |
29 | 29 | ||
30 | setPaletteMode(mode: PaletteMode): void; | 30 | setPaletteMode(mode: PaletteMode): void; |
31 | |||
32 | reloadAllServices(): void; | ||
31 | } | 33 | } |
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 0a1ec40..f054571 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts | |||
@@ -20,8 +20,10 @@ | |||
20 | 20 | ||
21 | export type { SophieRenderer } from './contextBridge/SophieRenderer'; | 21 | export type { SophieRenderer } from './contextBridge/SophieRenderer'; |
22 | 22 | ||
23 | export { MainToRendererIpcMessage } from './ipc/MainToRendererIpcMessage'; | 23 | export { |
24 | export { RendererToMainIpcMessage } from './ipc/RendererToMainIpcMessage'; | 24 | MainToRendererIpcMessage, |
25 | RendererToMainIpcMessage, | ||
26 | } from './ipc'; | ||
25 | 27 | ||
26 | export type { | 28 | export type { |
27 | BrowserViewBounds, | 29 | BrowserViewBounds, |
diff --git a/packages/shared/src/ipc/MainToRendererIpcMessage.ts b/packages/shared/src/ipc.ts index 92da489..2e35d7a 100644 --- a/packages/shared/src/ipc/MainToRendererIpcMessage.ts +++ b/packages/shared/src/ipc.ts | |||
@@ -19,6 +19,13 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | export enum MainToRendererIpcMessage { | 21 | export enum MainToRendererIpcMessage { |
22 | SharedStoreSnapshot = 'sophie-shared-store-snapshot', | 22 | SharedStoreSnapshot = 'sophie-main-to-renderer:shared-store-snapshot', |
23 | SharedStorePatch = 'sophie-shared-store-patch', | 23 | SharedStorePatch = 'sophie-main-to-renderer:shared-store-patch', |
24 | } | ||
25 | |||
26 | export enum RendererToMainIpcMessage { | ||
27 | SharedStoreSnapshotRequest = 'sophie-renderer-to-main:shared-store-snapshot-request', | ||
28 | SetBrowserViewBounds = 'sophie-renderer-to-main:set-browser-view-bounds', | ||
29 | SetPaletteMode = 'sophie-renderer-to-main:set-palette-mode', | ||
30 | ReloadAllServices = 'sophie-renderer-to-main:reload-all-services', | ||
24 | } | 31 | } |
diff --git a/packages/shared/src/ipc/RendererToMainIpcMessage.ts b/packages/shared/src/ipc/RendererToMainIpcMessage.ts deleted file mode 100644 index ba354d1..0000000 --- a/packages/shared/src/ipc/RendererToMainIpcMessage.ts +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2021-2022 Kristóf Marussy <kristof@marussy.com> | ||
3 | * | ||
4 | * This file is part of Sophie. | ||
5 | * | ||
6 | * Sophie is free software: you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU Affero General Public License as | ||
8 | * published by the Free Software Foundation, version 3. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | * | ||
18 | * SPDX-License-Identifier: AGPL-3.0-only | ||
19 | */ | ||
20 | |||
21 | export enum RendererToMainIpcMessage { | ||
22 | SharedStoreSnapshotRequest = 'sophie-shared-store-snapshot-request', | ||
23 | SetBrowserViewBounds = 'sophie-set-browser-view-bounds', | ||
24 | SetPaletteMode = 'sophie-set-palette-mode', | ||
25 | } | ||