@@ -35,23 +35,6 @@ import {
3535} from '@embedpdf/plugin-document-manager/preact' ;
3636import { CommandsPluginPackage } from '@embedpdf/plugin-commands/preact' ;
3737import { I18nPluginPackage } from '@embedpdf/plugin-i18n/preact' ;
38- import {
39- commands ,
40- viewerUISchema ,
41- englishTranslations ,
42- paramResolvers ,
43- dutchTranslations ,
44- germanTranslations ,
45- frenchTranslations ,
46- } from '../config' ;
47- import { SchemaToolbar } from '../ui/schema-toolbar' ;
48- import { SchemaPanel } from '../ui/schema-panel' ;
49- import { SchemaMenu } from '../ui/schema-menu' ;
50- import { SchemaModal } from '../ui/schema-modal' ;
51- // Custom components for schema-driven UI
52- import { ThumbnailsSidebar } from './thumbnails-sidebar' ;
53- import { SearchSidebar } from './search-sidebar' ;
54- import { OutlineSidebar } from './outline-sidebar' ;
5538import {
5639 MarqueeZoom ,
5740 ZoomMode ,
@@ -69,7 +52,6 @@ import {
6952} from '@embedpdf/plugin-tiling/preact' ;
7053import { ThumbnailPluginConfig , ThumbnailPluginPackage } from '@embedpdf/plugin-thumbnail/preact' ;
7154import { AnnotationLayer , AnnotationPluginPackage } from '@embedpdf/plugin-annotation/preact' ;
72- import { LoadingIndicator } from './ui/loading-indicator' ;
7355import { PrintPluginPackage } from '@embedpdf/plugin-print/preact' ;
7456import { FullscreenPluginPackage } from '@embedpdf/plugin-fullscreen/preact' ;
7557import { BookmarkPluginPackage } from '@embedpdf/plugin-bookmark/preact' ;
@@ -84,14 +66,35 @@ import { MarqueeCapture, CapturePluginPackage } from '@embedpdf/plugin-capture/p
8466import { HistoryPluginPackage } from '@embedpdf/plugin-history/preact' ;
8567import { RedactionLayer , RedactionPluginPackage } from '@embedpdf/plugin-redaction/preact' ;
8668import { AttachmentPluginPackage } from '@embedpdf/plugin-attachment/preact' ;
87- import { HintLayer } from './hint-layer' ;
88- import { CommentSidebar } from './comment-sidebar' ;
89- import { CustomZoomToolbar } from './custom-zoom-toolbar' ;
90- import { AnnotationSidebar } from './annotation-sidebar' ;
69+
70+ import { SchemaToolbar } from '@/ui/schema-toolbar' ;
71+ import { SchemaSidebar } from '@/ui/schema-sidebar' ;
72+ import { SchemaMenu } from '@/ui/schema-menu' ;
73+ import { SchemaModal } from '@/ui/schema-modal' ;
74+ // Custom components for schema-driven UI
75+ import { ThumbnailsSidebar } from '@/components/thumbnails-sidebar' ;
76+ import { SearchSidebar } from '@/components/search-sidebar' ;
77+ import { OutlineSidebar } from '@/components/outline-sidebar' ;
78+
79+ import { LoadingIndicator } from '@/components/ui/loading-indicator' ;
80+ import { HintLayer } from '@/components/hint-layer' ;
81+ import { CommentSidebar } from '@/components/comment-sidebar' ;
82+ import { CustomZoomToolbar } from '@/components/custom-zoom-toolbar' ;
83+ import { AnnotationSidebar } from '@/components/annotation-sidebar' ;
9184import { SchemaSelectionMenu } from '@/ui/schema-selection-menu' ;
9285import { SchemaOverlay } from '@/ui/schema-overlay' ;
93- import { PrintModal } from './print-modal' ;
94- import { PageControls } from './page-controls' ;
86+ import { PrintModal } from '@/components/print-modal' ;
87+ import { PageControls } from '@/components/page-controls' ;
88+
89+ import {
90+ commands ,
91+ viewerUISchema ,
92+ englishTranslations ,
93+ paramResolvers ,
94+ dutchTranslations ,
95+ germanTranslations ,
96+ frenchTranslations ,
97+ } from '@/config' ;
9598
9699export { ScrollStrategy , ZoomMode , SpreadMode , Rotation } ;
97100
@@ -303,9 +306,9 @@ export function PDFViewer({ config, onRegistryReady }: PDFViewerProps) {
303306 const uiRenderers = useMemo (
304307 ( ) => ( {
305308 toolbar : SchemaToolbar ,
306- sidebar : SchemaPanel , // SchemaPanel handles sidebars
309+ sidebar : SchemaSidebar ,
307310 modal : SchemaModal ,
308- overlay : SchemaOverlay , // SchemaOverlay handles floating overlays
311+ overlay : SchemaOverlay ,
309312 menu : SchemaMenu ,
310313 selectionMenu : SchemaSelectionMenu ,
311314 } ) ,
0 commit comments