@semiont/react-ui 0.5.4 → 0.5.5
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/index.d.ts +3560 -149
- package/dist/test-utils.d.ts +34 -16
- package/package.json +5 -3
- package/dist/assets/favicons/SemiontFavicon.d.ts +0 -9
- package/dist/assets/favicons/SemiontFavicon.d.ts.map +0 -1
- package/dist/assets/favicons/index.d.ts +0 -12
- package/dist/assets/favicons/index.d.ts.map +0 -1
- package/dist/components/AnnotateReferencesProgressWidget.d.ts +0 -15
- package/dist/components/AnnotateReferencesProgressWidget.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts +0 -69
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/CodeMirrorRenderer.d.ts +0 -25
- package/dist/components/CodeMirrorRenderer.d.ts.map +0 -1
- package/dist/components/ErrorBoundary.d.ts +0 -30
- package/dist/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/LiveRegion.d.ts +0 -41
- package/dist/components/LiveRegion.d.ts.map +0 -1
- package/dist/components/ProtectedErrorBoundary.d.ts +0 -27
- package/dist/components/ProtectedErrorBoundary.d.ts.map +0 -1
- package/dist/components/ResizeHandle.d.ts +0 -39
- package/dist/components/ResizeHandle.d.ts.map +0 -1
- package/dist/components/ResourceTagsInline.d.ts +0 -10
- package/dist/components/ResourceTagsInline.d.ts.map +0 -1
- package/dist/components/SessionExpiryBanner.d.ts +0 -2
- package/dist/components/SessionExpiryBanner.d.ts.map +0 -1
- package/dist/components/SessionTimer.d.ts +0 -2
- package/dist/components/SessionTimer.d.ts.map +0 -1
- package/dist/components/StatusDisplay.d.ts +0 -9
- package/dist/components/StatusDisplay.d.ts.map +0 -1
- package/dist/components/Toast.d.ts +0 -27
- package/dist/components/Toast.d.ts.map +0 -1
- package/dist/components/Toolbar.d.ts +0 -15
- package/dist/components/Toolbar.d.ts.map +0 -1
- package/dist/components/UserMenuSkeleton.d.ts +0 -2
- package/dist/components/UserMenuSkeleton.d.ts.map +0 -1
- package/dist/components/annotation/AnnotateToolbar.d.ts +0 -29
- package/dist/components/annotation/AnnotateToolbar.d.ts.map +0 -1
- package/dist/components/annotation-popups/JsonLdView.d.ts +0 -8
- package/dist/components/annotation-popups/JsonLdView.d.ts.map +0 -1
- package/dist/components/annotation-popups/SharedPopupElements.d.ts +0 -28
- package/dist/components/annotation-popups/SharedPopupElements.d.ts.map +0 -1
- package/dist/components/branding/SemiontBranding.d.ts +0 -13
- package/dist/components/branding/SemiontBranding.d.ts.map +0 -1
- package/dist/components/error-states/ResourceErrorState.d.ts +0 -11
- package/dist/components/error-states/ResourceErrorState.d.ts.map +0 -1
- package/dist/components/image-annotation/AnnotationOverlay.d.ts +0 -22
- package/dist/components/image-annotation/AnnotationOverlay.d.ts.map +0 -1
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts +0 -23
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts.map +0 -1
- package/dist/components/layout/LeftSidebar.d.ts +0 -24
- package/dist/components/layout/LeftSidebar.d.ts.map +0 -1
- package/dist/components/layout/PageLayout.d.ts +0 -21
- package/dist/components/layout/PageLayout.d.ts.map +0 -1
- package/dist/components/layout/SkipLinks.d.ts +0 -8
- package/dist/components/layout/SkipLinks.d.ts.map +0 -1
- package/dist/components/layout/UnifiedHeader.d.ts +0 -21
- package/dist/components/layout/UnifiedHeader.d.ts.map +0 -1
- package/dist/components/loading-states/ComposeLoadingState.d.ts +0 -10
- package/dist/components/loading-states/ComposeLoadingState.d.ts.map +0 -1
- package/dist/components/loading-states/ResourceLoadingState.d.ts +0 -7
- package/dist/components/loading-states/ResourceLoadingState.d.ts.map +0 -1
- package/dist/components/modals/ConfigureGenerationStep.d.ts +0 -36
- package/dist/components/modals/ConfigureGenerationStep.d.ts.map +0 -1
- package/dist/components/modals/ConfigureSearchStep.d.ts +0 -21
- package/dist/components/modals/ConfigureSearchStep.d.ts.map +0 -1
- package/dist/components/modals/ContextSummary.d.ts +0 -14
- package/dist/components/modals/ContextSummary.d.ts.map +0 -1
- package/dist/components/modals/GatherContextStep.d.ts +0 -23
- package/dist/components/modals/GatherContextStep.d.ts.map +0 -1
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts +0 -8
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts.map +0 -1
- package/dist/components/modals/PermissionDeniedModal.d.ts +0 -12
- package/dist/components/modals/PermissionDeniedModal.d.ts.map +0 -1
- package/dist/components/modals/ReferenceWizardModal.d.ts +0 -64
- package/dist/components/modals/ReferenceWizardModal.d.ts.map +0 -1
- package/dist/components/modals/ResourceSearchModal.d.ts +0 -16
- package/dist/components/modals/ResourceSearchModal.d.ts.map +0 -1
- package/dist/components/modals/SearchModal.d.ts +0 -20
- package/dist/components/modals/SearchModal.d.ts.map +0 -1
- package/dist/components/modals/SearchResultsStep.d.ts +0 -22
- package/dist/components/modals/SearchResultsStep.d.ts.map +0 -1
- package/dist/components/modals/SessionExpiredModal.d.ts +0 -12
- package/dist/components/modals/SessionExpiredModal.d.ts.map +0 -1
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts +0 -13
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts.map +0 -1
- package/dist/components/navigation/Footer.d.ts +0 -20
- package/dist/components/navigation/Footer.d.ts.map +0 -1
- package/dist/components/navigation/NavigationMenu.d.ts +0 -18
- package/dist/components/navigation/NavigationMenu.d.ts.map +0 -1
- package/dist/components/navigation/ObservableLink.d.ts +0 -52
- package/dist/components/navigation/ObservableLink.d.ts.map +0 -1
- package/dist/components/navigation/SimpleNavigation.d.ts +0 -35
- package/dist/components/navigation/SimpleNavigation.d.ts.map +0 -1
- package/dist/components/navigation/SortableResourceTab.d.ts +0 -7
- package/dist/components/navigation/SortableResourceTab.d.ts.map +0 -1
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts +0 -8
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts.map +0 -1
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts +0 -25
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts.map +0 -1
- package/dist/components/resource/AnnotateView.d.ts +0 -29
- package/dist/components/resource/AnnotateView.d.ts.map +0 -1
- package/dist/components/resource/AnnotationHistory.d.ts +0 -14
- package/dist/components/resource/AnnotationHistory.d.ts.map +0 -1
- package/dist/components/resource/BrowseView.d.ts +0 -28
- package/dist/components/resource/BrowseView.d.ts.map +0 -1
- package/dist/components/resource/HistoryEvent.d.ts +0 -19
- package/dist/components/resource/HistoryEvent.d.ts.map +0 -1
- package/dist/components/resource/ResourceViewer.d.ts +0 -46
- package/dist/components/resource/ResourceViewer.d.ts.map +0 -1
- package/dist/components/resource/event-formatting.d.ts +0 -61
- package/dist/components/resource/event-formatting.d.ts.map +0 -1
- package/dist/components/resource/panels/AssessmentEntry.d.ts +0 -11
- package/dist/components/resource/panels/AssessmentEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/AssessmentPanel.d.ts +0 -32
- package/dist/components/resource/panels/AssessmentPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/AssistSection.d.ts +0 -27
- package/dist/components/resource/panels/AssistSection.d.ts.map +0 -1
- package/dist/components/resource/panels/CollaborationPanel.d.ts +0 -28
- package/dist/components/resource/panels/CollaborationPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/CommentEntry.d.ts +0 -12
- package/dist/components/resource/panels/CommentEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/CommentsPanel.d.ts +0 -32
- package/dist/components/resource/panels/CommentsPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/HighlightEntry.d.ts +0 -11
- package/dist/components/resource/panels/HighlightEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/HighlightPanel.d.ts +0 -30
- package/dist/components/resource/panels/HighlightPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/JsonLdPanel.d.ts +0 -9
- package/dist/components/resource/panels/JsonLdPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/PanelHeader.d.ts +0 -13
- package/dist/components/resource/panels/PanelHeader.d.ts.map +0 -1
- package/dist/components/resource/panels/ReferenceEntry.d.ts +0 -15
- package/dist/components/resource/panels/ReferenceEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/ReferencesPanel.d.ts +0 -43
- package/dist/components/resource/panels/ReferencesPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts +0 -27
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/StatisticsPanel.d.ts +0 -12
- package/dist/components/resource/panels/StatisticsPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/TagEntry.d.ts +0 -11
- package/dist/components/resource/panels/TagEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/TaggingPanel.d.ts +0 -34
- package/dist/components/resource/panels/TaggingPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts +0 -52
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/agent-label.d.ts +0 -11
- package/dist/components/resource/panels/agent-label.d.ts.map +0 -1
- package/dist/components/settings/SettingsPanel.d.ts +0 -19
- package/dist/components/settings/SettingsPanel.d.ts.map +0 -1
- package/dist/components/viewers/ImageViewer.d.ts +0 -8
- package/dist/components/viewers/ImageViewer.d.ts.map +0 -1
- package/dist/components/viewers/index.d.ts +0 -2
- package/dist/components/viewers/index.d.ts.map +0 -1
- package/dist/contexts/AnnotationContext.d.ts +0 -46
- package/dist/contexts/AnnotationContext.d.ts.map +0 -1
- package/dist/contexts/ResourceAnnotationsContext.d.ts +0 -14
- package/dist/contexts/ResourceAnnotationsContext.d.ts.map +0 -1
- package/dist/contexts/RoutingContext.d.ts +0 -59
- package/dist/contexts/RoutingContext.d.ts.map +0 -1
- package/dist/contexts/ThemeContext.d.ts +0 -15
- package/dist/contexts/ThemeContext.d.ts.map +0 -1
- package/dist/contexts/TranslationContext.d.ts +0 -51
- package/dist/contexts/TranslationContext.d.ts.map +0 -1
- package/dist/contexts/useEventSubscription.d.ts +0 -41
- package/dist/contexts/useEventSubscription.d.ts.map +0 -1
- package/dist/design-tokens/index.d.ts +0 -178
- package/dist/design-tokens/index.d.ts.map +0 -1
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts +0 -33
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts +0 -37
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/ExportCard.d.ts +0 -18
- package/dist/features/admin-exchange/components/ExportCard.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/ImportCard.d.ts +0 -32
- package/dist/features/admin-exchange/components/ImportCard.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/ImportProgress.d.ts +0 -26
- package/dist/features/admin-exchange/components/ImportProgress.d.ts.map +0 -1
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts +0 -31
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts.map +0 -1
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts +0 -42
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts.map +0 -1
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts +0 -12
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts.map +0 -1
- package/dist/features/admin-users/components/AdminUsersPage.d.ts +0 -88
- package/dist/features/admin-users/components/AdminUsersPage.d.ts.map +0 -1
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts +0 -17
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts.map +0 -1
- package/dist/features/auth/components/AuthErrorDisplay.d.ts +0 -34
- package/dist/features/auth/components/AuthErrorDisplay.d.ts.map +0 -1
- package/dist/features/auth/components/SignInForm.d.ts +0 -80
- package/dist/features/auth/components/SignInForm.d.ts.map +0 -1
- package/dist/features/auth/components/SignUpForm.d.ts +0 -39
- package/dist/features/auth/components/SignUpForm.d.ts.map +0 -1
- package/dist/features/auth-welcome/components/WelcomePage.d.ts +0 -62
- package/dist/features/auth-welcome/components/WelcomePage.d.ts.map +0 -1
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts +0 -12
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts.map +0 -1
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts +0 -32
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts.map +0 -1
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts +0 -16
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts.map +0 -1
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts +0 -27
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts.map +0 -1
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts +0 -25
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts.map +0 -1
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts +0 -38
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts.map +0 -1
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts +0 -83
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts.map +0 -1
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts +0 -23
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts.map +0 -1
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts +0 -59
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts.map +0 -1
- package/dist/features/resource-discovery/components/ResourceCard.d.ts +0 -17
- package/dist/features/resource-discovery/components/ResourceCard.d.ts.map +0 -1
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts +0 -43
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts.map +0 -1
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts +0 -15
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts.map +0 -1
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts +0 -80
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts.map +0 -1
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts +0 -11
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts.map +0 -1
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts +0 -48
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts.map +0 -1
- package/dist/hooks/useDebounce.d.ts +0 -29
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDragAnnouncements.d.ts +0 -12
- package/dist/hooks/useDragAnnouncements.d.ts.map +0 -1
- package/dist/hooks/useHoverDelay.d.ts +0 -8
- package/dist/hooks/useHoverDelay.d.ts.map +0 -1
- package/dist/hooks/useHoverEmitter.d.ts +0 -8
- package/dist/hooks/useHoverEmitter.d.ts.map +0 -1
- package/dist/hooks/useKeyboardShortcuts.d.ts +0 -29
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/hooks/useLineNumbers.d.ts +0 -8
- package/dist/hooks/useLineNumbers.d.ts.map +0 -1
- package/dist/hooks/useMediaToken.d.ts +0 -7
- package/dist/hooks/useMediaToken.d.ts.map +0 -1
- package/dist/hooks/useObservable.d.ts +0 -23
- package/dist/hooks/useObservable.d.ts.map +0 -1
- package/dist/hooks/useObservableBrowse.d.ts +0 -70
- package/dist/hooks/useObservableBrowse.d.ts.map +0 -1
- package/dist/hooks/usePanelWidth.d.ts +0 -37
- package/dist/hooks/usePanelWidth.d.ts.map +0 -1
- package/dist/hooks/useResourceContent.d.ts +0 -7
- package/dist/hooks/useResourceContent.d.ts.map +0 -1
- package/dist/hooks/useRovingTabIndex.d.ts +0 -13
- package/dist/hooks/useRovingTabIndex.d.ts.map +0 -1
- package/dist/hooks/useSearchAnnouncements.d.ts +0 -10
- package/dist/hooks/useSearchAnnouncements.d.ts.map +0 -1
- package/dist/hooks/useSessionExpiry.d.ts +0 -10
- package/dist/hooks/useSessionExpiry.d.ts.map +0 -1
- package/dist/hooks/useShellStateUnit.d.ts +0 -9
- package/dist/hooks/useShellStateUnit.d.ts.map +0 -1
- package/dist/hooks/useStateUnit.d.ts +0 -3
- package/dist/hooks/useStateUnit.d.ts.map +0 -1
- package/dist/hooks/useUI.d.ts +0 -24
- package/dist/hooks/useUI.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integrations/css-modules-helper.d.ts +0 -114
- package/dist/integrations/css-modules-helper.d.ts.map +0 -1
- package/dist/integrations/styled-components-theme.d.ts +0 -95
- package/dist/integrations/styled-components-theme.d.ts.map +0 -1
- package/dist/integrations/tailwind-plugin.d.cts +0 -3
- package/dist/integrations/tailwind-plugin.d.cts.map +0 -1
- package/dist/lib/annotation-overlay.d.ts +0 -71
- package/dist/lib/annotation-overlay.d.ts.map +0 -1
- package/dist/lib/annotation-registry.d.ts +0 -62
- package/dist/lib/annotation-registry.d.ts.map +0 -1
- package/dist/lib/browser-pdfjs.d.ts +0 -93
- package/dist/lib/browser-pdfjs.d.ts.map +0 -1
- package/dist/lib/button-styles.d.ts +0 -27
- package/dist/lib/button-styles.d.ts.map +0 -1
- package/dist/lib/codemirror-handlers.d.ts +0 -52
- package/dist/lib/codemirror-handlers.d.ts.map +0 -1
- package/dist/lib/codemirror-json-theme.d.ts +0 -8
- package/dist/lib/codemirror-json-theme.d.ts.map +0 -1
- package/dist/lib/codemirror-logic.d.ts +0 -66
- package/dist/lib/codemirror-logic.d.ts.map +0 -1
- package/dist/lib/codemirror-widgets.d.ts +0 -39
- package/dist/lib/codemirror-widgets.d.ts.map +0 -1
- package/dist/lib/formatTime.d.ts +0 -2
- package/dist/lib/formatTime.d.ts.map +0 -1
- package/dist/lib/media-shapes.d.ts +0 -51
- package/dist/lib/media-shapes.d.ts.map +0 -1
- package/dist/lib/pdf-coordinates.d.ts +0 -69
- package/dist/lib/pdf-coordinates.d.ts.map +0 -1
- package/dist/lib/resource-utils.d.ts +0 -22
- package/dist/lib/resource-utils.d.ts.map +0 -1
- package/dist/lib/scroll-utils.d.ts +0 -20
- package/dist/lib/scroll-utils.d.ts.map +0 -1
- package/dist/lib/text-segmentation.d.ts +0 -25
- package/dist/lib/text-segmentation.d.ts.map +0 -1
- package/dist/lib/text-selection-handler.d.ts +0 -46
- package/dist/lib/text-selection-handler.d.ts.map +0 -1
- package/dist/lib/validation.d.ts +0 -47
- package/dist/lib/validation.d.ts.map +0 -1
- package/dist/session/SemiontProvider.d.ts +0 -28
- package/dist/session/SemiontProvider.d.ts.map +0 -1
- package/dist/session/web-browser-storage.d.ts +0 -19
- package/dist/session/web-browser-storage.d.ts.map +0 -1
- package/dist/state/session-state-unit.d.ts +0 -9
- package/dist/state/session-state-unit.d.ts.map +0 -1
- package/dist/state/shell-state-unit.d.ts +0 -33
- package/dist/state/shell-state-unit.d.ts.map +0 -1
- package/dist/test-utils.d.ts.map +0 -1
- package/dist/types/AnnotationManager.d.ts +0 -53
- package/dist/types/AnnotationManager.d.ts.map +0 -1
- package/dist/types/TranslationManager.d.ts +0 -15
- package/dist/types/TranslationManager.d.ts.map +0 -1
- package/dist/types/annotation-props.d.ts +0 -108
- package/dist/types/annotation-props.d.ts.map +0 -1
- package/dist/types/collapsible-navigation.d.ts +0 -69
- package/dist/types/collapsible-navigation.d.ts.map +0 -1
- package/dist/types/modals.d.ts +0 -77
- package/dist/types/modals.d.ts.map +0 -1
- package/dist/types/navigation.d.ts +0 -35
- package/dist/types/navigation.d.ts.map +0 -1
- package/dist/types/resource-viewer.d.ts +0 -19
- package/dist/types/resource-viewer.d.ts.map +0 -1
- package/dist/types/simple-navigation.d.ts +0 -15
- package/dist/types/simple-navigation.d.ts.map +0 -1
- package/dist/types/translation.d.ts +0 -5
- package/dist/types/translation.d.ts.map +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RouteBuilder, LinkComponentProps } from '../../contexts/RoutingContext';
|
|
3
|
-
import './NavigationMenu.css';
|
|
4
|
-
type TranslateFn = (key: string, params?: Record<string, any>) => string;
|
|
5
|
-
interface NavigationMenuProps {
|
|
6
|
-
Link: React.ComponentType<LinkComponentProps>;
|
|
7
|
-
routes: RouteBuilder;
|
|
8
|
-
t: TranslateFn;
|
|
9
|
-
isAdmin?: boolean;
|
|
10
|
-
isModerator?: boolean;
|
|
11
|
-
brandingLink?: string;
|
|
12
|
-
onItemClick?: () => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
currentPath?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function NavigationMenu({ Link, routes, t, isAdmin, isModerator, onItemClick, className, currentPath }: NavigationMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=NavigationMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenu.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/NavigationMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,sBAAsB,CAAC;AAE9B,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC;AAEzE,UAAU,mBAAmB;IAC3B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;IACrB,CAAC,EAAE,WAAW,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,MAAM,EACN,CAAC,EACD,OAAe,EACf,WAAmB,EACnB,WAAW,EACX,SAAc,EACd,WAAW,EACZ,EAAE,mBAAmB,2CAkDrB"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Props for ObservableLink component
|
|
4
|
-
*
|
|
5
|
-
* Accepts any props that a standard anchor element accepts,
|
|
6
|
-
* plus optional navigation metadata for event emission.
|
|
7
|
-
*/
|
|
8
|
-
export interface ObservableLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
9
|
-
/** The URL to navigate to */
|
|
10
|
-
href: string;
|
|
11
|
-
/** Optional label for the link (used in event metadata) */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** Children to render inside the link */
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Link component that emits navigation events for observability
|
|
18
|
-
*
|
|
19
|
-
* Use this instead of Next.js <Link> when you want link clicks to be
|
|
20
|
-
* observable through the NavigationEventBus. This is useful for:
|
|
21
|
-
* - Analytics tracking
|
|
22
|
-
* - State coordination before navigation
|
|
23
|
-
* - Logging navigation flows
|
|
24
|
-
*
|
|
25
|
-
* The component emits 'nav:link-clicked' event before allowing
|
|
26
|
-
* the browser to follow the link.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* <ObservableLink
|
|
31
|
-
* href="/know/discover"
|
|
32
|
-
* label="Discover"
|
|
33
|
-
* >
|
|
34
|
-
* Discover Resources
|
|
35
|
-
* </ObservableLink>
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @example With Next.js Link integration
|
|
39
|
-
* ```typescript
|
|
40
|
-
* import Link from 'next/link';
|
|
41
|
-
*
|
|
42
|
-
* <Link href="/know/discover" legacyBehavior passHref>
|
|
43
|
-
* <ObservableLink label="Discover">
|
|
44
|
-
* Discover Resources
|
|
45
|
-
* </ObservableLink>
|
|
46
|
-
* </Link>
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @emits nav:link-clicked - Link clicked by user. Payload: { href: string, label?: string }
|
|
50
|
-
*/
|
|
51
|
-
export declare function ObservableLink({ href, label, onClick, children, ...anchorProps }: ObservableLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
//# sourceMappingURL=ObservableLink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableLink.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/ObservableLink.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACxF,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,GAAG,WAAW,EACf,EAAE,mBAAmB,2CA6BrB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SimpleNavigationItem {
|
|
3
|
-
name: string;
|
|
4
|
-
href: string;
|
|
5
|
-
icon: React.ComponentType<{
|
|
6
|
-
className?: string;
|
|
7
|
-
}>;
|
|
8
|
-
description?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface SimpleNavigationProps {
|
|
11
|
-
title: string;
|
|
12
|
-
items: SimpleNavigationItem[];
|
|
13
|
-
currentPath: string;
|
|
14
|
-
LinkComponent: React.ComponentType<any>;
|
|
15
|
-
dropdownContent?: (onClose: () => void) => React.ReactNode;
|
|
16
|
-
isCollapsed: boolean;
|
|
17
|
-
icons: {
|
|
18
|
-
chevronLeft: React.ComponentType<{
|
|
19
|
-
className?: string;
|
|
20
|
-
}>;
|
|
21
|
-
bars: React.ComponentType<{
|
|
22
|
-
className?: string;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
|
-
collapseSidebarLabel: string;
|
|
26
|
-
expandSidebarLabel: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Simple navigation component for Admin and Moderation modes.
|
|
30
|
-
* Renders a section header with optional dropdown and static navigation tabs.
|
|
31
|
-
*
|
|
32
|
-
* @emits shell:sidebar-toggle - Toggle sidebar collapsed/expanded state. Payload: undefined
|
|
33
|
-
*/
|
|
34
|
-
export declare function SimpleNavigation({ title, items, currentPath, LinkComponent, dropdownContent, isCollapsed, icons, collapseSidebarLabel, expandSidebarLabel }: SimpleNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
//# sourceMappingURL=SimpleNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/SimpleNavigation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3D,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE;QACL,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACzD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACnD,CAAC;IACF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,WAAW,EACX,aAAa,EACb,eAAe,EACf,WAAW,EACX,KAAK,EACL,oBAAoB,EACpB,kBAAkB,EACnB,EAAE,qBAAqB,2CAyGvB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SortableResourceTabProps } from '../../types/collapsible-navigation';
|
|
2
|
-
/**
|
|
3
|
-
* A sortable tab for an open resource in the navigation sidebar.
|
|
4
|
-
* Supports drag and drop when expanded, and compact icon-only view when collapsed.
|
|
5
|
-
*/
|
|
6
|
-
export declare function SortableResourceTab({ resource, isCollapsed, isActive, href, onClose, onReorder, index, totalCount, LinkComponent, translations, isDragging }: SortableResourceTabProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=SortableResourceTab.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SortableResourceTab.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/SortableResourceTab.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EACT,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAiB,EACjB,UAAkB,EACnB,EAAE,wBAAwB,2CAmF1B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client-only wrapper for PdfAnnotationCanvas
|
|
3
|
-
*
|
|
4
|
-
* This wrapper ensures the PDF annotation component is only loaded on the client side,
|
|
5
|
-
* preventing SSR issues with browser-based PDF.js loading.
|
|
6
|
-
*/
|
|
7
|
-
export { PdfAnnotationCanvas } from './PdfAnnotationCanvas';
|
|
8
|
-
//# sourceMappingURL=PdfAnnotationCanvas.client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PdfAnnotationCanvas.client.d.ts","sourceRoot":"","sources":["../../../src/components/pdf-annotation/PdfAnnotationCanvas.client.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Annotation } from '@semiont/core';
|
|
2
|
-
import { type SemiontSession } from '@semiont/sdk';
|
|
3
|
-
import type { SelectionMotivation } from '../annotation/AnnotateToolbar';
|
|
4
|
-
import './PdfAnnotationCanvas.css';
|
|
5
|
-
export type DrawingMode = 'rectangle' | 'circle' | 'polygon' | null;
|
|
6
|
-
interface PdfAnnotationCanvasProps {
|
|
7
|
-
pdfUrl: string;
|
|
8
|
-
existingAnnotations?: Annotation[];
|
|
9
|
-
drawingMode: DrawingMode;
|
|
10
|
-
selectedMotivation?: SelectionMotivation | null;
|
|
11
|
-
session?: SemiontSession | null | undefined;
|
|
12
|
-
hoveredAnnotationId?: string | null;
|
|
13
|
-
selectedAnnotationId?: string | null;
|
|
14
|
-
hoverDelayMs?: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* PDF annotation canvas with page navigation and rectangle drawing
|
|
18
|
-
*
|
|
19
|
-
* @emits browse:click - Annotation clicked on PDF. Payload: { annotationId: string, motivation: Motivation }
|
|
20
|
-
* @emits mark:requested - New annotation drawn on PDF. Payload: { selector: FragmentSelector, motivation: SelectionMotivation }
|
|
21
|
-
* @emits beckon:hover - Annotation hovered or unhovered. Payload: { annotationId: string | null }
|
|
22
|
-
*/
|
|
23
|
-
export declare function PdfAnnotationCanvas({ pdfUrl, existingAnnotations, drawingMode, selectedMotivation, session, hoveredAnnotationId, selectedAnnotationId, hoverDelayMs }: PdfAnnotationCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=PdfAnnotationCanvas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PdfAnnotationCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/pdf-annotation/PdfAnnotationCanvas.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAczE,OAAO,2BAA2B,CAAC;AAEnC,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAwBpE,UAAU,wBAAwB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,UAAU,EAAE,CAAC;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,mBAAwB,EACxB,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,YAAkB,EACnB,EAAE,wBAAwB,2CA2b1B"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type SelectionMotivation, type ClickAction, type ShapeType } from '../annotation/AnnotateToolbar';
|
|
2
|
-
import type { AnnotationsCollection, AnnotationUIState } from '../../types/annotation-props';
|
|
3
|
-
export type { SelectionMotivation, ClickAction, ShapeType };
|
|
4
|
-
interface Props {
|
|
5
|
-
content: string;
|
|
6
|
-
mimeType?: string;
|
|
7
|
-
resourceUri?: string;
|
|
8
|
-
annotations: AnnotationsCollection;
|
|
9
|
-
uiState: AnnotationUIState;
|
|
10
|
-
onUIStateChange?: (state: Partial<AnnotationUIState>) => void;
|
|
11
|
-
editable?: boolean;
|
|
12
|
-
enableWidgets?: boolean;
|
|
13
|
-
getTargetResourceName?: (resourceId: string) => string | undefined;
|
|
14
|
-
generatingReferenceId?: string | null;
|
|
15
|
-
showLineNumbers?: boolean;
|
|
16
|
-
hoverDelayMs?: number;
|
|
17
|
-
annotateMode: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* View component for annotating resources with text selection and drawing
|
|
21
|
-
*
|
|
22
|
-
* @emits mark:requested - User requested to create annotation. Payload: { selector: Selector | Selector[], motivation: SelectionMotivation }
|
|
23
|
-
* @subscribes mark:selection-changed - Toolbar selection changed. Payload: { motivation: string | null }
|
|
24
|
-
* @subscribes mark:click-changed - Toolbar click action changed. Payload: { action: string }
|
|
25
|
-
* @subscribes mark:shape-changed - Toolbar shape changed. Payload: { shape: string }
|
|
26
|
-
* @subscribes beckon:hover - Annotation hovered. Payload: { annotationId: string | null }
|
|
27
|
-
*/
|
|
28
|
-
export declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetResourceName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
//# sourceMappingURL=AnnotateView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateView.d.ts","sourceRoot":"","sources":["../../../src/components/resource/AnnotateView.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC5H,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAG7F,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAE5D,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,qBAAqB,CAAC;IACnC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACnE,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,QAAuB,EACvB,WAAW,EACX,WAAW,EACX,OAAO,EACP,eAAe,EACf,aAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,eAAuB,EACvB,YAAkB,EAClB,YAAY,EACb,EAAE,KAAK,2CAkPP"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RouteBuilder, LinkComponentProps } from '../../contexts/RoutingContext';
|
|
3
|
-
import type { ResourceId } from '@semiont/core';
|
|
4
|
-
interface Props {
|
|
5
|
-
rUri: ResourceId;
|
|
6
|
-
hoveredAnnotationId?: string | null;
|
|
7
|
-
onEventHover?: (annotationId: string | null) => void;
|
|
8
|
-
onEventClick?: (annotationId: string | null) => void;
|
|
9
|
-
Link: React.ComponentType<LinkComponentProps>;
|
|
10
|
-
routes: RouteBuilder;
|
|
11
|
-
}
|
|
12
|
-
export declare function AnnotationHistory({ rUri, hoveredAnnotationId, onEventHover, onEventClick, Link, routes }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=AnnotationHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationHistory.d.ts","sourceRoot":"","sources":["../../../src/components/resource/AnnotationHistory.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGtF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,UAAU,KAAK;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,kDA+G/G"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type ClickAction } from '../annotation/AnnotateToolbar';
|
|
2
|
-
import type { AnnotationsCollection } from '../../types/annotation-props';
|
|
3
|
-
interface Props {
|
|
4
|
-
content: string;
|
|
5
|
-
mimeType: string;
|
|
6
|
-
resourceUri: string;
|
|
7
|
-
annotations: AnnotationsCollection;
|
|
8
|
-
hoveredAnnotationId?: string | null;
|
|
9
|
-
selectedClick?: ClickAction;
|
|
10
|
-
annotateMode: boolean;
|
|
11
|
-
hoverDelayMs?: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* View component for browsing annotated resources in read-only mode.
|
|
15
|
-
*
|
|
16
|
-
* Two-layer rendering:
|
|
17
|
-
* - Layer 1: Markdown renders once (MemoizedMarkdown, cached by content)
|
|
18
|
-
* - Layer 2: Annotation overlay applied via DOM Range API after paint
|
|
19
|
-
*
|
|
20
|
-
* @emits browse:click - User clicked on annotation. Payload: { annotationId: string, motivation: Motivation }
|
|
21
|
-
* @emits beckon:hover - User hovered over annotation. Payload: { annotationId: string | null }
|
|
22
|
-
*
|
|
23
|
-
* @subscribes beckon:hover - Highlight annotation on hover. Payload: { annotationId: string | null }
|
|
24
|
-
* @subscribes beckon:focus - Scroll to and highlight annotation. Payload: { annotationId: string }
|
|
25
|
-
*/
|
|
26
|
-
export declare const BrowseView: import("react").MemoExoticComponent<({ content, mimeType, resourceUri, annotations, selectedClick, annotateMode, hoverDelayMs }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=BrowseView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowseView.d.ts","sourceRoot":"","sources":["../../../src/components/resource/BrowseView.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAkB1E,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,qBAAqB,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAoBD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,mIAQpB,KAAK,6CAsNN,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RouteBuilder, LinkComponentProps } from '../../contexts/RoutingContext';
|
|
3
|
-
import type { StoredEventLike } from '@semiont/core';
|
|
4
|
-
type TranslateFn = (key: string, params?: Record<string, string | number>) => string;
|
|
5
|
-
interface Props {
|
|
6
|
-
event: StoredEventLike;
|
|
7
|
-
annotations: any[];
|
|
8
|
-
allEvents: StoredEventLike[];
|
|
9
|
-
isRelated: boolean;
|
|
10
|
-
t: TranslateFn;
|
|
11
|
-
Link: React.ComponentType<LinkComponentProps>;
|
|
12
|
-
routes: RouteBuilder;
|
|
13
|
-
onEventRef?: (annotationId: string | null, element: HTMLElement | null) => void;
|
|
14
|
-
onEventClick?: (annotationId: string | null) => void;
|
|
15
|
-
onEventHover?: (annotationId: string | null) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function HistoryEvent({ event, annotations, allEvents, isRelated, t, Link, routes, onEventRef, onEventClick, onEventHover }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=HistoryEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryEvent.d.ts","sourceRoot":"","sources":["../../../src/components/resource/HistoryEvent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,eAAe,CAAC;AAYzE,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAErF,UAAU,KAAK;IACb,KAAK,EAAE,eAAe,CAAC;IACvB,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,CAAC,EAAE,WAAW,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAChF,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACtD;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,CAAC,EACD,IAAI,EACJ,MAAM,EACN,UAAU,EACV,YAAY,EACZ,YAAY,EACb,EAAE,KAAK,2CAmIP"}
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|