@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
package/dist/test-utils.d.ts
CHANGED
|
@@ -1,30 +1,48 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { RenderOptions, RenderResult } from '@testing-library/react';
|
|
3
|
+
export * from '@testing-library/react';
|
|
4
|
+
import { SemiontBrowser, SemiontClient } from '@semiont/sdk';
|
|
5
|
+
import { EventBus } from '@semiont/core';
|
|
6
|
+
export { vi } from 'vitest';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Translation management interface
|
|
10
|
+
* Apps implement this to provide translations using their preferred i18n library
|
|
11
|
+
*/
|
|
12
|
+
interface TranslationManager {
|
|
13
|
+
/**
|
|
14
|
+
* Translate a key within a namespace
|
|
15
|
+
* @param namespace - Translation namespace (e.g., 'Toolbar', 'ResourceViewer')
|
|
16
|
+
* @param key - Translation key within the namespace
|
|
17
|
+
* @param params - Optional parameters for interpolation
|
|
18
|
+
* @returns Translated string
|
|
19
|
+
*/
|
|
20
|
+
t: (namespace: string, key: string, params?: Record<string, any>) => string;
|
|
21
|
+
}
|
|
22
|
+
|
|
1
23
|
/**
|
|
2
24
|
* Test utilities for @semiont/react-ui
|
|
3
25
|
*
|
|
4
26
|
* Provides a renderWithProviders helper that wraps components with all necessary providers
|
|
5
27
|
* for testing, with customizable mock implementations.
|
|
6
28
|
*/
|
|
7
|
-
|
|
8
|
-
import { RenderOptions, RenderResult } from '@testing-library/react';
|
|
9
|
-
import { SemiontClient, type SemiontBrowser } from '@semiont/sdk';
|
|
10
|
-
import { EventBus } from '@semiont/core';
|
|
11
|
-
import type { TranslationManager } from './types/TranslationManager';
|
|
29
|
+
|
|
12
30
|
/**
|
|
13
31
|
* Default mock implementations
|
|
14
32
|
*/
|
|
15
|
-
|
|
33
|
+
declare const defaultMocks: {
|
|
16
34
|
translationManager: TranslationManager;
|
|
17
35
|
};
|
|
18
36
|
/**
|
|
19
37
|
* Options for renderWithProviders
|
|
20
38
|
*/
|
|
21
|
-
|
|
39
|
+
interface TestProvidersOptions {
|
|
22
40
|
translationManager?: TranslationManager;
|
|
23
41
|
apiBaseUrl?: string;
|
|
24
42
|
/** Inject a specific SemiontBrowser (e.g. one seeded with a kbs list). */
|
|
25
43
|
browser?: SemiontBrowser;
|
|
26
44
|
}
|
|
27
|
-
|
|
45
|
+
interface RenderWithProvidersOptions extends TestProvidersOptions, Omit<RenderOptions, 'wrapper'> {
|
|
28
46
|
/**
|
|
29
47
|
* If true, returns the session (client) EventBus — session-scoped
|
|
30
48
|
* channels (mark:*, beckon:*, gather:*, match:*, bind:*, yield:*,
|
|
@@ -37,20 +55,20 @@ export interface RenderWithProvidersOptions extends TestProvidersOptions, Omit<R
|
|
|
37
55
|
*/
|
|
38
56
|
returnShellBus?: boolean;
|
|
39
57
|
}
|
|
40
|
-
|
|
58
|
+
interface RenderWithProvidersResult extends RenderResult {
|
|
41
59
|
/** Session-scoped bus (from the fake client inside the fake browser). */
|
|
42
60
|
eventBus?: EventBus;
|
|
43
61
|
/** App-scoped bus (the fake browser's own bus). */
|
|
44
62
|
shellBus?: EventBus;
|
|
45
63
|
}
|
|
46
|
-
|
|
64
|
+
declare function renderWithProviders(ui: ReactElement, options?: RenderWithProvidersOptions): RenderWithProvidersResult;
|
|
47
65
|
/**
|
|
48
66
|
* Build a minimal `<SemiontProvider>` wrapper for tests that roll their
|
|
49
67
|
* own render wrapper (instead of `renderWithProviders`). The returned
|
|
50
68
|
* `eventBus` is the bus backing the fake session's client — same
|
|
51
69
|
* reference production code pokes via `session.client.emit(...)`.
|
|
52
70
|
*/
|
|
53
|
-
|
|
71
|
+
declare function createTestSemiontWrapper(apiBaseUrl?: string): {
|
|
54
72
|
SemiontWrapper: React.ComponentType<{
|
|
55
73
|
children: React.ReactNode;
|
|
56
74
|
}>;
|
|
@@ -64,14 +82,14 @@ export declare function createTestSemiontWrapper(apiBaseUrl?: string): {
|
|
|
64
82
|
/**
|
|
65
83
|
* Create a mock translation manager with custom translations
|
|
66
84
|
*/
|
|
67
|
-
|
|
85
|
+
declare function createMockTranslationManager(translations: Record<string, Record<string, string>>): TranslationManager;
|
|
68
86
|
/**
|
|
69
87
|
* Build a fake SemiontBrowser with the active SessionSignals
|
|
70
88
|
* observables pre-populated. Used by SessionExpiredModal and
|
|
71
89
|
* PermissionDeniedModal tests that need to control the modal flags
|
|
72
90
|
* without driving a real session through its state machine.
|
|
73
91
|
*/
|
|
74
|
-
|
|
92
|
+
declare function createMockKnowledgeBaseSession(overrides?: {
|
|
75
93
|
permissionDeniedAt?: number | null;
|
|
76
94
|
permissionDeniedMessage?: string | null;
|
|
77
95
|
sessionExpiredAt?: number | null;
|
|
@@ -79,6 +97,6 @@ export declare function createMockKnowledgeBaseSession(overrides?: {
|
|
|
79
97
|
acknowledgePermissionDenied?: () => void;
|
|
80
98
|
acknowledgeSessionExpired?: () => void;
|
|
81
99
|
}): SemiontBrowser;
|
|
82
|
-
|
|
83
|
-
export {
|
|
84
|
-
|
|
100
|
+
|
|
101
|
+
export { createMockKnowledgeBaseSession, createMockTranslationManager, createTestSemiontWrapper, defaultMocks, renderWithProviders };
|
|
102
|
+
export type { RenderWithProvidersOptions, RenderWithProvidersResult, TestProvidersOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semiont/react-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "React components and hooks for Semiont",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
],
|
|
46
46
|
"scripts": {
|
|
47
47
|
"lint:css": "stylelint 'src/**/*.css' --config ../../.stylelintrc.json",
|
|
48
|
-
"build": "npm run lint:css && npm run typecheck && tsup && tsc -p tsconfig.build.json",
|
|
48
|
+
"build": "npm run lint:css && npm run typecheck && tsup && tsc -p tsconfig.build.json && rollup -c rollup.dts.config.mjs && rm -rf dist-types",
|
|
49
49
|
"typecheck": "tsc --noEmit",
|
|
50
|
-
"clean": "rm -rf dist",
|
|
50
|
+
"clean": "rm -rf dist dist-types",
|
|
51
51
|
"audit:compliance": "./scripts/generate-compliance-report.sh",
|
|
52
52
|
"audit:compliance:tests": "./scripts/generate-test-compliance-report.sh",
|
|
53
53
|
"test": "npm run test:split",
|
|
@@ -89,6 +89,8 @@
|
|
|
89
89
|
"jest-axe": "^10.0.0",
|
|
90
90
|
"jsdom": "^28.0.0",
|
|
91
91
|
"postcss-import": "^16.1.1",
|
|
92
|
+
"rollup": "^4.60.3",
|
|
93
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
92
94
|
"tsup": "^8.0.1",
|
|
93
95
|
"typescript": "^6.0.2"
|
|
94
96
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface SemiontFaviconProps {
|
|
2
|
-
size?: number;
|
|
3
|
-
className?: string;
|
|
4
|
-
variant?: 'gradient' | 'solid' | 'outline';
|
|
5
|
-
background?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function SemiontFavicon({ size, className, variant, background }: SemiontFaviconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=SemiontFavicon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SemiontFavicon.d.ts","sourceRoot":"","sources":["../../../src/assets/favicons/SemiontFavicon.tsx"],"names":[],"mappings":"AAAA,UAAU,mBAAmB;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAS,EACT,SAAc,EACd,OAAoB,EACpB,UAAiB,EAClB,EAAE,mBAAmB,2CAkDrB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const faviconPaths: {
|
|
2
|
-
readonly ico: "/favicons/favicon.ico";
|
|
3
|
-
readonly svg: "/favicons/favicon.svg";
|
|
4
|
-
readonly appleTouchIcon: "/favicons/apple-touch-icon.png";
|
|
5
|
-
readonly favicon32: "/favicons/favicon-32x32.png";
|
|
6
|
-
readonly favicon16: "/favicons/favicon-16x16.png";
|
|
7
|
-
readonly androidChrome192: "/favicons/android-chrome-192x192.png";
|
|
8
|
-
readonly androidChrome512: "/favicons/android-chrome-512x512.png";
|
|
9
|
-
readonly manifest: "/favicons/site.webmanifest";
|
|
10
|
-
};
|
|
11
|
-
export { SemiontFavicon } from './SemiontFavicon';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/favicons/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAGX,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { components } from '@semiont/core';
|
|
2
|
-
type Motivation = components['schemas']['Motivation'];
|
|
3
|
-
type JobProgress = components['schemas']['JobProgress'];
|
|
4
|
-
interface AnnotateReferencesProgressWidgetProps {
|
|
5
|
-
progress: JobProgress | null;
|
|
6
|
-
annotationType?: Motivation | 'reference';
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Widget for displaying reference annotation progress with cancel functionality
|
|
10
|
-
*
|
|
11
|
-
* @emits job:cancel-requested - User requested to cancel annotation job. Payload: { jobType: string }
|
|
12
|
-
*/
|
|
13
|
-
export declare function AnnotateReferencesProgressWidget({ progress, annotationType }: AnnotateReferencesProgressWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=AnnotateReferencesProgressWidget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateReferencesProgressWidget.d.ts","sourceRoot":"","sources":["../../src/components/AnnotateReferencesProgressWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAExD,UAAU,qCAAqC;IAC7C,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,EAAE,QAAQ,EAAE,cAA4B,EAAE,EAAE,qCAAqC,kDAqFjI"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CSS-Agnostic Button Component
|
|
3
|
-
*
|
|
4
|
-
* This button uses data attributes instead of hardcoded Tailwind classes,
|
|
5
|
-
* allowing users to style it with any CSS solution.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
|
-
/**
|
|
10
|
-
* Ref forwarded to the underlying button element
|
|
11
|
-
*/
|
|
12
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
13
|
-
/**
|
|
14
|
-
* The visual variant of the button
|
|
15
|
-
*/
|
|
16
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'warning' | 'ghost';
|
|
17
|
-
/**
|
|
18
|
-
* The size of the button
|
|
19
|
-
*/
|
|
20
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
21
|
-
/**
|
|
22
|
-
* Whether the button should take full width of its container
|
|
23
|
-
*/
|
|
24
|
-
fullWidth?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Whether the button is in a loading state
|
|
27
|
-
*/
|
|
28
|
-
loading?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Icon to display before the button text
|
|
31
|
-
*/
|
|
32
|
-
leftIcon?: React.ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Icon to display after the button text
|
|
35
|
-
*/
|
|
36
|
-
rightIcon?: React.ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the button should only show an icon (no text padding)
|
|
39
|
-
*/
|
|
40
|
-
iconOnly?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Whether to show the button in an active/pressed state
|
|
43
|
-
*/
|
|
44
|
-
active?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare function Button({ variant, size, fullWidth, loading, leftIcon, rightIcon, iconOnly, active, className, disabled, children, type, ref, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
-
/**
|
|
48
|
-
* Button Group Component
|
|
49
|
-
*
|
|
50
|
-
* Groups multiple buttons together
|
|
51
|
-
*/
|
|
52
|
-
export interface ButtonGroupProps {
|
|
53
|
-
children: React.ReactNode;
|
|
54
|
-
/**
|
|
55
|
-
* How to arrange the buttons
|
|
56
|
-
*/
|
|
57
|
-
orientation?: 'horizontal' | 'vertical';
|
|
58
|
-
/**
|
|
59
|
-
* Whether buttons should be connected (no gap between them)
|
|
60
|
-
*/
|
|
61
|
-
attached?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Size of the gap between buttons (when not attached)
|
|
64
|
-
*/
|
|
65
|
-
spacing?: 'xs' | 'sm' | 'md' | 'lg';
|
|
66
|
-
className?: string;
|
|
67
|
-
}
|
|
68
|
-
export declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
69
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAChF;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IAEhF;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAW,EACX,SAAiB,EACjB,OAAe,EACf,QAAQ,EACR,SAAS,EACT,QAAgB,EAChB,MAAc,EACd,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,IAAe,EACf,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,2CA4Eb;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkBlD,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type SemiontSession } from '@semiont/sdk';
|
|
2
|
-
import type { TextSegment } from '../lib/codemirror-logic';
|
|
3
|
-
export type { TextSegment } from '../lib/codemirror-logic';
|
|
4
|
-
interface Props {
|
|
5
|
-
content: string;
|
|
6
|
-
segments?: TextSegment[];
|
|
7
|
-
onTextSelect?: (exact: string, position: {
|
|
8
|
-
start: number;
|
|
9
|
-
end: number;
|
|
10
|
-
}) => void;
|
|
11
|
-
onChange?: (content: string) => void;
|
|
12
|
-
editable?: boolean;
|
|
13
|
-
newAnnotationIds?: Set<string>;
|
|
14
|
-
hoveredAnnotationId?: string | null;
|
|
15
|
-
scrollToAnnotationId?: string | null;
|
|
16
|
-
sourceView?: boolean;
|
|
17
|
-
showLineNumbers?: boolean;
|
|
18
|
-
enableWidgets?: boolean;
|
|
19
|
-
session?: SemiontSession | null | undefined;
|
|
20
|
-
getTargetResourceName?: (resourceId: string) => string | undefined;
|
|
21
|
-
generatingReferenceId?: string | null;
|
|
22
|
-
hoverDelayMs: number;
|
|
23
|
-
}
|
|
24
|
-
export declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, session, getTargetResourceName, generatingReferenceId, hoverDelayMs }: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=CodeMirrorRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeMirrorRenderer.d.ts","sourceRoot":"","sources":["../../src/components/CodeMirrorRenderer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAMxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAO3D,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjF,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACnE,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB;AAyHD,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAa,EACb,QAAQ,EACR,QAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,UAAkB,EAClB,eAAuB,EACvB,aAAqB,EACrB,OAAO,EACP,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACb,EAAE,KAAK,2CA8SP"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
fallback?: (error: Error, reset: () => void) => ReactNode;
|
|
5
|
-
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
6
|
-
}
|
|
7
|
-
interface State {
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
error: Error | null;
|
|
10
|
-
errorInfo: ErrorInfo | null;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Generic Error Boundary component that catches JavaScript errors
|
|
14
|
-
* in child components and displays a fallback UI.
|
|
15
|
-
*/
|
|
16
|
-
export declare class ErrorBoundary extends Component<Props, State> {
|
|
17
|
-
constructor(props: Props);
|
|
18
|
-
static getDerivedStateFromError(error: Error): State;
|
|
19
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
20
|
-
handleReset: () => void;
|
|
21
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Specialized error boundary for async components
|
|
25
|
-
*/
|
|
26
|
-
export declare function AsyncErrorBoundary({ children }: {
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=ErrorBoundary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/ErrorBoundary.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,UAAU,KAAK;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IAC1D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;CACxD;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAC5C,KAAK,EAAE,KAAK;IASxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAS3C,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAoB7D,WAAW,aAMT;IAEO,MAAM;CAahB;AAuDD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAgCvE"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Annotator } from '../lib/annotation-registry';
|
|
3
|
-
import type { Annotation } from '@semiont/core';
|
|
4
|
-
interface LiveRegionContextType {
|
|
5
|
-
announce: (message: string, priority?: 'polite' | 'assertive') => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function useLiveRegion(): LiveRegionContextType;
|
|
8
|
-
interface LiveRegionProviderProps {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function LiveRegionProvider({ children }: LiveRegionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function useSearchAnnouncements(): {
|
|
13
|
-
announceSearchResults: (count: number, query: string) => void;
|
|
14
|
-
announceSearching: () => void;
|
|
15
|
-
};
|
|
16
|
-
export declare function useDocumentAnnouncements(annotators?: Record<string, Annotator>): {
|
|
17
|
-
announceDocumentSaved: () => void;
|
|
18
|
-
announceDocumentDeleted: () => void;
|
|
19
|
-
announceAnnotationCreated: (annotation: Annotation) => void;
|
|
20
|
-
announceAnnotationDeleted: () => void;
|
|
21
|
-
announceAnnotationUpdated: (annotation: Annotation) => void;
|
|
22
|
-
announceError: (message: string) => void;
|
|
23
|
-
};
|
|
24
|
-
export declare function useResourceLoadingAnnouncements(): {
|
|
25
|
-
announceResourceLoading: (resourceName?: string) => void;
|
|
26
|
-
announceResourceLoaded: (resourceName: string) => void;
|
|
27
|
-
announceResourceLoadError: (resourceName?: string) => void;
|
|
28
|
-
announceResourceUpdating: (resourceName: string) => void;
|
|
29
|
-
};
|
|
30
|
-
export declare function useFormAnnouncements(): {
|
|
31
|
-
announceFormSubmitting: () => void;
|
|
32
|
-
announceFormSuccess: (message?: string) => void;
|
|
33
|
-
announceFormError: (message?: string) => void;
|
|
34
|
-
announceFormValidationError: (fieldCount: number) => void;
|
|
35
|
-
};
|
|
36
|
-
export declare function useLanguageChangeAnnouncements(): {
|
|
37
|
-
announceLanguageChanging: (newLanguage: string) => void;
|
|
38
|
-
announceLanguageChanged: (newLanguage: string) => void;
|
|
39
|
-
};
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=LiveRegion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiveRegion.d.ts","sourceRoot":"","sources":["../../src/components/LiveRegion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,KAAK,IAAI,CAAC;CACxE;AAID,wBAAgB,aAAa,0BAO5B;AAED,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB,2CAuCvE;AAGD,wBAAgB,sBAAsB;mCAGc,MAAM,SAAS,MAAM;;EAgBxE;AAED,wBAAgB,wBAAwB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;;;4CAWlB,UAAU;;4CAUV,UAAU;6BAMzB,MAAM;EAYnD;AAGD,wBAAgB,+BAA+B;6CAGe,MAAM;2CAOR,MAAM;+CAIF,MAAM;6CAOR,MAAM;EAUnE;AAGD,wBAAgB,oBAAoB;;oCAOiB,MAAM;kCAIR,MAAM;8CAIM,MAAM;EAapE;AAGD,wBAAgB,8BAA8B;4CAGe,MAAM;2CAIP,MAAM;EAQjE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ProtectedErrorBoundaryProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Values that, when any change, reset the boundary back to its non-error
|
|
6
|
-
* state. Apps typically pass `[location.pathname]` so navigating away from
|
|
7
|
-
* a crashed page automatically recovers.
|
|
8
|
-
*/
|
|
9
|
-
resetKeys?: unknown[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Error boundary for protected (authenticated) routes.
|
|
13
|
-
*
|
|
14
|
-
* Catches unexpected render-time crashes inside the protected tree and
|
|
15
|
-
* shows a generic "something went wrong" fallback with a refresh option.
|
|
16
|
-
*
|
|
17
|
-
* NOT auth-specific. Auth state changes (sign-in, sign-out, expiry) flow
|
|
18
|
-
* through the KnowledgeBaseSession context, not exceptions — so this
|
|
19
|
-
* boundary will never catch an "auth error" in normal operation. Its job
|
|
20
|
-
* is purely to keep a render bug from blanking the screen.
|
|
21
|
-
*
|
|
22
|
-
* The optional `resetKeys` prop lets callers wire automatic recovery on
|
|
23
|
-
* navigation (e.g. `resetKeys={[location.pathname]}`).
|
|
24
|
-
*/
|
|
25
|
-
export declare function ProtectedErrorBoundary({ children, resetKeys, }: ProtectedErrorBoundaryProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=ProtectedErrorBoundary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/ProtectedErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,2BAA2B;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;CACvB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,SAAS,GACV,EAAE,2BAA2B,2CAc7B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import './layout/ResizeHandle.css';
|
|
2
|
-
interface ResizeHandleProps {
|
|
3
|
-
/** Callback fired when resize occurs */
|
|
4
|
-
onResize: (newWidth: number) => void;
|
|
5
|
-
/** Minimum allowed width in pixels */
|
|
6
|
-
minWidth: number;
|
|
7
|
-
/** Maximum allowed width in pixels */
|
|
8
|
-
maxWidth: number;
|
|
9
|
-
/** Position of handle - left or right edge */
|
|
10
|
-
position?: 'left' | 'right';
|
|
11
|
-
/** Aria label for accessibility */
|
|
12
|
-
ariaLabel?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Draggable resize handle for panels and sidebars
|
|
16
|
-
*
|
|
17
|
-
* Features:
|
|
18
|
-
* - Mouse drag to resize
|
|
19
|
-
* - Keyboard navigation (Arrow keys: ±10px, Shift+Arrow: ±50px)
|
|
20
|
-
* - Enforces min/max constraints
|
|
21
|
-
* - Visual feedback on hover and drag
|
|
22
|
-
* - Accessible (WCAG compliant)
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <div className="panel" style={{ width: `${width}px` }}>
|
|
27
|
-
* <ResizeHandle
|
|
28
|
-
* onResize={setWidth}
|
|
29
|
-
* minWidth={256}
|
|
30
|
-
* maxWidth={800}
|
|
31
|
-
* position="left"
|
|
32
|
-
* />
|
|
33
|
-
* <div>Panel content</div>
|
|
34
|
-
* </div>
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare function ResizeHandle({ onResize, minWidth, maxWidth, position, ariaLabel }: ResizeHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export {};
|
|
39
|
-
//# sourceMappingURL=ResizeHandle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResizeHandle.d.ts","sourceRoot":"","sources":["../../src/components/ResizeHandle.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAC;AAEnC,UAAU,iBAAiB;IACzB,wCAAwC;IACxC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAiB,EACjB,SAA0B,EAC3B,EAAE,iBAAiB,2CA6GnB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ResourceTagsInlineProps {
|
|
2
|
-
resourceId: string;
|
|
3
|
-
tags: string[];
|
|
4
|
-
isEditing: boolean;
|
|
5
|
-
onUpdate: (tags: string[]) => Promise<void>;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function ResourceTagsInline({ tags }: ResourceTagsInlineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=ResourceTagsInline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceTagsInline.d.ts","sourceRoot":"","sources":["../../src/components/ResourceTagsInline.tsx"],"names":[],"mappings":"AAEA,UAAU,uBAAuB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACL,EAAE,uBAAuB,kDAqBzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionExpiryBanner.d.ts","sourceRoot":"","sources":["../../src/components/SessionExpiryBanner.tsx"],"names":[],"mappings":"AAKA,wBAAgB,mBAAmB,mDA2ClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionTimer.d.ts","sourceRoot":"","sources":["../../src/components/SessionTimer.tsx"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,mDAW3B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import './StatusDisplay.css';
|
|
2
|
-
interface StatusDisplayProps {
|
|
3
|
-
isFullyAuthenticated?: boolean;
|
|
4
|
-
isAuthenticated?: boolean;
|
|
5
|
-
hasValidBackendToken?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function StatusDisplay({ isFullyAuthenticated, isAuthenticated, hasValidBackendToken }: StatusDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=StatusDisplay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusDisplay.d.ts","sourceRoot":"","sources":["../../src/components/StatusDisplay.tsx"],"names":[],"mappings":"AAKA,OAAO,qBAAqB,CAAC;AAE7B,UAAU,kBAAkB;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAOD,wBAAgB,aAAa,CAAC,EAC5B,oBAA4B,EAC5B,eAAuB,EACvB,oBAA4B,EAC7B,EAAE,kBAAkB,2CAmGpB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Toast.css';
|
|
3
|
-
export type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
4
|
-
export interface ToastMessage {
|
|
5
|
-
id: string;
|
|
6
|
-
message: string;
|
|
7
|
-
type: ToastType;
|
|
8
|
-
duration?: number;
|
|
9
|
-
}
|
|
10
|
-
interface ToastContainerProps {
|
|
11
|
-
toasts: ToastMessage[];
|
|
12
|
-
onClose: (id: string) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function ToastContainer({ toasts, onClose }: ToastContainerProps): React.ReactPortal | null;
|
|
15
|
-
interface ToastContextType {
|
|
16
|
-
showToast: (message: string, type?: ToastType, duration?: number) => void;
|
|
17
|
-
showSuccess: (message: string, duration?: number) => void;
|
|
18
|
-
showError: (message: string, duration?: number) => void;
|
|
19
|
-
showWarning: (message: string, duration?: number) => void;
|
|
20
|
-
showInfo: (message: string, duration?: number) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare function ToastProvider({ children }: {
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export declare function useToast(): ToastContextType;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/components/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,aAAa,CAAC;AAErB,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA4DD,UAAU,mBAAmB;IAC3B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,4BAkBtE;AAGD,UAAU,gBAAgB;IACxB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD;AAID,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA+BxE;AAED,wBAAgB,QAAQ,qBAMvB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './toolbar/Toolbar.css';
|
|
2
|
-
type ToolbarContext = 'document' | 'simple';
|
|
3
|
-
interface Props<T extends string = string> {
|
|
4
|
-
context: ToolbarContext;
|
|
5
|
-
activePanel: T | null;
|
|
6
|
-
isArchived?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Toolbar component for panel navigation
|
|
10
|
-
*
|
|
11
|
-
* @emits panel:toggle - Toggle panel visibility. Payload: { panel: string }
|
|
12
|
-
*/
|
|
13
|
-
export declare function Toolbar<T extends string = string>({ context, activePanel, isArchived }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/components/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,uBAAuB,CAAC;AAE/B,KAAK,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE5C,UAAU,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACvC,OAAO,EAAE,cAAc,CAAC;IACxB,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC;IAGtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EACjD,OAAO,EACP,WAAW,EACX,UAAkB,EACnB,EAAE,KAAK,CAAC,CAAC,CAAC,2CA4HV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserMenuSkeleton.d.ts","sourceRoot":"","sources":["../../src/components/UserMenuSkeleton.tsx"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,4CAU/B"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Annotator } from '../../lib/annotation-registry';
|
|
2
|
-
import './annotations.css';
|
|
3
|
-
import './annotation-entries.css';
|
|
4
|
-
import './references.css';
|
|
5
|
-
export type SelectionMotivation = 'linking' | 'highlighting' | 'assessing' | 'commenting' | 'tagging';
|
|
6
|
-
export type ClickAction = 'detail' | 'follow' | 'jsonld' | 'deleting';
|
|
7
|
-
export type ShapeType = 'rectangle' | 'circle' | 'polygon';
|
|
8
|
-
interface AnnotateToolbarProps {
|
|
9
|
-
selectedMotivation: SelectionMotivation | null;
|
|
10
|
-
selectedClick: ClickAction;
|
|
11
|
-
showSelectionGroup?: boolean;
|
|
12
|
-
showDeleteButton?: boolean;
|
|
13
|
-
showShapeGroup?: boolean;
|
|
14
|
-
selectedShape?: ShapeType;
|
|
15
|
-
mediaType?: string | null;
|
|
16
|
-
annotateMode: boolean;
|
|
17
|
-
annotators: Record<string, Annotator>;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Toolbar for annotation controls with mode, selection, click, and shape options
|
|
21
|
-
*
|
|
22
|
-
* @emits mark:selection-changed - Selection motivation changed. Payload: { motivation: SelectionMotivation | null }
|
|
23
|
-
* @emits mark:click-changed - Click action mode changed. Payload: { action: ClickAction }
|
|
24
|
-
* @emits mark:shape-changed - Drawing shape changed. Payload: { shape: ShapeType }
|
|
25
|
-
* @emits mark:mode-toggled - View mode toggled between browse and annotate. Payload: undefined
|
|
26
|
-
*/
|
|
27
|
-
export declare function AnnotateToolbar({ selectedMotivation, selectedClick, showSelectionGroup, showDeleteButton, showShapeGroup, selectedShape, mediaType, annotateMode, annotators }: AnnotateToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=AnnotateToolbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotateToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation/AnnotateToolbar.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;AACtG,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AACtE,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D,UAAU,oBAAoB;IAC5B,kBAAkB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC/C,aAAa,EAAE,WAAW,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,YAAY,EAAE,OAAO,CAAC;IAGtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACvC;AAwED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,kBAAkB,EAClB,aAAa,EACb,kBAAyB,EACzB,gBAAuB,EACvB,cAAsB,EACtB,aAA2B,EAC3B,SAAS,EACT,YAAoB,EACpB,UAAU,EACX,EAAE,oBAAoB,2CAqTtB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Annotation } from '@semiont/core';
|
|
2
|
-
interface JsonLdViewProps {
|
|
3
|
-
annotation: Annotation;
|
|
4
|
-
onBack: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function JsonLdView({ annotation, onBack }: JsonLdViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=JsonLdView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JsonLdView.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-popups/JsonLdView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,UAAU,eAAe;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,eAAe,2CA2GjE"}
|