From 649c1ed37ac74765fb7572fa3f703c94827042f4 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 4 Jan 2022 22:16:09 +0530 Subject: New configurations based on review comments (WIP) Signed-off-by: Vijay A --- packages/shared/src/contextBridge/SophieRenderer.ts | 2 +- packages/shared/src/index.ts | 14 +++++++------- packages/shared/src/stores/Config.ts | 2 +- packages/shared/src/stores/SharedStore.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'packages/shared/src') diff --git a/packages/shared/src/contextBridge/SophieRenderer.ts b/packages/shared/src/contextBridge/SophieRenderer.ts index 285b373..fc43b6e 100644 --- a/packages/shared/src/contextBridge/SophieRenderer.ts +++ b/packages/shared/src/contextBridge/SophieRenderer.ts @@ -20,7 +20,7 @@ import { SharedStoreListener } from '../stores/SharedStore'; -import { Action } from '../schemas.js'; +import { Action } from '../schemas'; export interface SophieRenderer { onSharedStoreChange(listener: SharedStoreListener): Promise; diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index f0ae5dc..2f7146c 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -23,26 +23,26 @@ export type { SophieRenderer } from './contextBridge/SophieRenderer'; export { MainToRendererIpcMessage, RendererToMainIpcMessage, -} from './ipc.js'; +} from './ipc'; export type { Action, BrowserViewBounds, ThemeSource, -} from './schemas.js'; +} from './schemas'; export { action, browserViewBounds, themeSource, -} from './schemas.js'; +} from './schemas'; -export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config.js'; -export { config } from './stores/Config.js'; +export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; +export { config } from './stores/Config'; export type { SharedStore, SharedStoreListener, SharedStoreSnapshotIn, SharedStoreSnapshotOut, -} from './stores/SharedStore.js'; -export { sharedStore } from './stores/SharedStore.js'; +} from './stores/SharedStore'; +export { sharedStore } from './stores/SharedStore'; diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts index 4b17d3c..432945c 100644 --- a/packages/shared/src/stores/Config.ts +++ b/packages/shared/src/stores/Config.ts @@ -25,7 +25,7 @@ import { SnapshotOut, } from 'mobx-state-tree'; -import { themeSource } from '../schemas.js'; +import { themeSource } from '../schemas'; export const config = types.model('Config', { themeSource: types.optional(types.enumeration(themeSource.options), 'system'), diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index 8aefcdb..c6c3ddc 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts @@ -26,7 +26,7 @@ import { SnapshotOut, } from 'mobx-state-tree'; -import { config } from './Config.js'; +import { config } from './Config'; export const sharedStore = types.model('SharedStore', { config: types.optional(config, {}), -- cgit v1.2.3-70-g09d2