diff --git a/frontend/src/core/components/viewer/ZoomAPIBridge.tsx b/frontend/src/core/components/viewer/ZoomAPIBridge.tsx index c947911cc..cf44227e5 100644 --- a/frontend/src/core/components/viewer/ZoomAPIBridge.tsx +++ b/frontend/src/core/components/viewer/ZoomAPIBridge.tsx @@ -10,7 +10,7 @@ import { measureRenderedPageRect, useFitWidthResize, ZoomViewport, -} from '@core/utils/viewerZoom'; +} from '@app/utils/viewerZoom'; import { getFirstPageAspectRatioFromStub } from '@app/utils/pageMetadata'; export function ZoomAPIBridge() { diff --git a/frontend/src/core/contexts/ViewerContext.tsx b/frontend/src/core/contexts/ViewerContext.tsx index a85619dec..510218447 100644 --- a/frontend/src/core/contexts/ViewerContext.tsx +++ b/frontend/src/core/contexts/ViewerContext.tsx @@ -7,7 +7,17 @@ import React, { useCallback, } from 'react'; import { useNavigation } from '@app/contexts/NavigationContext'; -import { createViewerActions } from '@core/contexts/viewer/viewerActions'; +import { + createViewerActions, + ScrollActions, + ZoomActions, + PanActions, + SelectionActions, + SpreadActions, + RotationActions, + SearchActions, + ExportActions, +} from '@app/contexts/viewer/viewerActions'; import { BridgeRef, BridgeApiMap, @@ -24,7 +34,8 @@ import { RotationState, SearchState, ExportState, -} from '@core/contexts/viewer/viewerBridges'; + ThumbnailAPIWrapper, +} from '@app/contexts/viewer/viewerBridges'; import { SpreadMode } from '@embedpdf/plugin-spread/react'; function useImmediateNotifier() { diff --git a/frontend/src/core/contexts/viewer/viewerActions.ts b/frontend/src/core/contexts/viewer/viewerActions.ts index 3eda0423f..daa9cb8c9 100644 --- a/frontend/src/core/contexts/viewer/viewerActions.ts +++ b/frontend/src/core/contexts/viewer/viewerActions.ts @@ -4,7 +4,7 @@ import { ViewerBridgeRegistry, ScrollState, ZoomState, -} from '@core/contexts/viewer/viewerBridges'; +} from '@app/contexts/viewer/viewerBridges'; export interface ScrollActions { scrollToPage: (page: number) => void;