@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,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for grouped annotation component props.
|
|
3
|
-
*
|
|
4
|
-
* These types help reduce props explosion by grouping related concerns:
|
|
5
|
-
* - Annotations collection (4 props → 1)
|
|
6
|
-
* - Event handlers (6+ props → grouped)
|
|
7
|
-
* - UI state (multiple props → 1)
|
|
8
|
-
*/
|
|
9
|
-
import type { Annotation } from '@semiont/core';
|
|
10
|
-
/**
|
|
11
|
-
* Collection of all annotation types for a resource.
|
|
12
|
-
* Replaces separate highlights, references, assessments, comments, tags props.
|
|
13
|
-
*/
|
|
14
|
-
export interface AnnotationsCollection {
|
|
15
|
-
highlights: Annotation[];
|
|
16
|
-
references: Annotation[];
|
|
17
|
-
assessments: Annotation[];
|
|
18
|
-
comments: Annotation[];
|
|
19
|
-
tags: Annotation[];
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Event handlers for annotation interactions.
|
|
23
|
-
* Groups multiple click and hover handlers into a single interface.
|
|
24
|
-
*/
|
|
25
|
-
export interface AnnotationHandlers {
|
|
26
|
-
/** Unified click handler - routes based on annotation type and current mode */
|
|
27
|
-
onClick?: (annotation: Annotation, event?: React.MouseEvent) => void;
|
|
28
|
-
/** Unified hover handler for all annotation types */
|
|
29
|
-
onHover?: (annotationId: string | null) => void;
|
|
30
|
-
/** Hover handler specifically for comment panel highlighting */
|
|
31
|
-
onCommentHover?: (commentId: string | null) => void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* UI-level parameters for annotation creation.
|
|
35
|
-
* Works for both text selections and image shapes.
|
|
36
|
-
* Used by annotation UI components before converting to AnnotationManager params.
|
|
37
|
-
*/
|
|
38
|
-
export interface UICreateAnnotationParams {
|
|
39
|
-
/** The motivation for creating this annotation */
|
|
40
|
-
motivation: import('@semiont/react-ui').SelectionMotivation;
|
|
41
|
-
/** Selector information - text, SVG, or fragment */
|
|
42
|
-
selector: {
|
|
43
|
-
/** Selector type */
|
|
44
|
-
type: 'TextQuoteSelector' | 'SvgSelector' | 'FragmentSelector';
|
|
45
|
-
/** For TextQuoteSelector: the exact text selected */
|
|
46
|
-
exact?: string;
|
|
47
|
-
/** For TextQuoteSelector: context before selection */
|
|
48
|
-
prefix?: string;
|
|
49
|
-
/** For TextQuoteSelector: context after selection */
|
|
50
|
-
suffix?: string;
|
|
51
|
-
/** For TextPositionSelector: start position in document */
|
|
52
|
-
start?: number;
|
|
53
|
-
/** For TextPositionSelector: end position in document */
|
|
54
|
-
end?: number;
|
|
55
|
-
/** For SvgSelector: the SVG shape string */
|
|
56
|
-
value?: string;
|
|
57
|
-
/** For FragmentSelector: conformsTo URI (RFC 3778 for PDF) */
|
|
58
|
-
conformsTo?: string;
|
|
59
|
-
};
|
|
60
|
-
/** Optional position for popup placement (text: near selection, image: shape center) */
|
|
61
|
-
position?: {
|
|
62
|
-
x: number;
|
|
63
|
-
y: number;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Unified creation handler for new annotations.
|
|
68
|
-
* Works for both text and image annotations.
|
|
69
|
-
*
|
|
70
|
-
* Behavior by motivation:
|
|
71
|
-
* - highlighting/assessing: Creates annotation immediately
|
|
72
|
-
* - commenting: Creates annotation, then opens Comment Panel
|
|
73
|
-
* - linking: Shows Quick Reference popup FIRST, creates when user confirms
|
|
74
|
-
*/
|
|
75
|
-
export interface AnnotationCreationHandler {
|
|
76
|
-
onCreate?: (params: UICreateAnnotationParams) => void | Promise<void> | Promise<Annotation | undefined>;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* UI state for annotation toolbar and interactions.
|
|
80
|
-
* Groups multiple UI state props into a single object.
|
|
81
|
-
*/
|
|
82
|
-
export interface AnnotationUIState {
|
|
83
|
-
/** Currently selected annotation motivation (linking, highlighting, etc.) */
|
|
84
|
-
selectedMotivation: import('@semiont/react-ui').SelectionMotivation | null;
|
|
85
|
-
/** Currently selected click mode (detail, follow, delete, jsonld) */
|
|
86
|
-
selectedClick: import('@semiont/react-ui').ClickAction;
|
|
87
|
-
/** Currently selected shape for image annotations */
|
|
88
|
-
selectedShape: import('@semiont/react-ui').ShapeType;
|
|
89
|
-
/** ID of currently hovered annotation (optional - only set when hovering) */
|
|
90
|
-
hoveredAnnotationId?: string | null;
|
|
91
|
-
/** ID of annotation to scroll to (optional - only set when scrolling needed) */
|
|
92
|
-
scrollToAnnotationId?: string | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Configuration options for annotation views.
|
|
96
|
-
* Groups feature flags and settings.
|
|
97
|
-
*/
|
|
98
|
-
export interface AnnotationConfig {
|
|
99
|
-
/** Whether content is editable */
|
|
100
|
-
editable?: boolean;
|
|
101
|
-
/** Whether to show annotation widgets (entity types, reference buttons) */
|
|
102
|
-
enableWidgets?: boolean;
|
|
103
|
-
/** Whether to show line numbers in code view */
|
|
104
|
-
showLineNumbers?: boolean;
|
|
105
|
-
/** Whether view is in annotate mode or browse mode */
|
|
106
|
-
annotateMode?: boolean;
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=annotation-props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotation-props.d.ts","sourceRoot":"","sources":["../../src/types/annotation-props.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAErE,qDAAqD;IACrD,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEhD,gEAAgE;IAChE,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,kDAAkD;IAClD,UAAU,EAAE,OAAO,mBAAmB,EAAE,mBAAmB,CAAC;IAE5D,oDAAoD;IACpD,QAAQ,EAAE;QACR,oBAAoB;QACpB,IAAI,EAAE,mBAAmB,GAAG,aAAa,GAAG,kBAAkB,CAAC;QAE/D,qDAAqD;QACrD,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,sDAAsD;QACtD,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,qDAAqD;QACrD,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,2DAA2D;QAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,yDAAyD;QACzD,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,4CAA4C;QAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,8DAA8D;QAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF,wFAAwF;IACxF,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CACzG;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,6EAA6E;IAC7E,kBAAkB,EAAE,OAAO,mBAAmB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAE3E,qEAAqE;IACrE,aAAa,EAAE,OAAO,mBAAmB,EAAE,WAAW,CAAC;IAEvD,qDAAqD;IACrD,aAAa,EAAE,OAAO,mBAAmB,EAAE,SAAS,CAAC;IAErD,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC,gFAAgF;IAChF,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,gDAAgD;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,sDAAsD;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import type { OpenResource } from '@semiont/sdk';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the sortable resource tab component
|
|
5
|
-
*/
|
|
6
|
-
export interface SortableResourceTabProps {
|
|
7
|
-
resource: OpenResource;
|
|
8
|
-
isCollapsed: boolean;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
href: string;
|
|
11
|
-
onClose: (id: string, e: React.MouseEvent) => void;
|
|
12
|
-
onReorder?: (resourceId: string, direction: 'up' | 'down') => void;
|
|
13
|
-
index?: number;
|
|
14
|
-
totalCount?: number;
|
|
15
|
-
LinkComponent: ComponentType<any>;
|
|
16
|
-
dragHandleProps?: any;
|
|
17
|
-
isDragging?: boolean;
|
|
18
|
-
translations: {
|
|
19
|
-
dragToReorder?: string;
|
|
20
|
-
dragToReorderDoc?: string;
|
|
21
|
-
closeResource?: string;
|
|
22
|
-
moveUp?: string;
|
|
23
|
-
moveDown?: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Props for the collapsible resource navigation component
|
|
28
|
-
*/
|
|
29
|
-
export interface CollapsibleResourceNavigationProps {
|
|
30
|
-
fixedItems: Array<{
|
|
31
|
-
name: string;
|
|
32
|
-
href: string;
|
|
33
|
-
icon: ComponentType<any>;
|
|
34
|
-
description?: string;
|
|
35
|
-
}>;
|
|
36
|
-
resources: OpenResource[];
|
|
37
|
-
isCollapsed: boolean;
|
|
38
|
-
currentPath: string;
|
|
39
|
-
LinkComponent: ComponentType<any>;
|
|
40
|
-
onNavigate?: (path: string) => void;
|
|
41
|
-
getResourceHref: (resourceId: string) => string;
|
|
42
|
-
className?: string;
|
|
43
|
-
translations: {
|
|
44
|
-
title?: string;
|
|
45
|
-
collapseSidebar?: string;
|
|
46
|
-
expandSidebar?: string;
|
|
47
|
-
dragToReorder?: string;
|
|
48
|
-
dragToReorderDoc?: string;
|
|
49
|
-
closeResource?: string;
|
|
50
|
-
dragInstructions?: string;
|
|
51
|
-
};
|
|
52
|
-
icons: {
|
|
53
|
-
chevronLeft: ComponentType<any>;
|
|
54
|
-
bars: ComponentType<any>;
|
|
55
|
-
close: ComponentType<any>;
|
|
56
|
-
};
|
|
57
|
-
navigationMenu?: ((onClose: () => void) => ReactNode) | undefined;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Drag and drop sensor configuration
|
|
61
|
-
*/
|
|
62
|
-
export interface DragSensorConfig {
|
|
63
|
-
activationConstraint?: {
|
|
64
|
-
distance?: number;
|
|
65
|
-
delay?: number;
|
|
66
|
-
tolerance?: number;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=collapsible-navigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible-navigation.d.ts","sourceRoot":"","sources":["../../src/types/collapsible-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,YAAY,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAClC,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAEjD,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;IAGH,SAAS,EAAE,YAAY,EAAE,CAAC;IAG1B,WAAW,EAAE,OAAO,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAGpC,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAGhD,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,YAAY,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IAGF,KAAK,EAAE;QACL,WAAW,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;QACzB,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;KAC3B,CAAC;IAGF,cAAc,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC;CACnE;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB,CAAC,EAAE;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
package/dist/types/modals.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Base modal props that all modals share
|
|
4
|
-
*/
|
|
5
|
-
export interface BaseModalProps {
|
|
6
|
-
/** Whether the modal is open */
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
/** Callback when the modal should close */
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
/** Optional CSS class name */
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Props for modals that need translation support
|
|
15
|
-
*/
|
|
16
|
-
export interface TranslatableModalProps {
|
|
17
|
-
/** Translation function for getting localized strings */
|
|
18
|
-
t: (key: string, values?: Record<string, any>) => string;
|
|
19
|
-
/** Current locale code */
|
|
20
|
-
locale?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Props for modals that navigate
|
|
24
|
-
*/
|
|
25
|
-
export interface NavigableModalProps {
|
|
26
|
-
/** Navigation function */
|
|
27
|
-
onNavigate: (path: string) => void;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Search modal specific props
|
|
31
|
-
*/
|
|
32
|
-
export interface SearchModalProps extends BaseModalProps, NavigableModalProps {
|
|
33
|
-
/** Optional translation support */
|
|
34
|
-
translations?: {
|
|
35
|
-
placeholder?: string;
|
|
36
|
-
searching?: string;
|
|
37
|
-
noResults?: string;
|
|
38
|
-
startTyping?: string;
|
|
39
|
-
navigate?: string;
|
|
40
|
-
select?: string;
|
|
41
|
-
close?: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Resource search modal props
|
|
46
|
-
*/
|
|
47
|
-
export interface ResourceSearchModalProps extends BaseModalProps {
|
|
48
|
-
/** Callback when a resource is selected */
|
|
49
|
-
onSelect: (resourceId: string) => void;
|
|
50
|
-
/** Initial search term */
|
|
51
|
-
searchTerm?: string;
|
|
52
|
-
/** Optional translation support */
|
|
53
|
-
translations?: {
|
|
54
|
-
title?: string;
|
|
55
|
-
placeholder?: string;
|
|
56
|
-
searching?: string;
|
|
57
|
-
noResults?: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Modal provider props for dependency injection
|
|
62
|
-
*/
|
|
63
|
-
export interface ModalProviderProps {
|
|
64
|
-
/** Dialog component (e.g., from @headlessui/react) */
|
|
65
|
-
DialogComponent: ComponentType<any>;
|
|
66
|
-
/** Dialog panel component */
|
|
67
|
-
DialogPanelComponent: ComponentType<any>;
|
|
68
|
-
/** Dialog title component */
|
|
69
|
-
DialogTitleComponent?: ComponentType<any>;
|
|
70
|
-
/** Transition component */
|
|
71
|
-
TransitionComponent: ComponentType<any>;
|
|
72
|
-
/** Transition child component */
|
|
73
|
-
TransitionChildComponent: ComponentType<any>;
|
|
74
|
-
/** Children to render */
|
|
75
|
-
children: ReactNode;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=modals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../src/types/modals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,yDAAyD;IACzD,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC;IACzD,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,mBAAmB;IAC3E,mCAAmC;IACnC,YAAY,CAAC,EAAE;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,0BAA0B;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,6BAA6B;IAC7B,oBAAoB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,6BAA6B;IAC7B,oBAAoB,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1C,2BAA2B;IAC3B,mBAAmB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACxC,iCAAiC;IACjC,wBAAwB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7C,yBAAyB;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a single navigation item
|
|
4
|
-
*/
|
|
5
|
-
export interface NavigationItem {
|
|
6
|
-
/** Display name for the navigation item */
|
|
7
|
-
name: string;
|
|
8
|
-
/** Target URL/path for the navigation item */
|
|
9
|
-
href: string;
|
|
10
|
-
/** Icon component to display */
|
|
11
|
-
icon: ComponentType<any>;
|
|
12
|
-
/** Optional description/tooltip text */
|
|
13
|
-
description?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Props for navigation components that need framework-specific routing
|
|
17
|
-
*/
|
|
18
|
-
export interface NavigationProps {
|
|
19
|
-
/** List of navigation items to display */
|
|
20
|
-
items: NavigationItem[];
|
|
21
|
-
/** Current active path for highlighting */
|
|
22
|
-
currentPath: string;
|
|
23
|
-
/** Framework-specific Link component (e.g., Next.js Link) */
|
|
24
|
-
LinkComponent: ComponentType<{
|
|
25
|
-
href: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
title?: string;
|
|
29
|
-
}>;
|
|
30
|
-
/** Optional CSS class name */
|
|
31
|
-
className?: string;
|
|
32
|
-
/** Optional section title */
|
|
33
|
-
title?: string;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/types/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACzB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,aAAa,EAAE,aAAa,CAAC;QAC3B,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,SAAS,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for resource viewer feature
|
|
3
|
-
*/
|
|
4
|
-
import type { components, Annotation, ResourceDescriptor } from '@semiont/core';
|
|
5
|
-
export type { Annotation };
|
|
6
|
-
export type SemiontResource = ResourceDescriptor;
|
|
7
|
-
export type Motivation = components['schemas']['Motivation'];
|
|
8
|
-
/**
|
|
9
|
-
* Selection for creating annotations
|
|
10
|
-
*/
|
|
11
|
-
export interface TextSelection {
|
|
12
|
-
exact: string;
|
|
13
|
-
start: number;
|
|
14
|
-
end: number;
|
|
15
|
-
prefix?: string;
|
|
16
|
-
suffix?: string;
|
|
17
|
-
svgSelector?: string;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=resource-viewer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-viewer.d.ts","sourceRoot":"","sources":["../../src/types/resource-viewer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEhF,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export interface SimpleNavigationItem {
|
|
3
|
-
name: string;
|
|
4
|
-
href: string;
|
|
5
|
-
icon: React.ComponentType<any>;
|
|
6
|
-
description?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SimpleNavigationProps {
|
|
9
|
-
title: string;
|
|
10
|
-
items: SimpleNavigationItem[];
|
|
11
|
-
currentPath: string;
|
|
12
|
-
LinkComponent: React.ComponentType<any>;
|
|
13
|
-
dropdownContent?: ((onClose: () => void) => ReactNode) | undefined;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=simple-navigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-navigation.d.ts","sourceRoot":"","sources":["../../src/types/simple-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,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,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC;CACpE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/types/translation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC"}
|