@semiont/react-ui 0.5.3 → 0.5.4
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/dist/{PdfAnnotationCanvas.client-5QESNO5H.mjs → PdfAnnotationCanvas.client-CN3C3S55.js} +2 -2
- package/dist/{ar-UUMMNQKF.mjs → ar-U2EXWUMQ.js} +2 -5
- package/dist/ar-U2EXWUMQ.js.map +1 -0
- package/dist/assets/favicons/SemiontFavicon.d.ts +9 -0
- package/dist/assets/favicons/SemiontFavicon.d.ts.map +1 -0
- package/dist/assets/favicons/index.d.ts +12 -0
- package/dist/assets/favicons/index.d.ts.map +1 -0
- package/dist/{bn-AL5BJSR3.mjs → bn-DRJGV772.js} +2 -5
- package/dist/bn-DRJGV772.js.map +1 -0
- package/dist/{chunk-EBBL3VJI.mjs → chunk-3Q3TUKWP.js} +32 -32
- package/dist/{chunk-OJSRLEER.mjs → chunk-GERSK2DY.js} +2 -5
- package/dist/chunk-GERSK2DY.js.map +1 -0
- package/dist/{chunk-D4GAAQMM.mjs → chunk-K6BJDL2I.js} +1 -1
- package/dist/components/AnnotateReferencesProgressWidget.d.ts +15 -0
- package/dist/components/AnnotateReferencesProgressWidget.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +69 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/CodeMirrorRenderer.d.ts +25 -0
- package/dist/components/CodeMirrorRenderer.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.d.ts +30 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/LiveRegion.d.ts +41 -0
- package/dist/components/LiveRegion.d.ts.map +1 -0
- package/dist/components/ProtectedErrorBoundary.d.ts +27 -0
- package/dist/components/ProtectedErrorBoundary.d.ts.map +1 -0
- package/dist/components/ResizeHandle.d.ts +39 -0
- package/dist/components/ResizeHandle.d.ts.map +1 -0
- package/dist/components/ResourceTagsInline.d.ts +10 -0
- package/dist/components/ResourceTagsInline.d.ts.map +1 -0
- package/dist/components/SessionExpiryBanner.d.ts +2 -0
- package/dist/components/SessionExpiryBanner.d.ts.map +1 -0
- package/dist/components/SessionTimer.d.ts +2 -0
- package/dist/components/SessionTimer.d.ts.map +1 -0
- package/dist/components/StatusDisplay.d.ts +9 -0
- package/dist/components/StatusDisplay.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +27 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts +15 -0
- package/dist/components/Toolbar.d.ts.map +1 -0
- package/dist/components/UserMenuSkeleton.d.ts +2 -0
- package/dist/components/UserMenuSkeleton.d.ts.map +1 -0
- package/dist/components/annotation/AnnotateToolbar.d.ts +29 -0
- package/dist/components/annotation/AnnotateToolbar.d.ts.map +1 -0
- package/dist/components/annotation-popups/JsonLdView.d.ts +8 -0
- package/dist/components/annotation-popups/JsonLdView.d.ts.map +1 -0
- package/dist/components/annotation-popups/SharedPopupElements.d.ts +28 -0
- package/dist/components/annotation-popups/SharedPopupElements.d.ts.map +1 -0
- package/dist/components/branding/SemiontBranding.d.ts +13 -0
- package/dist/components/branding/SemiontBranding.d.ts.map +1 -0
- package/dist/components/error-states/ResourceErrorState.d.ts +11 -0
- package/dist/components/error-states/ResourceErrorState.d.ts.map +1 -0
- package/dist/components/image-annotation/AnnotationOverlay.d.ts +22 -0
- package/dist/components/image-annotation/AnnotationOverlay.d.ts.map +1 -0
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts +23 -0
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts.map +1 -0
- package/dist/components/layout/LeftSidebar.d.ts +24 -0
- package/dist/components/layout/LeftSidebar.d.ts.map +1 -0
- package/dist/components/layout/PageLayout.d.ts +21 -0
- package/dist/components/layout/PageLayout.d.ts.map +1 -0
- package/dist/components/layout/SkipLinks.d.ts +8 -0
- package/dist/components/layout/SkipLinks.d.ts.map +1 -0
- package/dist/components/layout/UnifiedHeader.d.ts +21 -0
- package/dist/components/layout/UnifiedHeader.d.ts.map +1 -0
- package/dist/components/loading-states/ComposeLoadingState.d.ts +10 -0
- package/dist/components/loading-states/ComposeLoadingState.d.ts.map +1 -0
- package/dist/components/loading-states/ResourceLoadingState.d.ts +7 -0
- package/dist/components/loading-states/ResourceLoadingState.d.ts.map +1 -0
- package/dist/components/modals/ConfigureGenerationStep.d.ts +36 -0
- package/dist/components/modals/ConfigureGenerationStep.d.ts.map +1 -0
- package/dist/components/modals/ConfigureSearchStep.d.ts +21 -0
- package/dist/components/modals/ConfigureSearchStep.d.ts.map +1 -0
- package/dist/components/modals/ContextSummary.d.ts +14 -0
- package/dist/components/modals/ContextSummary.d.ts.map +1 -0
- package/dist/components/modals/GatherContextStep.d.ts +23 -0
- package/dist/components/modals/GatherContextStep.d.ts.map +1 -0
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts +8 -0
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts.map +1 -0
- package/dist/components/modals/PermissionDeniedModal.d.ts +12 -0
- package/dist/components/modals/PermissionDeniedModal.d.ts.map +1 -0
- package/dist/components/modals/ReferenceWizardModal.d.ts +64 -0
- package/dist/components/modals/ReferenceWizardModal.d.ts.map +1 -0
- package/dist/components/modals/ResourceSearchModal.d.ts +16 -0
- package/dist/components/modals/ResourceSearchModal.d.ts.map +1 -0
- package/dist/components/modals/SearchModal.d.ts +20 -0
- package/dist/components/modals/SearchModal.d.ts.map +1 -0
- package/dist/components/modals/SearchResultsStep.d.ts +22 -0
- package/dist/components/modals/SearchResultsStep.d.ts.map +1 -0
- package/dist/components/modals/SessionExpiredModal.d.ts +12 -0
- package/dist/components/modals/SessionExpiredModal.d.ts.map +1 -0
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts +13 -0
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts.map +1 -0
- package/dist/components/navigation/Footer.d.ts +20 -0
- package/dist/components/navigation/Footer.d.ts.map +1 -0
- package/dist/components/navigation/NavigationMenu.d.ts +18 -0
- package/dist/components/navigation/NavigationMenu.d.ts.map +1 -0
- package/dist/components/navigation/ObservableLink.d.ts +52 -0
- package/dist/components/navigation/ObservableLink.d.ts.map +1 -0
- package/dist/components/navigation/SimpleNavigation.d.ts +35 -0
- package/dist/components/navigation/SimpleNavigation.d.ts.map +1 -0
- package/dist/components/navigation/SortableResourceTab.d.ts +7 -0
- package/dist/components/navigation/SortableResourceTab.d.ts.map +1 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts +8 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts.map +1 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts +25 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts.map +1 -0
- package/dist/components/resource/AnnotateView.d.ts +29 -0
- package/dist/components/resource/AnnotateView.d.ts.map +1 -0
- package/dist/components/resource/AnnotationHistory.d.ts +14 -0
- package/dist/components/resource/AnnotationHistory.d.ts.map +1 -0
- package/dist/components/resource/BrowseView.d.ts +28 -0
- package/dist/components/resource/BrowseView.d.ts.map +1 -0
- package/dist/components/resource/HistoryEvent.d.ts +19 -0
- package/dist/components/resource/HistoryEvent.d.ts.map +1 -0
- package/dist/components/resource/ResourceViewer.d.ts +46 -0
- package/dist/components/resource/ResourceViewer.d.ts.map +1 -0
- package/dist/components/resource/event-formatting.d.ts +61 -0
- package/dist/components/resource/event-formatting.d.ts.map +1 -0
- package/dist/components/resource/panels/AssessmentEntry.d.ts +11 -0
- package/dist/components/resource/panels/AssessmentEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/AssessmentPanel.d.ts +32 -0
- package/dist/components/resource/panels/AssessmentPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/AssistSection.d.ts +27 -0
- package/dist/components/resource/panels/AssistSection.d.ts.map +1 -0
- package/dist/components/resource/panels/CollaborationPanel.d.ts +28 -0
- package/dist/components/resource/panels/CollaborationPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/CommentEntry.d.ts +12 -0
- package/dist/components/resource/panels/CommentEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/CommentsPanel.d.ts +32 -0
- package/dist/components/resource/panels/CommentsPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/HighlightEntry.d.ts +11 -0
- package/dist/components/resource/panels/HighlightEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/HighlightPanel.d.ts +30 -0
- package/dist/components/resource/panels/HighlightPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/JsonLdPanel.d.ts +9 -0
- package/dist/components/resource/panels/JsonLdPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/PanelHeader.d.ts +13 -0
- package/dist/components/resource/panels/PanelHeader.d.ts.map +1 -0
- package/dist/components/resource/panels/ReferenceEntry.d.ts +15 -0
- package/dist/components/resource/panels/ReferenceEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/ReferencesPanel.d.ts +43 -0
- package/dist/components/resource/panels/ReferencesPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts +27 -0
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/StatisticsPanel.d.ts +12 -0
- package/dist/components/resource/panels/StatisticsPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/TagEntry.d.ts +11 -0
- package/dist/components/resource/panels/TagEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/TaggingPanel.d.ts +34 -0
- package/dist/components/resource/panels/TaggingPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts +52 -0
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/agent-label.d.ts +11 -0
- package/dist/components/resource/panels/agent-label.d.ts.map +1 -0
- package/dist/components/settings/SettingsPanel.d.ts +19 -0
- package/dist/components/settings/SettingsPanel.d.ts.map +1 -0
- package/dist/components/viewers/ImageViewer.d.ts +8 -0
- package/dist/components/viewers/ImageViewer.d.ts.map +1 -0
- package/dist/components/viewers/index.d.ts +2 -0
- package/dist/components/viewers/index.d.ts.map +1 -0
- package/dist/contexts/AnnotationContext.d.ts +46 -0
- package/dist/contexts/AnnotationContext.d.ts.map +1 -0
- package/dist/contexts/ResourceAnnotationsContext.d.ts +14 -0
- package/dist/contexts/ResourceAnnotationsContext.d.ts.map +1 -0
- package/dist/contexts/RoutingContext.d.ts +59 -0
- package/dist/contexts/RoutingContext.d.ts.map +1 -0
- package/dist/contexts/ThemeContext.d.ts +15 -0
- package/dist/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/contexts/TranslationContext.d.ts +51 -0
- package/dist/contexts/TranslationContext.d.ts.map +1 -0
- package/dist/contexts/useEventSubscription.d.ts +41 -0
- package/dist/contexts/useEventSubscription.d.ts.map +1 -0
- package/dist/{cs-UMINALSU.mjs → cs-PTWDM23V.js} +2 -5
- package/dist/{cs-UMINALSU.mjs.map → cs-PTWDM23V.js.map} +1 -1
- package/dist/{da-FKUX6CDL.mjs → da-KSNIKYSS.js} +2 -5
- package/dist/da-KSNIKYSS.js.map +1 -0
- package/dist/{de-XSJ3E25S.mjs → de-F2XBEWFY.js} +2 -5
- package/dist/de-F2XBEWFY.js.map +1 -0
- package/dist/design-tokens/index.d.ts +178 -0
- package/dist/design-tokens/index.d.ts.map +1 -0
- package/dist/{el-UJXNRCBP.mjs → el-DLD2GWAP.js} +2 -5
- package/dist/el-DLD2GWAP.js.map +1 -0
- package/dist/{en-J5DHKLQ5.mjs → en-L45VK7BS.js} +3 -3
- package/dist/{es-VURP62BU.mjs → es-WLPYWGB5.js} +2 -5
- package/dist/es-WLPYWGB5.js.map +1 -0
- package/dist/{fa-TIT5ZPZY.mjs → fa-BAXHSDZG.js} +2 -5
- package/dist/fa-BAXHSDZG.js.map +1 -0
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts +33 -0
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts +37 -0
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/ExportCard.d.ts +18 -0
- package/dist/features/admin-exchange/components/ExportCard.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/ImportCard.d.ts +32 -0
- package/dist/features/admin-exchange/components/ImportCard.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/ImportProgress.d.ts +26 -0
- package/dist/features/admin-exchange/components/ImportProgress.d.ts.map +1 -0
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts +31 -0
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts.map +1 -0
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts +42 -0
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts.map +1 -0
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts +12 -0
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts.map +1 -0
- package/dist/features/admin-users/components/AdminUsersPage.d.ts +88 -0
- package/dist/features/admin-users/components/AdminUsersPage.d.ts.map +1 -0
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts +17 -0
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts.map +1 -0
- package/dist/features/auth/components/AuthErrorDisplay.d.ts +34 -0
- package/dist/features/auth/components/AuthErrorDisplay.d.ts.map +1 -0
- package/dist/features/auth/components/SignInForm.d.ts +80 -0
- package/dist/features/auth/components/SignInForm.d.ts.map +1 -0
- package/dist/features/auth/components/SignUpForm.d.ts +39 -0
- package/dist/features/auth/components/SignUpForm.d.ts.map +1 -0
- package/dist/features/auth-welcome/components/WelcomePage.d.ts +62 -0
- package/dist/features/auth-welcome/components/WelcomePage.d.ts.map +1 -0
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts +12 -0
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts.map +1 -0
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts +32 -0
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts.map +1 -0
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts +16 -0
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts.map +1 -0
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts +27 -0
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts.map +1 -0
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts +25 -0
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts.map +1 -0
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts +38 -0
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts.map +1 -0
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts +83 -0
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts.map +1 -0
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts +23 -0
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts.map +1 -0
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts +59 -0
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts.map +1 -0
- package/dist/features/resource-discovery/components/ResourceCard.d.ts +17 -0
- package/dist/features/resource-discovery/components/ResourceCard.d.ts.map +1 -0
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts +43 -0
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts.map +1 -0
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts +15 -0
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts.map +1 -0
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts +80 -0
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts.map +1 -0
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts +11 -0
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts.map +1 -0
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts +48 -0
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts.map +1 -0
- package/dist/{fi-F7VTGT4H.mjs → fi-FCHSYVOT.js} +2 -5
- package/dist/fi-FCHSYVOT.js.map +1 -0
- package/dist/{fr-2ZR26VF7.mjs → fr-3UERBSL6.js} +2 -5
- package/dist/fr-3UERBSL6.js.map +1 -0
- package/dist/{he-BXP2KYVZ.mjs → he-F6F3FV2K.js} +2 -5
- package/dist/he-F6F3FV2K.js.map +1 -0
- package/dist/{hi-PSWTP3NC.mjs → hi-4BK6IK7Q.js} +2 -5
- package/dist/hi-4BK6IK7Q.js.map +1 -0
- package/dist/hooks/useDebounce.d.ts +29 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDragAnnouncements.d.ts +12 -0
- package/dist/hooks/useDragAnnouncements.d.ts.map +1 -0
- package/dist/hooks/useHoverDelay.d.ts +8 -0
- package/dist/hooks/useHoverDelay.d.ts.map +1 -0
- package/dist/hooks/useHoverEmitter.d.ts +8 -0
- package/dist/hooks/useHoverEmitter.d.ts.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +29 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/hooks/useLineNumbers.d.ts +8 -0
- package/dist/hooks/useLineNumbers.d.ts.map +1 -0
- package/dist/hooks/useMediaToken.d.ts +7 -0
- package/dist/hooks/useMediaToken.d.ts.map +1 -0
- package/dist/hooks/useObservable.d.ts +23 -0
- package/dist/hooks/useObservable.d.ts.map +1 -0
- package/dist/hooks/useObservableBrowse.d.ts +70 -0
- package/dist/hooks/useObservableBrowse.d.ts.map +1 -0
- package/dist/hooks/usePanelWidth.d.ts +37 -0
- package/dist/hooks/usePanelWidth.d.ts.map +1 -0
- package/dist/hooks/useResourceContent.d.ts +7 -0
- package/dist/hooks/useResourceContent.d.ts.map +1 -0
- package/dist/hooks/useRovingTabIndex.d.ts +13 -0
- package/dist/hooks/useRovingTabIndex.d.ts.map +1 -0
- package/dist/hooks/useSearchAnnouncements.d.ts +10 -0
- package/dist/hooks/useSearchAnnouncements.d.ts.map +1 -0
- package/dist/hooks/useSessionExpiry.d.ts +10 -0
- package/dist/hooks/useSessionExpiry.d.ts.map +1 -0
- package/dist/hooks/useShellStateUnit.d.ts +9 -0
- package/dist/hooks/useShellStateUnit.d.ts.map +1 -0
- package/dist/hooks/useStateUnit.d.ts +3 -0
- package/dist/hooks/useStateUnit.d.ts.map +1 -0
- package/dist/hooks/useUI.d.ts +24 -0
- package/dist/hooks/useUI.d.ts.map +1 -0
- package/dist/{id-HO6TXGTO.mjs → id-7ECCWP3J.js} +2 -5
- package/dist/id-7ECCWP3J.js.map +1 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/{index.mjs → index.js} +43 -46
- package/dist/index.js.map +1 -0
- package/dist/integrations/css-modules-helper.d.ts +114 -0
- package/dist/integrations/css-modules-helper.d.ts.map +1 -0
- package/dist/integrations/styled-components-theme.d.ts +95 -0
- package/dist/integrations/styled-components-theme.d.ts.map +1 -0
- package/dist/integrations/tailwind-plugin.d.cts +3 -0
- package/dist/integrations/tailwind-plugin.d.cts.map +1 -0
- package/dist/{it-AGTDMBL3.mjs → it-234Z6XK6.js} +2 -5
- package/dist/it-234Z6XK6.js.map +1 -0
- package/dist/{ja-TTGOVF5K.mjs → ja-PJWQI4OQ.js} +2 -5
- package/dist/ja-PJWQI4OQ.js.map +1 -0
- package/dist/{ko-FF77IQ7N.mjs → ko-APUEW2RS.js} +2 -5
- package/dist/ko-APUEW2RS.js.map +1 -0
- package/dist/lib/annotation-overlay.d.ts +71 -0
- package/dist/lib/annotation-overlay.d.ts.map +1 -0
- package/dist/lib/annotation-registry.d.ts +62 -0
- package/dist/lib/annotation-registry.d.ts.map +1 -0
- package/dist/lib/browser-pdfjs.d.ts +93 -0
- package/dist/lib/browser-pdfjs.d.ts.map +1 -0
- package/dist/lib/button-styles.d.ts +27 -0
- package/dist/lib/button-styles.d.ts.map +1 -0
- package/dist/lib/codemirror-handlers.d.ts +52 -0
- package/dist/lib/codemirror-handlers.d.ts.map +1 -0
- package/dist/lib/codemirror-json-theme.d.ts +8 -0
- package/dist/lib/codemirror-json-theme.d.ts.map +1 -0
- package/dist/lib/codemirror-logic.d.ts +66 -0
- package/dist/lib/codemirror-logic.d.ts.map +1 -0
- package/dist/lib/codemirror-widgets.d.ts +39 -0
- package/dist/lib/codemirror-widgets.d.ts.map +1 -0
- package/dist/lib/formatTime.d.ts +2 -0
- package/dist/lib/formatTime.d.ts.map +1 -0
- package/dist/lib/media-shapes.d.ts +51 -0
- package/dist/lib/media-shapes.d.ts.map +1 -0
- package/dist/lib/pdf-coordinates.d.ts +69 -0
- package/dist/lib/pdf-coordinates.d.ts.map +1 -0
- package/dist/lib/resource-utils.d.ts +22 -0
- package/dist/lib/resource-utils.d.ts.map +1 -0
- package/dist/lib/scroll-utils.d.ts +20 -0
- package/dist/lib/scroll-utils.d.ts.map +1 -0
- package/dist/lib/text-segmentation.d.ts +25 -0
- package/dist/lib/text-segmentation.d.ts.map +1 -0
- package/dist/lib/text-selection-handler.d.ts +46 -0
- package/dist/lib/text-selection-handler.d.ts.map +1 -0
- package/dist/lib/validation.d.ts +47 -0
- package/dist/lib/validation.d.ts.map +1 -0
- package/dist/{ms-UPQWWIL4.mjs → ms-PJBZWZWD.js} +2 -5
- package/dist/ms-PJBZWZWD.js.map +1 -0
- package/dist/{nl-W75HEPFL.mjs → nl-L4C3ZBCU.js} +2 -5
- package/dist/nl-L4C3ZBCU.js.map +1 -0
- package/dist/{no-R4W7W7ZU.mjs → no-QE5N5KNG.js} +2 -5
- package/dist/no-QE5N5KNG.js.map +1 -0
- package/dist/{pl-GQC2ELWO.mjs → pl-5Q2D23PD.js} +2 -5
- package/dist/pl-5Q2D23PD.js.map +1 -0
- package/dist/{pt-YGVT62RU.mjs → pt-AIGUOIOC.js} +2 -5
- package/dist/pt-AIGUOIOC.js.map +1 -0
- package/dist/{ro-TST6XS6X.mjs → ro-T56CSHTY.js} +2 -5
- package/dist/ro-T56CSHTY.js.map +1 -0
- package/dist/session/SemiontProvider.d.ts +28 -0
- package/dist/session/SemiontProvider.d.ts.map +1 -0
- package/dist/session/web-browser-storage.d.ts +19 -0
- package/dist/session/web-browser-storage.d.ts.map +1 -0
- package/dist/state/session-state-unit.d.ts +9 -0
- package/dist/state/session-state-unit.d.ts.map +1 -0
- package/dist/state/shell-state-unit.d.ts +33 -0
- package/dist/state/shell-state-unit.d.ts.map +1 -0
- package/dist/{sv-TQLF6HV7.mjs → sv-L4TJQ2UH.js} +2 -5
- package/dist/sv-L4TJQ2UH.js.map +1 -0
- package/dist/{test-utils.d.mts → test-utils.d.ts} +18 -21
- package/dist/test-utils.d.ts.map +1 -0
- package/dist/{test-utils.mjs → test-utils.js} +5 -5
- package/dist/{th-HJUIETVR.mjs → th-6O7Y6O2Q.js} +2 -5
- package/dist/th-6O7Y6O2Q.js.map +1 -0
- package/dist/{tr-CW3C46TW.mjs → tr-D4CQCSNO.js} +2 -5
- package/dist/tr-D4CQCSNO.js.map +1 -0
- package/dist/types/AnnotationManager.d.ts +53 -0
- package/dist/types/AnnotationManager.d.ts.map +1 -0
- package/dist/{TranslationManager-9Xj3MIWQ.d.mts → types/TranslationManager.d.ts} +2 -3
- package/dist/types/TranslationManager.d.ts.map +1 -0
- package/dist/types/annotation-props.d.ts +108 -0
- package/dist/types/annotation-props.d.ts.map +1 -0
- package/dist/types/collapsible-navigation.d.ts +69 -0
- package/dist/types/collapsible-navigation.d.ts.map +1 -0
- package/dist/types/modals.d.ts +77 -0
- package/dist/types/modals.d.ts.map +1 -0
- package/dist/types/navigation.d.ts +35 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/dist/types/resource-viewer.d.ts +19 -0
- package/dist/types/resource-viewer.d.ts.map +1 -0
- package/dist/types/simple-navigation.d.ts +15 -0
- package/dist/types/simple-navigation.d.ts.map +1 -0
- package/dist/types/translation.d.ts +5 -0
- package/dist/types/translation.d.ts.map +1 -0
- package/dist/{uk-WTHZQB2U.mjs → uk-2HMQG6ND.js} +2 -5
- package/dist/uk-2HMQG6ND.js.map +1 -0
- package/dist/{vi-PHWHJLKP.mjs → vi-XVJ4RUEJ.js} +2 -5
- package/dist/{vi-PHWHJLKP.mjs.map → vi-XVJ4RUEJ.js.map} +1 -1
- package/dist/{zh-MO3FCUD6.mjs → zh-K2KDPGHK.js} +2 -5
- package/dist/zh-K2KDPGHK.js.map +1 -0
- package/package.json +19 -18
- package/src/components/resource/HistoryEvent.tsx +0 -3
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +1 -4
- package/src/components/resource/__tests__/event-formatting.test.ts +2 -14
- package/src/components/resource/event-formatting.ts +3 -4
- package/src/components/resource/panels/AssessmentEntry.tsx +4 -1
- package/src/components/resource/panels/CommentEntry.tsx +4 -1
- package/src/components/resource/panels/HighlightEntry.tsx +4 -1
- package/src/components/resource/panels/ReferenceEntry.tsx +4 -1
- package/src/components/resource/panels/ResourceInfoPanel.tsx +11 -23
- package/src/components/resource/panels/TagEntry.tsx +4 -1
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +2 -2
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +12 -16
- package/src/components/resource/panels/__tests__/agent-label.test.ts +93 -0
- package/src/components/resource/panels/agent-label.ts +20 -0
- package/src/features/resource-compose/state/compose-page-state-unit.ts +0 -1
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +0 -1
- package/translations/ar.json +0 -3
- package/translations/bn.json +0 -3
- package/translations/cs.json +0 -3
- package/translations/da.json +0 -3
- package/translations/de.json +0 -3
- package/translations/el.json +0 -3
- package/translations/en.json +2 -5
- package/translations/es.json +0 -3
- package/translations/fa.json +0 -3
- package/translations/fi.json +0 -3
- package/translations/fr.json +0 -3
- package/translations/he.json +0 -3
- package/translations/hi.json +0 -3
- package/translations/id.json +0 -3
- package/translations/it.json +0 -3
- package/translations/ja.json +0 -3
- package/translations/ko.json +0 -3
- package/translations/ms.json +0 -3
- package/translations/nl.json +0 -3
- package/translations/no.json +0 -3
- package/translations/pl.json +0 -3
- package/translations/pt.json +0 -3
- package/translations/ro.json +0 -3
- package/translations/sv.json +0 -3
- package/translations/th.json +0 -3
- package/translations/tr.json +0 -3
- package/translations/uk.json +0 -3
- package/translations/vi.json +0 -3
- package/translations/zh.json +0 -3
- package/dist/ar-UUMMNQKF.mjs.map +0 -1
- package/dist/bn-AL5BJSR3.mjs.map +0 -1
- package/dist/chunk-OJSRLEER.mjs.map +0 -1
- package/dist/da-FKUX6CDL.mjs.map +0 -1
- package/dist/de-XSJ3E25S.mjs.map +0 -1
- package/dist/el-UJXNRCBP.mjs.map +0 -1
- package/dist/es-VURP62BU.mjs.map +0 -1
- package/dist/fa-TIT5ZPZY.mjs.map +0 -1
- package/dist/fi-F7VTGT4H.mjs.map +0 -1
- package/dist/fr-2ZR26VF7.mjs.map +0 -1
- package/dist/he-BXP2KYVZ.mjs.map +0 -1
- package/dist/hi-PSWTP3NC.mjs.map +0 -1
- package/dist/id-HO6TXGTO.mjs.map +0 -1
- package/dist/index.d.mts +0 -3546
- package/dist/index.mjs.map +0 -1
- package/dist/it-AGTDMBL3.mjs.map +0 -1
- package/dist/ja-TTGOVF5K.mjs.map +0 -1
- package/dist/ko-FF77IQ7N.mjs.map +0 -1
- package/dist/ms-UPQWWIL4.mjs.map +0 -1
- package/dist/nl-W75HEPFL.mjs.map +0 -1
- package/dist/no-R4W7W7ZU.mjs.map +0 -1
- package/dist/pl-GQC2ELWO.mjs.map +0 -1
- package/dist/pt-YGVT62RU.mjs.map +0 -1
- package/dist/ro-TST6XS6X.mjs.map +0 -1
- package/dist/sv-TQLF6HV7.mjs.map +0 -1
- package/dist/th-HJUIETVR.mjs.map +0 -1
- package/dist/tr-CW3C46TW.mjs.map +0 -1
- package/dist/uk-WTHZQB2U.mjs.map +0 -1
- package/dist/zh-MO3FCUD6.mjs.map +0 -1
- /package/dist/{PdfAnnotationCanvas.client-5QESNO5H.mjs.map → PdfAnnotationCanvas.client-CN3C3S55.js.map} +0 -0
- /package/dist/{chunk-EBBL3VJI.mjs.map → chunk-3Q3TUKWP.js.map} +0 -0
- /package/dist/{chunk-D4GAAQMM.mjs.map → chunk-K6BJDL2I.js.map} +0 -0
- /package/dist/{en-J5DHKLQ5.mjs.map → en-L45VK7BS.js.map} +0 -0
- /package/dist/{test-utils.mjs.map → test-utils.js.map} +0 -0
- /package/src/integrations/{tailwind-plugin.js → tailwind-plugin.cjs} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ResourceDescriptor as SemiontResource } from '@semiont/core';
|
|
2
|
+
import type { AnnotationsCollection } from '../../types/annotation-props';
|
|
3
|
+
/**
|
|
4
|
+
* ResourceViewer - Display and interact with resource content and annotations
|
|
5
|
+
*
|
|
6
|
+
* This component uses event-driven architecture for real-time updates:
|
|
7
|
+
* - Subscribes to make-meaning events (mark:added, mark:removed, mark:body-updated)
|
|
8
|
+
* - Automatically invalidates cache when annotations change
|
|
9
|
+
* - No manual refetch needed - events handle cache invalidation
|
|
10
|
+
*
|
|
11
|
+
* Requirements:
|
|
12
|
+
* - Must be wrapped in SemiontProvider (which owns the session's event bus)
|
|
13
|
+
* - Must be wrapped in CacheContext (provides cache manager)
|
|
14
|
+
*
|
|
15
|
+
* Event flow:
|
|
16
|
+
* make-meaning → EventLog → SSE → EventBus → ResourceViewer → Cache invalidation
|
|
17
|
+
*
|
|
18
|
+
* Phase 2 complete: Event-based cache invalidation replaces manual refetch
|
|
19
|
+
* Phase 3 complete: Fully event-driven - all user interactions use unified event bus
|
|
20
|
+
*/
|
|
21
|
+
interface Props {
|
|
22
|
+
resource: SemiontResource & {
|
|
23
|
+
content: string;
|
|
24
|
+
};
|
|
25
|
+
annotations: AnnotationsCollection;
|
|
26
|
+
generatingReferenceId?: string | null;
|
|
27
|
+
showLineNumbers?: boolean;
|
|
28
|
+
hoverDelayMs?: number;
|
|
29
|
+
hoveredAnnotationId?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @emits mark:delete - User requested to delete annotation. Payload: { annotationId: string }
|
|
33
|
+
* @emits panel:open - Request to open panel with annotation. Payload: { panel: string, scrollToAnnotationId?: string, motivation?: Motivation }
|
|
34
|
+
*
|
|
35
|
+
* @subscribes mark:mode-toggled - Toggles between browse and annotate mode. Payload: { mode: 'browse' | 'annotate' }
|
|
36
|
+
* @subscribes mark:added - New annotation was added. Payload: { annotation: Annotation }
|
|
37
|
+
* @subscribes mark:removed - Annotation was removed. Payload: { annotationId: string }
|
|
38
|
+
* @subscribes mark:body-updated - Annotation was updated. Payload: { annotation: Annotation }
|
|
39
|
+
* @subscribes mark:selection-changed - Text selection tool changed. Payload: { selection: boolean }
|
|
40
|
+
* @subscribes mark:click-changed - Click annotation tool changed. Payload: { click: 'detail' | 'scroll' | null }
|
|
41
|
+
* @subscribes mark:shape-changed - Drawing shape changed. Payload: { shape: string }
|
|
42
|
+
* @subscribes browse:click - User clicked on annotation. Payload: { annotationId: string }
|
|
43
|
+
*/
|
|
44
|
+
export declare function ResourceViewer({ resource, annotations, generatingReferenceId, showLineNumbers, hoverDelayMs, hoveredAnnotationId: hoveredAnnotationIdProp }: Props): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=ResourceViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceViewer.d.ts","sourceRoot":"","sources":["../../../src/components/resource/ResourceViewer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAA4B,kBAAkB,IAAI,eAAe,EAAc,MAAM,eAAe,CAAC;AAOjH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAG1E;;;;;;;;;;;;;;;;;GAiBG;AACH,UAAU,KAAK;IACb,QAAQ,EAAE,eAAe,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,WAAW,EAAE,qBAAqB,CAAC;IACnC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,eAAuB,EACvB,YAAY,EACZ,mBAAmB,EAAE,uBAAuB,EAC7C,EAAE,KAAK,2CA8ZP"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event Formatting Utilities
|
|
3
|
+
*
|
|
4
|
+
* Display and formatting utilities for resource events.
|
|
5
|
+
* No React dependencies - safe to use in any JavaScript environment.
|
|
6
|
+
*/
|
|
7
|
+
import type { StoredEventLike, PersistedEventType } from '@semiont/core';
|
|
8
|
+
import type { Annotation } from '@semiont/core';
|
|
9
|
+
type TranslateFn = (key: string, params?: Record<string, string | number>) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Format a DID or user ID for display.
|
|
12
|
+
*
|
|
13
|
+
* did:web:example.com:users:admin%40example.com → admin@example.com
|
|
14
|
+
* did:web:system:smelter → Smelter
|
|
15
|
+
* plain-string → plain-string
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatUserId(userId: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Format event type for display with i18n support
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatEventType(type: PersistedEventType, t: TranslateFn, payload?: any): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get emoji for event type
|
|
24
|
+
* For unified annotation events, pass the payload to determine motivation
|
|
25
|
+
*/
|
|
26
|
+
export declare function getEventEmoji(type: PersistedEventType, payload?: any): string;
|
|
27
|
+
/**
|
|
28
|
+
* Format timestamp as relative time with i18n support
|
|
29
|
+
*/
|
|
30
|
+
export declare function formatRelativeTime(timestamp: string, t: TranslateFn): string;
|
|
31
|
+
/**
|
|
32
|
+
* Get display content from event payload - complete implementation
|
|
33
|
+
*/
|
|
34
|
+
export declare function getEventDisplayContent(event: StoredEventLike, annotations: Annotation[], // Unified annotations array (all types)
|
|
35
|
+
allEvents: StoredEventLike[]): {
|
|
36
|
+
exact: string;
|
|
37
|
+
isQuoted: boolean;
|
|
38
|
+
isTag: boolean;
|
|
39
|
+
} | null;
|
|
40
|
+
/**
|
|
41
|
+
* Get entity types from event payload
|
|
42
|
+
*/
|
|
43
|
+
export declare function getEventEntityTypes(event: StoredEventLike): string[];
|
|
44
|
+
/**
|
|
45
|
+
* Resource creation details derived from a yield:created or yield:cloned
|
|
46
|
+
* event. The creation kind (`type`) is read from the event channel —
|
|
47
|
+
* the redundant `creationMethod` payload field is gone.
|
|
48
|
+
*/
|
|
49
|
+
export interface ResourceCreationDetails {
|
|
50
|
+
type: 'created' | 'cloned';
|
|
51
|
+
userId?: string;
|
|
52
|
+
sourceDocId?: string;
|
|
53
|
+
parentResourceId?: string;
|
|
54
|
+
metadata?: Record<string, any>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get resource creation details from event
|
|
58
|
+
*/
|
|
59
|
+
export declare function getResourceCreationDetails(event: StoredEventLike): ResourceCreationDetails | null;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=event-formatting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-formatting.d.ts","sourceRoot":"","sources":["../../../src/components/resource/event-formatting.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAMrF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAiBnD;AAMD;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CA2C/F;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CA0C7E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAc5E;AAUD;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,eAAe,EACtB,WAAW,EAAE,UAAU,EAAE,EAAE,wCAAwC;AACnE,SAAS,EAAE,eAAe,EAAE,GAC3B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA6G7D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,EAAE,CAapE;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,eAAe,GAAG,uBAAuB,GAAG,IAAI,CAuBjG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { Annotation } from '@semiont/core';
|
|
3
|
+
interface AssessmentEntryProps {
|
|
4
|
+
assessment: Annotation;
|
|
5
|
+
isFocused: boolean;
|
|
6
|
+
isHovered?: boolean;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare function AssessmentEntry({ assessment, isFocused, isHovered, ref, }: AssessmentEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=AssessmentEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssessmentEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/AssessmentEntry.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAehD,UAAU,oBAAoB;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AA+CD,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,SAAS,EACT,SAAiB,EACjB,GAAG,GACJ,EAAE,oBAAoB,2CA6CtB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { components, Selector } from '@semiont/core';
|
|
2
|
+
import './AssessmentPanel.css';
|
|
3
|
+
import type { Annotation } from '@semiont/core';
|
|
4
|
+
type Motivation = components['schemas']['Motivation'];
|
|
5
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
6
|
+
interface PendingAnnotation {
|
|
7
|
+
selector: Selector | Selector[];
|
|
8
|
+
motivation: Motivation;
|
|
9
|
+
}
|
|
10
|
+
interface AssessmentPanelProps {
|
|
11
|
+
annotations: Annotation[];
|
|
12
|
+
pendingAnnotation: PendingAnnotation | null;
|
|
13
|
+
isAssisting?: boolean;
|
|
14
|
+
progress?: JobProgress | null;
|
|
15
|
+
locale?: string;
|
|
16
|
+
/** BCP-47 tag of the resource being analyzed — forwarded to the assist call. */
|
|
17
|
+
sourceLanguage?: string;
|
|
18
|
+
annotateMode?: boolean;
|
|
19
|
+
scrollToAnnotationId?: string | null;
|
|
20
|
+
onScrollCompleted?: () => void;
|
|
21
|
+
hoveredAnnotationId?: string | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Panel for managing assessment annotations with text input
|
|
25
|
+
*
|
|
26
|
+
* @emits mark:create - Create new assessment annotation. Payload: { motivation: 'assessing', selector: Selector | Selector[], body: Body[] }
|
|
27
|
+
* @emits mark:cancel-pending - Cancel pending assessment annotation. Payload: undefined
|
|
28
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
29
|
+
*/
|
|
30
|
+
export declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, locale, sourceLanguage, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=AssessmentPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssessmentPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/AssessmentPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK1D,OAAO,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAGxD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB;AAmBD,UAAU,oBAAoB;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,iBAAiB,EACjB,WAAmB,EACnB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,YAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,GACpB,EAAE,oBAAoB,2CAyMtB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { components } from '@semiont/core';
|
|
2
|
+
import './AssistSection.css';
|
|
3
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
4
|
+
interface AssistSectionProps {
|
|
5
|
+
annotationType: 'highlight' | 'assessment' | 'comment';
|
|
6
|
+
isAssisting: boolean;
|
|
7
|
+
/** User UI locale — written into the annotation body's `language` field for comment/assessment. */
|
|
8
|
+
locale?: string;
|
|
9
|
+
/** BCP-47 tag of the resource being analyzed. Forwarded to the prompt so the LLM analyzes non-English source correctly. */
|
|
10
|
+
sourceLanguage?: string;
|
|
11
|
+
progress?: JobProgress | null | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Shared assist section for Highlight, Assessment, and Comment panels
|
|
15
|
+
*
|
|
16
|
+
* Provides:
|
|
17
|
+
* - Optional instructions textarea
|
|
18
|
+
* - Optional tone selector (for comments)
|
|
19
|
+
* - Assist button with sparkle animation
|
|
20
|
+
* - Progress display during annotation assist
|
|
21
|
+
*
|
|
22
|
+
* @emits mark:assist-request - Start assist for annotation type. Payload: { motivation: Motivation, options: { instructions?: string, tone?: string, density?: number } }
|
|
23
|
+
* @emits mark:progress-dismiss - Dismiss the annotation progress display
|
|
24
|
+
*/
|
|
25
|
+
export declare function AssistSection({ annotationType, isAssisting, locale, sourceLanguage, progress, }: AssistSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=AssistSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistSection.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/AssistSection.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,qBAAqB,CAAC;AAE7B,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAExD,UAAU,kBAAkB;IAC1B,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2HAA2H;IAC3H,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,WAAW,EACX,MAAM,EACN,cAAc,EACd,QAAQ,GACT,EAAE,kBAAkB,2CA8NpB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ConnectionState } from '@semiont/core';
|
|
2
|
+
import './CollaborationPanel.css';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* Connection state from `client.actor.state$`. See
|
|
6
|
+
* `packages/api-client/src/state/domain/actor-state-unit.ts`.
|
|
7
|
+
*
|
|
8
|
+
* UI mapping:
|
|
9
|
+
* `open` | `reconnecting` | `initial` | `connecting`
|
|
10
|
+
* → treated as "healthy" (green dot, "Live" label, event count visible).
|
|
11
|
+
* `reconnecting` is specifically INCLUDED in healthy because a
|
|
12
|
+
* brief reconnect (mount churn, channel-set change, quick blip)
|
|
13
|
+
* shouldn't alarm the user. The 100 ms reconnect debounce and
|
|
14
|
+
* sub-second fetch retry make `reconnecting` a transient state.
|
|
15
|
+
* `degraded` | `closed`
|
|
16
|
+
* → treated as "disconnected" (red dot, "Disconnected" label).
|
|
17
|
+
* `degraded` is the 3 s threshold at which the state machine
|
|
18
|
+
* decides the disconnect is sustained; this is the UI-banner
|
|
19
|
+
* trigger the plan was designed around.
|
|
20
|
+
*/
|
|
21
|
+
state: ConnectionState;
|
|
22
|
+
eventCount: number;
|
|
23
|
+
lastEventTimestamp?: string;
|
|
24
|
+
knowledgeBaseName?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function CollaborationPanel({ state, eventCount, lastEventTimestamp, knowledgeBaseName }: Props): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=CollaborationPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaborationPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/CollaborationPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,0BAA0B,CAAC;AAElC,UAAU,KAAK;IACb;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EAClB,EAAE,KAAK,2CAoGP"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Ref } from 'react';
|
|
2
|
+
import type { Annotation } from '@semiont/core';
|
|
3
|
+
interface CommentEntryProps {
|
|
4
|
+
comment: Annotation;
|
|
5
|
+
isFocused: boolean;
|
|
6
|
+
isHovered?: boolean;
|
|
7
|
+
annotateMode?: boolean;
|
|
8
|
+
ref?: Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export declare function CommentEntry({ comment, isFocused, isHovered, annotateMode, ref, }: CommentEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=CommentEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/CommentEntry.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoD,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAOhD,UAAU,iBAAiB;IACzB,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAmBD,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,YAAmB,EACnB,GAAG,GACJ,EAAE,iBAAiB,2CAyHnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { components, Selector } from '@semiont/core';
|
|
2
|
+
import './CommentsPanel.css';
|
|
3
|
+
import type { Annotation } from '@semiont/core';
|
|
4
|
+
type Motivation = components['schemas']['Motivation'];
|
|
5
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
6
|
+
interface PendingAnnotation {
|
|
7
|
+
selector: Selector | Selector[];
|
|
8
|
+
motivation: Motivation;
|
|
9
|
+
}
|
|
10
|
+
interface CommentsPanelProps {
|
|
11
|
+
annotations: Annotation[];
|
|
12
|
+
pendingAnnotation: PendingAnnotation | null;
|
|
13
|
+
annotateMode?: boolean;
|
|
14
|
+
isAssisting?: boolean;
|
|
15
|
+
progress?: JobProgress | null;
|
|
16
|
+
locale?: string;
|
|
17
|
+
/** BCP-47 tag of the resource being analyzed — forwarded to the assist call. */
|
|
18
|
+
sourceLanguage?: string;
|
|
19
|
+
scrollToAnnotationId?: string | null;
|
|
20
|
+
onScrollCompleted?: () => void;
|
|
21
|
+
hoveredAnnotationId?: string | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Panel for managing comment annotations with text input
|
|
25
|
+
*
|
|
26
|
+
* @emits mark:create - Create new comment annotation. Payload: { motivation: 'commenting', selector: Selector | Selector[], body: Body[] }
|
|
27
|
+
* @emits mark:cancel-pending - Cancel pending comment annotation. Payload: undefined
|
|
28
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
29
|
+
*/
|
|
30
|
+
export declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, locale, sourceLanguage, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=CommentsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/CommentsPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK1D,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAGxD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB;AAmBD,UAAU,kBAAkB;IAC1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,iBAAiB,EACjB,YAAmB,EACnB,WAAmB,EACnB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,GACpB,EAAE,kBAAkB,2CAoNpB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { Annotation } from '@semiont/core';
|
|
3
|
+
interface HighlightEntryProps {
|
|
4
|
+
highlight: Annotation;
|
|
5
|
+
isFocused: boolean;
|
|
6
|
+
isHovered?: boolean;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare function HighlightEntry({ highlight, isFocused, isHovered, ref, }: HighlightEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=HighlightEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/HighlightEntry.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAOhD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAmBD,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,SAAS,EACT,SAAiB,EACjB,GAAG,GACJ,EAAE,mBAAmB,2CAqCrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { components, Selector } from '@semiont/core';
|
|
2
|
+
import './HighlightPanel.css';
|
|
3
|
+
import type { Annotation } from '@semiont/core';
|
|
4
|
+
type Motivation = components['schemas']['Motivation'];
|
|
5
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
6
|
+
interface PendingAnnotation {
|
|
7
|
+
selector: Selector | Selector[];
|
|
8
|
+
motivation: Motivation;
|
|
9
|
+
}
|
|
10
|
+
interface HighlightPanelProps {
|
|
11
|
+
annotations: Annotation[];
|
|
12
|
+
pendingAnnotation: PendingAnnotation | null;
|
|
13
|
+
isAssisting?: boolean;
|
|
14
|
+
progress?: JobProgress | null;
|
|
15
|
+
annotateMode?: boolean;
|
|
16
|
+
scrollToAnnotationId?: string | null;
|
|
17
|
+
onScrollCompleted?: () => void;
|
|
18
|
+
hoveredAnnotationId?: string | null;
|
|
19
|
+
/** BCP-47 tag of the resource being analyzed — forwarded to the assist call so the LLM analyzes non-English source correctly. */
|
|
20
|
+
sourceLanguage?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Panel for managing highlight annotations with auto-creation
|
|
24
|
+
*
|
|
25
|
+
* @emits mark:create - Create new highlight annotation (auto-triggered). Payload: { motivation: 'highlighting', selector: Selector | Selector[], body: Body[] }
|
|
26
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
27
|
+
*/
|
|
28
|
+
export declare function HighlightPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, sourceLanguage, }: HighlightPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=HighlightPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/HighlightPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK1D,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAGxD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,UAAU,mBAAmB;IAC3B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iIAAiI;IACjI,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,iBAAiB,EACjB,WAAmB,EACnB,QAAQ,EACR,YAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,GACf,EAAE,mBAAmB,2CAgIrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { components } from '@semiont/core';
|
|
2
|
+
import './JsonLdPanel.css';
|
|
3
|
+
type SemiontResource = components['schemas']['ResourceDescriptor'];
|
|
4
|
+
interface Props {
|
|
5
|
+
resource: SemiontResource;
|
|
6
|
+
}
|
|
7
|
+
export declare function JsonLdPanel({ resource: semiontResource }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=JsonLdPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonLdPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/JsonLdPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,mBAAmB,CAAC;AAE3B,KAAK,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAEnE,UAAU,KAAK;IACb,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,KAAK,2CAmF/D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PanelHeaderProps {
|
|
2
|
+
annotationType: 'highlight' | 'reference' | 'assessment' | 'comment' | 'tag';
|
|
3
|
+
count: number;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Shared header for annotation panels
|
|
8
|
+
*
|
|
9
|
+
* Displays the annotation icon, translated title, and count in a consistent format
|
|
10
|
+
*/
|
|
11
|
+
export declare function PanelHeader({ count, title }: PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=PanelHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/PanelHeader.tsx"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,cAAc,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,KAAK,CAAC;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CAS7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { RouteBuilder } from '../../../contexts/RoutingContext';
|
|
3
|
+
import type { Annotation } from '@semiont/core';
|
|
4
|
+
interface ReferenceEntryProps {
|
|
5
|
+
reference: Annotation;
|
|
6
|
+
isFocused: boolean;
|
|
7
|
+
isHovered?: boolean;
|
|
8
|
+
routes: RouteBuilder;
|
|
9
|
+
annotateMode?: boolean;
|
|
10
|
+
isGenerating?: boolean;
|
|
11
|
+
ref?: Ref<HTMLDivElement>;
|
|
12
|
+
}
|
|
13
|
+
export declare function ReferenceEntry({ reference, isFocused, isHovered, routes, annotateMode, isGenerating, ref, }: ReferenceEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=ReferenceEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferenceEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/ReferenceEntry.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAiBhD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,SAAS,EACT,SAAiB,EACjB,MAAM,EACN,YAAmB,EACnB,YAAoB,EACpB,GAAG,GACJ,EAAE,mBAAmB,2CA6IrB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RouteBuilder, LinkComponentProps } from '../../../contexts/RoutingContext';
|
|
3
|
+
import type { components, Selector } from '@semiont/core';
|
|
4
|
+
import './ReferencesPanel.css';
|
|
5
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
6
|
+
import type { Annotation } from '@semiont/core';
|
|
7
|
+
type Motivation = components['schemas']['Motivation'];
|
|
8
|
+
type ReferencedBy = components['schemas']['GetReferencedByResponse']['referencedBy'][number];
|
|
9
|
+
interface PendingAnnotation {
|
|
10
|
+
selector: Selector | Selector[];
|
|
11
|
+
motivation: Motivation;
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
annotations?: Annotation[];
|
|
15
|
+
isAssisting: boolean;
|
|
16
|
+
progress: JobProgress | null;
|
|
17
|
+
annotateMode?: boolean;
|
|
18
|
+
Link: React.ComponentType<LinkComponentProps>;
|
|
19
|
+
routes: RouteBuilder;
|
|
20
|
+
allEntityTypes: string[];
|
|
21
|
+
generatingReferenceId?: string | null;
|
|
22
|
+
referencedBy?: ReferencedBy[];
|
|
23
|
+
referencedByLoading?: boolean;
|
|
24
|
+
pendingAnnotation: PendingAnnotation | null;
|
|
25
|
+
scrollToAnnotationId?: string | null;
|
|
26
|
+
onScrollCompleted?: () => void;
|
|
27
|
+
hoveredAnnotationId?: string | null;
|
|
28
|
+
/** User UI locale — stamped on the unresolved-reference body's `language` field. */
|
|
29
|
+
locale?: string;
|
|
30
|
+
/** BCP-47 tag of the resource being analyzed — fed into the prompt for source-aware analysis. */
|
|
31
|
+
sourceLanguage?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Panel for managing reference annotations with entity type annotation
|
|
35
|
+
*
|
|
36
|
+
* @emits annotate:detect-request - Start reference annotation. Payload: { motivation: 'linking', options: { entityTypes: string[], includeDescriptiveReferences: boolean } }
|
|
37
|
+
* @emits mark:create - Create new reference annotation. Payload: { motivation: 'linking', selector: Selector | Selector[], body: Body[] }
|
|
38
|
+
* @emits mark:cancel-pending - Cancel pending reference annotation. Payload: undefined
|
|
39
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
40
|
+
*/
|
|
41
|
+
export declare function ReferencesPanel({ annotations, isAssisting, progress, annotateMode, Link, routes, allEntityTypes, generatingReferenceId, referencedBy, referencedByLoading, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, locale, sourceLanguage, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=ReferencesPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferencesPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/ReferencesPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGzF,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,uBAAuB,CAAC;AAE/B,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAG7F,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB;AAmBD,UAAU,KAAK;IAEb,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;IAGrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC,oFAAoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iGAAiG;IACjG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,WAAgB,EAChB,WAAW,EACX,QAAQ,EACR,YAAmB,EACnB,IAAI,EACJ,MAAM,EACN,cAAc,EACd,qBAAqB,EACrB,YAAiB,EACjB,mBAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,cAAc,GACf,EAAE,KAAK,2CA8bP"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type components } from '@semiont/core';
|
|
2
|
+
import './ResourceInfoPanel.css';
|
|
3
|
+
type Agent = components['schemas']['Agent'];
|
|
4
|
+
interface Props {
|
|
5
|
+
resourceId: string;
|
|
6
|
+
documentEntityTypes: string[];
|
|
7
|
+
documentLocale?: string | undefined;
|
|
8
|
+
primaryMediaType?: string | undefined;
|
|
9
|
+
primaryByteSize?: number | undefined;
|
|
10
|
+
storageUri?: string | undefined;
|
|
11
|
+
isArchived?: boolean;
|
|
12
|
+
dateCreated?: string | undefined;
|
|
13
|
+
dateModified?: string | undefined;
|
|
14
|
+
wasAttributedTo?: Agent | Agent[] | undefined;
|
|
15
|
+
wasDerivedFrom?: string | string[] | undefined;
|
|
16
|
+
generator?: Agent | Agent[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Panel for displaying resource metadata and management actions
|
|
20
|
+
*
|
|
21
|
+
* @emits yield:clone - Clone this resource
|
|
22
|
+
* @emits mark:unarchive - Unarchive this resource
|
|
23
|
+
* @emits mark:archive - Archive this resource
|
|
24
|
+
*/
|
|
25
|
+
export declare function ResourceInfoPanel({ resourceId, documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, storageUri, isArchived, dateCreated, dateModified, wasAttributedTo, wasDerivedFrom, generator, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=ResourceInfoPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceInfoPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/ResourceInfoPanel.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAgC,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE9E,OAAO,yBAAyB,CAAC;AAEjC,KAAK,KAAK,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;AAE5C,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,SAAS,CAAC;IAC9C,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/C,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,SAAS,CAAC;CACzC;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,UAAkB,EAClB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,GACV,EAAE,KAAK,2CA+KP"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './StatisticsPanel.css';
|
|
2
|
+
import type { Annotation } from '@semiont/core';
|
|
3
|
+
interface StatisticsPanelProps {
|
|
4
|
+
highlights: Annotation[];
|
|
5
|
+
comments: Annotation[];
|
|
6
|
+
assessments: Annotation[];
|
|
7
|
+
references: Annotation[];
|
|
8
|
+
tags: Annotation[];
|
|
9
|
+
}
|
|
10
|
+
export declare function StatisticsPanel({ highlights, comments, assessments, references, tags }: StatisticsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=StatisticsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatisticsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/StatisticsPanel.tsx"],"names":[],"mappings":"AAKA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,UAAU,oBAAoB;IAC5B,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,IAAI,EACL,EAAE,oBAAoB,2CAyGtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
import type { Annotation } from '@semiont/core';
|
|
3
|
+
interface TagEntryProps {
|
|
4
|
+
tag: Annotation;
|
|
5
|
+
isFocused: boolean;
|
|
6
|
+
isHovered?: boolean;
|
|
7
|
+
ref?: Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare function TagEntry({ tag, isFocused, isHovered, ref, }: TagEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=TagEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/TagEntry.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD,UAAU,aAAa;IACrB,GAAG,EAAE,UAAU,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,SAAS,EACT,SAAiB,EACjB,GAAG,GACJ,EAAE,aAAa,2CAwDf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { components, Selector } from '@semiont/core';
|
|
2
|
+
import './TaggingPanel.css';
|
|
3
|
+
import type { Annotation } from '@semiont/core';
|
|
4
|
+
type Motivation = components['schemas']['Motivation'];
|
|
5
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
6
|
+
interface PendingAnnotation {
|
|
7
|
+
selector: Selector | Selector[];
|
|
8
|
+
motivation: Motivation;
|
|
9
|
+
}
|
|
10
|
+
interface TaggingPanelProps {
|
|
11
|
+
annotations: Annotation[];
|
|
12
|
+
annotateMode?: boolean;
|
|
13
|
+
isAssisting?: boolean;
|
|
14
|
+
progress?: JobProgress | null;
|
|
15
|
+
pendingAnnotation: PendingAnnotation | null;
|
|
16
|
+
scrollToAnnotationId?: string | null;
|
|
17
|
+
onScrollCompleted?: () => void;
|
|
18
|
+
hoveredAnnotationId?: string | null;
|
|
19
|
+
/** User UI locale — stamped on the tagging body's `language` field. */
|
|
20
|
+
locale?: string;
|
|
21
|
+
/** BCP-47 tag of the resource being analyzed — fed into the prompt for source-aware analysis. */
|
|
22
|
+
sourceLanguage?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Panel for managing tag annotations with schema-based annotation
|
|
26
|
+
*
|
|
27
|
+
* @emits annotate:detect-request - Start tag annotation. Payload: { motivation: 'tagging', options: { schemaId: string, categories: string[] } }
|
|
28
|
+
* @emits mark:cancel-pending - Cancel pending tag annotation. Payload: undefined
|
|
29
|
+
* @emits mark:create - Create new tag annotation. Payload: { motivation: 'tagging', selector: Selector | Selector[], body: Body[] }
|
|
30
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
31
|
+
*/
|
|
32
|
+
export declare function TaggingPanel({ annotations, annotateMode, isAssisting, progress, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, locale, sourceLanguage, }: TaggingPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=TaggingPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaggingPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/TaggingPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI1D,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAGxD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB;AAmBD,UAAU,iBAAiB;IACzB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iGAAiG;IACjG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,WAAW,EACX,YAAmB,EACnB,WAAmB,EACnB,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,cAAc,GACf,EAAE,iBAAiB,2CAgdnB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { components, Selector } from '@semiont/core';
|
|
3
|
+
type JobProgress = components['schemas']['JobProgress'];
|
|
4
|
+
import type { RouteBuilder, LinkComponentProps } from '../../../contexts/RoutingContext';
|
|
5
|
+
import type { Annotator } from '../../../lib/annotation-registry';
|
|
6
|
+
import './UnifiedAnnotationsPanel.css';
|
|
7
|
+
import type { Annotation } from '@semiont/core';
|
|
8
|
+
type Motivation = components['schemas']['Motivation'];
|
|
9
|
+
type TabKey = 'statistics' | 'reference' | 'highlight' | 'assessment' | 'comment' | 'tag';
|
|
10
|
+
interface PendingAnnotation {
|
|
11
|
+
selector: Selector | Selector[];
|
|
12
|
+
motivation: Motivation;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Simplified UnifiedAnnotationsPanel using event-driven architecture
|
|
16
|
+
*
|
|
17
|
+
* Key simplifications:
|
|
18
|
+
* - Single annotations array (grouped internally by motivation)
|
|
19
|
+
* - Single focusedAnnotationId (motivation-agnostic)
|
|
20
|
+
* - Hover state managed via event bus (no props needed)
|
|
21
|
+
* - All operations managed via event bus (no callback props)
|
|
22
|
+
*/
|
|
23
|
+
interface UnifiedAnnotationsPanelProps {
|
|
24
|
+
annotations: Annotation[];
|
|
25
|
+
annotators: Record<string, Annotator>;
|
|
26
|
+
annotateMode?: boolean;
|
|
27
|
+
assistingMotivation?: Motivation | null;
|
|
28
|
+
progress?: JobProgress | null;
|
|
29
|
+
pendingAnnotation: PendingAnnotation | null;
|
|
30
|
+
allEntityTypes?: string[];
|
|
31
|
+
generatingReferenceId?: string | null;
|
|
32
|
+
referencedBy?: any[];
|
|
33
|
+
referencedByLoading?: boolean;
|
|
34
|
+
resourceId?: string;
|
|
35
|
+
initialTab?: TabKey;
|
|
36
|
+
initialTabGeneration?: number;
|
|
37
|
+
scrollToAnnotationId?: string | null;
|
|
38
|
+
onScrollCompleted?: () => void;
|
|
39
|
+
hoveredAnnotationId?: string | null;
|
|
40
|
+
locale?: string;
|
|
41
|
+
/**
|
|
42
|
+
* BCP-47 tag of the resource being analyzed (source-resource locale).
|
|
43
|
+
* Independent from `locale` — a German user can analyze a French source
|
|
44
|
+
* and get German bodies back. Fed into detection prompts.
|
|
45
|
+
*/
|
|
46
|
+
sourceLanguage?: string;
|
|
47
|
+
Link: React.ComponentType<LinkComponentProps>;
|
|
48
|
+
routes: RouteBuilder;
|
|
49
|
+
}
|
|
50
|
+
export declare function UnifiedAnnotationsPanel(props: UnifiedAnnotationsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=UnifiedAnnotationsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedAnnotationsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/UnifiedAnnotationsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAOlE,OAAO,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,MAAM,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,KAAK,CAAC;AAG1F,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;CACxB;AAKD;;;;;;;;GAQG;AACH,UAAU,4BAA4B;IAEpC,WAAW,EAAE,UAAU,EAAE,CAAC;IAG1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAGtC,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,mBAAmB,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAG9B,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAG5C,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAG9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAG/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CAuO1E"}
|