@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,30 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { components } from '@semiont/core';
|
|
2
|
-
type Agent = components['schemas']['Agent'];
|
|
3
|
-
/**
|
|
4
|
-
* Compose a display label for an Agent at render time. Software peers
|
|
5
|
-
* read `${provider} ${model}` from their structured fields rather than
|
|
6
|
-
* a producer-side concatenated `name`. Person/Organization fall back
|
|
7
|
-
* to `name`. Unknown shapes fall back to `name` then to `@id`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function renderAgentLabel(agent: Agent): string;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=agent-label.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-label.d.ts","sourceRoot":"","sources":["../../../../src/components/resource/panels/agent-label.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,KAAK,KAAK,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CASrD"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import './SettingsPanel.css';
|
|
2
|
-
interface SettingsPanelProps {
|
|
3
|
-
showLineNumbers: boolean;
|
|
4
|
-
theme: 'light' | 'dark' | 'system';
|
|
5
|
-
locale: string;
|
|
6
|
-
isPendingLocaleChange?: boolean;
|
|
7
|
-
hoverDelayMs: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Settings panel for application preferences
|
|
11
|
-
*
|
|
12
|
-
* @emits settings:locale-changed - Locale changed by user. Payload: { locale: string }
|
|
13
|
-
* @emits settings:line-numbers-toggled - Line numbers toggled on/off. Payload: undefined
|
|
14
|
-
* @emits settings:theme-changed - Theme changed by user. Payload: { theme: 'light' | 'dark' | 'system' }
|
|
15
|
-
* @emits settings:hover-delay-changed - Hover delay changed by user. Payload: { hoverDelayMs: number }
|
|
16
|
-
*/
|
|
17
|
-
export declare function SettingsPanel({ showLineNumbers, theme, locale, isPendingLocaleChange, hoverDelayMs }: SettingsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=SettingsPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/settings/SettingsPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,qBAAqB,CAAC;AAE7B,UAAU,kBAAkB;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,eAAe,EACf,KAAK,EACL,MAAM,EACN,qBAA6B,EAC7B,YAAY,EACb,EAAE,kBAAkB,2CA4JpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageViewer.d.ts","sourceRoot":"","sources":["../../../src/components/viewers/ImageViewer.tsx"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAsB,EAAE,EAAE,gBAAgB,2CAWjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/viewers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AnnotationManager } from '../types/AnnotationManager';
|
|
3
|
-
export interface AnnotationProviderProps {
|
|
4
|
-
annotationManager: AnnotationManager;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Annotation Provider
|
|
9
|
-
*
|
|
10
|
-
* Provides annotation mutation capabilities (create, delete) via the Provider Pattern.
|
|
11
|
-
* Apps inject their own AnnotationManager implementation.
|
|
12
|
-
*
|
|
13
|
-
* Example usage:
|
|
14
|
-
* ```typescript
|
|
15
|
-
* function useAnnotationManager(client: SemiontClient): AnnotationManager {
|
|
16
|
-
* return {
|
|
17
|
-
* markAnnotation: async (params) => {
|
|
18
|
-
* const result = await client.mark.annotation({
|
|
19
|
-
* motivation: params.motivation,
|
|
20
|
-
* target: { source: params.rUri, selector: params.selector },
|
|
21
|
-
* body: params.body,
|
|
22
|
-
* });
|
|
23
|
-
* return result.annotation;
|
|
24
|
-
* },
|
|
25
|
-
* deleteAnnotation: async (params) => {
|
|
26
|
-
* await client.mark.delete(params.rUri, params.annotationId);
|
|
27
|
-
* }
|
|
28
|
-
* };
|
|
29
|
-
* }
|
|
30
|
-
*
|
|
31
|
-
* // In app layout
|
|
32
|
-
* const annotationManager = useAnnotationManager();
|
|
33
|
-
* <AnnotationProvider annotationManager={annotationManager}>
|
|
34
|
-
* <YourComponents />
|
|
35
|
-
* </AnnotationProvider>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function AnnotationProvider({ annotationManager, children }: AnnotationProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* Hook to access the AnnotationManager
|
|
41
|
-
*
|
|
42
|
-
* @throws Error if used outside AnnotationProvider
|
|
43
|
-
* @returns AnnotationManager instance
|
|
44
|
-
*/
|
|
45
|
-
export declare function useAnnotationManager(): AnnotationManager;
|
|
46
|
-
//# sourceMappingURL=AnnotationContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationContext.d.ts","sourceRoot":"","sources":["../../src/contexts/AnnotationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAIpE,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,QAAQ,EAAE,EAAE,uBAAuB,2CAM1F;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CAMxD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AnnotationId, ResourceId, Selector } from '@semiont/core';
|
|
3
|
-
interface ResourceAnnotationsContextType {
|
|
4
|
-
newAnnotationIds: Set<string>;
|
|
5
|
-
markAnnotation: (rUri: ResourceId, motivation: 'highlighting' | 'linking' | 'assessing' | 'commenting' | 'tagging', selector: Selector | Selector[], body?: any[]) => Promise<string | undefined>;
|
|
6
|
-
clearNewAnnotationId: (id: AnnotationId) => void;
|
|
7
|
-
triggerSparkleAnimation: (annotationId: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function ResourceAnnotationsProvider({ children }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function useResourceAnnotations(): ResourceAnnotationsContextType;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=ResourceAnnotationsContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceAnnotationsContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ResourceAnnotationsContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAGzF,OAAO,KAAK,EAAc,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAUpF,UAAU,8BAA8B;IAEtC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAG9B,cAAc,EAAE,CACd,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,EAC/E,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,EAC/B,IAAI,CAAC,EAAE,GAAG,EAAE,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAGjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,uBAAuB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAID,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAyFtF;AAED,wBAAgB,sBAAsB,mCAMrC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Standard Link component interface
|
|
4
|
-
* Compatible with Next.js Link, React Router Link, etc.
|
|
5
|
-
*
|
|
6
|
-
* Components accept Link as a prop to remain framework-agnostic.
|
|
7
|
-
* Apps provide their framework-specific Link component (Next.js, React Router, etc.)
|
|
8
|
-
*/
|
|
9
|
-
export interface LinkComponentProps {
|
|
10
|
-
href: string;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
className?: string;
|
|
13
|
-
title?: string;
|
|
14
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Route builder interface
|
|
19
|
-
* Apps provide concrete implementations for their routing scheme
|
|
20
|
-
*
|
|
21
|
-
* Components accept routes as a prop to build URLs without framework dependencies.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* // In app (e.g., frontend/src/lib/routing.ts)
|
|
26
|
-
* export const routes: RouteBuilder = {
|
|
27
|
-
* resourceDetail: (id) => `/know/resource/${id}`,
|
|
28
|
-
* userProfile: (id) => `/users/${id}`,
|
|
29
|
-
* search: (query) => `/search?q=${query}`,
|
|
30
|
-
* home: () => '/',
|
|
31
|
-
* };
|
|
32
|
-
*
|
|
33
|
-
* // Pass to components as props
|
|
34
|
-
* <MyComponent Link={Link} routes={routes} />
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export interface RouteBuilder {
|
|
38
|
-
/** Resource detail page */
|
|
39
|
-
resourceDetail: (id: string) => string;
|
|
40
|
-
/** User profile page */
|
|
41
|
-
userProfile: (id: string) => string;
|
|
42
|
-
/** Search page with query */
|
|
43
|
-
search: (query: string) => string;
|
|
44
|
-
/** Home/root page */
|
|
45
|
-
home: () => string;
|
|
46
|
-
/** About page */
|
|
47
|
-
about?: () => string;
|
|
48
|
-
/** Privacy policy page */
|
|
49
|
-
privacy?: () => string;
|
|
50
|
-
/** Terms of service page */
|
|
51
|
-
terms?: () => string;
|
|
52
|
-
/** Knowledge base page */
|
|
53
|
-
knowledge?: () => string;
|
|
54
|
-
/** Moderation dashboard */
|
|
55
|
-
moderate?: () => string;
|
|
56
|
-
/** Admin dashboard */
|
|
57
|
-
admin?: () => string;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=RoutingContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingContext.d.ts","sourceRoot":"","sources":["../../src/contexts/RoutingContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAEvC,wBAAwB;IACxB,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAEpC,6BAA6B;IAC7B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAElC,qBAAqB;IACrB,IAAI,EAAE,MAAM,MAAM,CAAC;IAEnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IAErB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IAEvB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IAErB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;IAEzB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC;IAExB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;CACtB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type Theme = 'light' | 'dark' | 'system';
|
|
3
|
-
export type ResolvedTheme = 'light' | 'dark';
|
|
4
|
-
interface ThemeContextValue {
|
|
5
|
-
theme: Theme;
|
|
6
|
-
setTheme: (theme: Theme) => void;
|
|
7
|
-
resolvedTheme: ResolvedTheme;
|
|
8
|
-
systemTheme: ResolvedTheme;
|
|
9
|
-
}
|
|
10
|
-
export declare function ThemeProvider({ children }: {
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare function useTheme(): ThemeContextValue;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAChD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,UAAU,iBAAiB;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,aAAa,CAAC;CAC5B;AAID,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA+ClE;AAED,wBAAgB,QAAQ,IAAI,iBAAiB,CAM5C"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { TranslationManager } from '../types/TranslationManager';
|
|
3
|
-
export declare const AVAILABLE_LOCALES: readonly ["ar", "bn", "cs", "da", "de", "el", "en", "es", "fa", "fi", "fr", "he", "hi", "id", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "ro", "sv", "th", "tr", "uk", "vi", "zh"];
|
|
4
|
-
export type AvailableLocale = typeof AVAILABLE_LOCALES[number];
|
|
5
|
-
export interface TranslationProviderProps {
|
|
6
|
-
/**
|
|
7
|
-
* Option 1: Provide a complete TranslationManager implementation
|
|
8
|
-
*/
|
|
9
|
-
translationManager?: TranslationManager;
|
|
10
|
-
/**
|
|
11
|
-
* Option 2: Use built-in translations by specifying a locale
|
|
12
|
-
* When adding new locales, just add the JSON file and update AVAILABLE_LOCALES
|
|
13
|
-
*/
|
|
14
|
-
locale?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Loading component to show while translations are being loaded
|
|
17
|
-
* Only relevant when using dynamic locale loading
|
|
18
|
-
*/
|
|
19
|
-
loadingComponent?: ReactNode;
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Provider for translation management with dynamic loading
|
|
24
|
-
*
|
|
25
|
-
* Three modes of operation:
|
|
26
|
-
* 1. No provider: Components use default English strings
|
|
27
|
-
* 2. With locale prop: Dynamically loads translations for that locale
|
|
28
|
-
* 3. With translationManager: Use custom translation implementation
|
|
29
|
-
*/
|
|
30
|
-
export declare function TranslationProvider({ translationManager, locale, loadingComponent, children, }: TranslationProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* Hook to access translations within a namespace
|
|
33
|
-
*
|
|
34
|
-
* Works in three modes:
|
|
35
|
-
* 1. Without provider: Returns default English translations
|
|
36
|
-
* 2. With provider using locale: Returns dynamically loaded translations for that locale
|
|
37
|
-
* 3. With custom provider: Uses the custom translation manager
|
|
38
|
-
*
|
|
39
|
-
* @param namespace - Translation namespace (e.g., 'Toolbar', 'ResourceViewer')
|
|
40
|
-
* @returns Function to translate keys within the namespace
|
|
41
|
-
*/
|
|
42
|
-
export declare function useTranslations(namespace: string): (key: string, params?: Record<string, any>) => string;
|
|
43
|
-
/**
|
|
44
|
-
* Hook to preload translations for a locale
|
|
45
|
-
* Useful for preloading translations before navigation
|
|
46
|
-
*/
|
|
47
|
-
export declare function usePreloadTranslations(): {
|
|
48
|
-
preload: (locale: string) => Promise<boolean>;
|
|
49
|
-
isLoaded: (locale: string) => boolean;
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=TranslationContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationContext.d.ts","sourceRoot":"","sources":["../../src/contexts/TranslationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6B,SAAS,EAAgC,MAAM,OAAO,CAAC;AAC3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAyEtE,eAAO,MAAM,iBAAiB,yLA8BpB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAuD/D,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAE7B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,kBAAkB,EAClB,MAAM,EACN,gBAAuB,EACvB,QAAQ,GACT,EAAE,wBAAwB,2CAgF1B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,SAKhC,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YA2BpD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB;sBAEV,MAAM;uBASX,MAAM;EAE5B"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { EventMap } from '@semiont/core';
|
|
2
|
-
/**
|
|
3
|
-
* Subscribe to a bus event with automatic cleanup.
|
|
4
|
-
*
|
|
5
|
-
* Two buses exist: the app-scoped bus on `SemiontBrowser` (panel, shell,
|
|
6
|
-
* tabs, nav, settings — events that must work without a KB session) and
|
|
7
|
-
* the per-session bus on `SemiontClient` (mark, beckon, gather,
|
|
8
|
-
* match, bind, yield, browse — events tied to a live KB). This hook
|
|
9
|
-
* subscribes to BOTH so components don't need to know which scope a
|
|
10
|
-
* channel is on. Each channel only fires on one bus, so there's no
|
|
11
|
-
* double-delivery.
|
|
12
|
-
*
|
|
13
|
-
* Stable-handler pattern: the ref-wrapped handler means `handler` itself
|
|
14
|
-
* can change on every render without causing a re-subscription.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* useEventSubscription('mark:create-ok', ({ annotationId }) => {
|
|
19
|
-
* triggerSparkleAnimation(annotationId);
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useEventSubscription<K extends keyof EventMap>(eventName: K, handler: (payload: EventMap[K]) => void): void;
|
|
24
|
-
/**
|
|
25
|
-
* Subscribe to multiple bus events at once. Same semantics as
|
|
26
|
-
* `useEventSubscription`, batched — each channel is subscribed on both
|
|
27
|
-
* the app bus (`SemiontBrowser`) and the session bus
|
|
28
|
-
* (`SemiontClient`, when a session is active).
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* useEventSubscriptions({
|
|
33
|
-
* 'mark:create-ok': ({ annotationId }) => handleCreated(annotationId),
|
|
34
|
-
* 'panel:toggle': ({ panel }) => console.log('toggled', panel),
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function useEventSubscriptions(subscriptions: {
|
|
39
|
-
[K in keyof EventMap]?: (payload: EventMap[K]) => void;
|
|
40
|
-
}): void;
|
|
41
|
-
//# sourceMappingURL=useEventSubscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEventSubscription.d.ts","sourceRoot":"","sources":["../../src/contexts/useEventSubscription.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,QAAQ,EAC3D,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,GACtC,IAAI,CAeN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE;KACZ,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI;CACvD,GACA,IAAI,CA8BN"}
|