@semiont/react-ui 0.5.4 → 0.5.6
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/README.md +59 -55
- package/dist/{PdfAnnotationCanvas.client-CN3C3S55.js → PdfAnnotationCanvas.client-NIMALXNZ.js} +7 -27
- package/dist/PdfAnnotationCanvas.client-NIMALXNZ.js.map +1 -0
- package/dist/index.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3704 -149
- package/dist/index.js +539 -405
- package/dist/index.js.map +1 -1
- package/dist/test-utils.d.ts +34 -16
- package/package.json +19 -13
- package/src/components/Button/__tests__/Button.test.tsx +0 -2
- package/src/components/CodeMirrorRenderer.tsx +2 -0
- package/src/components/ErrorBoundary.tsx +0 -9
- package/src/components/ProtectedErrorBoundary.tsx +6 -2
- package/src/components/__tests__/AnnotateReferencesProgressWidget.test.tsx +0 -1
- package/src/components/__tests__/ErrorBoundary.test.tsx +20 -13
- package/src/components/__tests__/LiveRegion.hooks.test.tsx +1 -1
- package/src/components/__tests__/ProtectedErrorBoundary.test.tsx +2 -1
- package/src/components/__tests__/ResizeHandle.test.tsx +0 -1
- package/src/components/__tests__/SessionExpiryBanner.test.tsx +0 -1
- package/src/components/__tests__/StatusDisplay.test.tsx +0 -1
- package/src/components/__tests__/Toast.test.tsx +2 -3
- package/src/components/__tests__/Toolbar.test.tsx +0 -1
- package/src/components/annotation/annotations.css +14 -0
- package/src/components/annotation-popups/__tests__/JsonLdView.test.tsx +3 -5
- package/src/components/annotation-popups/__tests__/SharedPopupElements.test.tsx +0 -1
- package/src/components/branding/__tests__/SemiontBranding.test.tsx +1 -2
- package/src/components/layout/__tests__/LeftSidebar.test.tsx +5 -6
- package/src/components/layout/__tests__/PageLayout.test.tsx +1 -3
- package/src/components/layout/__tests__/SkipLinks.a11y.test.tsx +8 -8
- package/src/components/layout/__tests__/UnifiedHeader.test.tsx +12 -1
- package/src/components/modals/__tests__/KeyboardShortcutsHelpModal.test.tsx +0 -1
- package/src/components/modals/__tests__/PermissionDeniedModal.test.tsx +3 -4
- package/src/components/modals/__tests__/ResourceSearchModal.test.tsx +0 -1
- package/src/components/modals/__tests__/SearchModal.basic.test.tsx +1 -1
- package/src/components/modals/__tests__/SearchModal.keyboard.test.tsx +0 -5
- package/src/components/modals/__tests__/SearchModal.search-wiring.test.tsx +0 -1
- package/src/components/modals/__tests__/SearchModal.visual.test.tsx +2 -2
- package/src/components/modals/__tests__/SessionExpiredModal.test.tsx +0 -1
- package/src/components/navigation/NavigationMenu.tsx +1 -1
- package/src/components/navigation/__tests__/Footer.a11y.test.tsx +4 -0
- package/src/components/navigation/__tests__/Footer.test.tsx +3 -6
- package/src/components/navigation/__tests__/NavigationMenu.a11y.test.tsx +1 -1
- package/src/components/navigation/__tests__/NavigationMenu.test.tsx +7 -9
- package/src/components/navigation/__tests__/ObservableLink.test.tsx +0 -1
- package/src/components/navigation/__tests__/SimpleNavigation.test.tsx +1 -2
- package/src/components/navigation/__tests__/SortableResourceTab.test.tsx +0 -1
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +6 -4
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +10 -19
- package/src/components/resource/__tests__/BrowseView.test.tsx +8 -6
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +0 -4
- package/src/components/resource/__tests__/ResourceViewer.mode-switch.test.tsx +4 -6
- package/src/components/resource/panels/ReferencesPanel.tsx +1 -1
- package/src/components/resource/panels/__tests__/AssessmentEntry.test.tsx +3 -4
- package/src/components/resource/panels/__tests__/AssessmentPanel.test.tsx +7 -6
- package/src/components/resource/panels/__tests__/AssistSection.test.tsx +14 -10
- package/src/components/resource/panels/__tests__/CollaborationPanel.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +30 -17
- package/src/components/resource/panels/__tests__/CommentsPanel.test.tsx +6 -5
- package/src/components/resource/panels/__tests__/HighlightEntry.test.tsx +4 -5
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +19 -13
- package/src/components/resource/panels/__tests__/JsonLdPanel.test.tsx +1 -3
- package/src/components/resource/panels/__tests__/PanelHeader.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/ReferenceEntry.test.tsx +5 -5
- package/src/components/resource/panels/__tests__/ReferencesPanel.test.tsx +40 -7
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +3 -3
- package/src/components/resource/panels/__tests__/StatisticsPanel.test.tsx +30 -32
- package/src/components/resource/panels/__tests__/TagEntry.test.tsx +5 -5
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +6 -5
- package/src/components/settings/__tests__/SettingsPanel.test.tsx +0 -1
- package/src/components/viewers/__tests__/ImageViewer.test.tsx +0 -1
- package/src/features/auth/__tests__/SignInForm.a11y.test.tsx +2 -0
- package/src/features/auth/__tests__/SignUpForm.a11y.test.tsx +11 -12
- package/src/features/auth/__tests__/SignUpForm.test.tsx +3 -3
- package/src/features/moderate-tag-schemas/components/TagSchemasPage.tsx +1 -0
- package/src/features/resource-compose/__tests__/ResourceComposePage.test.tsx +2 -1
- package/src/features/resource-discovery/__tests__/ResourceCard.test.tsx +0 -1
- package/src/features/resource-discovery/__tests__/ResourceDiscoveryPage.test.tsx +33 -35
- package/src/features/resource-discovery/components/ResourceDiscoveryPage.tsx +12 -11
- package/src/features/resource-discovery/state/__tests__/discover-state-unit.test.ts +204 -11
- package/src/features/resource-discovery/state/discover-state-unit.ts +70 -11
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.test.tsx +2 -2
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +3 -2
- package/src/features/resource-viewer/state/__tests__/resource-viewer-page-state-unit.test.ts +0 -1
- package/src/features/resource-viewer/state/resource-viewer-page-state-unit.ts +5 -2
- package/src/integrations/__tests__/css-modules-helper.test.tsx +2 -3
- package/src/integrations/__tests__/styled-components-theme.test.ts +1 -3
- package/dist/PdfAnnotationCanvas.client-CN3C3S55.js.map +0 -1
- 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,8 +0,0 @@
|
|
|
1
|
-
import type { AnnotationId } from '@semiont/core';
|
|
2
|
-
export { HOVER_DELAY_MS } from '@semiont/sdk';
|
|
3
|
-
export interface HoverEmitterProps {
|
|
4
|
-
onMouseEnter: () => void;
|
|
5
|
-
onMouseLeave: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function useHoverEmitter(annotationId: AnnotationId, hoverDelayMs?: number): HoverEmitterProps;
|
|
8
|
-
//# sourceMappingURL=useHoverEmitter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHoverEmitter.d.ts","sourceRoot":"","sources":["../../src/hooks/useHoverEmitter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,GAAE,MAAuB,GAAG,iBAAiB,CAsCpH"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface KeyboardShortcut {
|
|
2
|
-
key: string;
|
|
3
|
-
ctrlOrCmd?: boolean;
|
|
4
|
-
shift?: boolean;
|
|
5
|
-
alt?: boolean;
|
|
6
|
-
handler: (event: KeyboardEvent) => void;
|
|
7
|
-
description?: string;
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Hook for managing keyboard shortcuts
|
|
12
|
-
* Handles platform differences (Cmd on Mac, Ctrl on Windows/Linux)
|
|
13
|
-
* Prevents conflicts with browser shortcuts
|
|
14
|
-
*/
|
|
15
|
-
export declare function useKeyboardShortcuts(shortcuts: KeyboardShortcut[]): void;
|
|
16
|
-
/**
|
|
17
|
-
* Hook for double key press detection (e.g., double Escape)
|
|
18
|
-
*/
|
|
19
|
-
export declare function useDoubleKeyPress(key: string, handler: () => void, timeout?: number): void;
|
|
20
|
-
/**
|
|
21
|
-
* Get keyboard shortcut display text based on platform
|
|
22
|
-
*/
|
|
23
|
-
export declare function getShortcutDisplay(shortcut: KeyboardShortcut): string;
|
|
24
|
-
/**
|
|
25
|
-
* Hook to check if user is currently typing in an input field
|
|
26
|
-
* Keyboard shortcuts should generally be disabled when typing
|
|
27
|
-
*/
|
|
28
|
-
export declare function useIsTyping(): boolean;
|
|
29
|
-
//# sourceMappingURL=useKeyboardShortcuts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAKD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,EAAE,QAoDjE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,IAAI,EACnB,OAAO,GAAE,MAAY,QA2BtB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAoBrE;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,OAAO,CA6BrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLineNumbers.d.ts","sourceRoot":"","sources":["../../src/hooks/useLineNumbers.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc;;;EAiB7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaToken.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,UAAU,GAAG,mBAAmB,CAiCjE"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Observable } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* Subscribe to an RxJS Observable and return its current value as React state.
|
|
4
|
-
*
|
|
5
|
-
* - For a `BehaviorSubject` (or anything with a `getValue()` method), returns
|
|
6
|
-
* its current value synchronously at the first render. This matters for
|
|
7
|
-
* callers that build derived objects in a `useState(factory)` initializer
|
|
8
|
-
* at first render — they need the subject's value present immediately, not
|
|
9
|
-
* after a second render triggered by the useEffect subscribe.
|
|
10
|
-
*
|
|
11
|
-
* We duck-type on `.getValue` rather than using `instanceof BehaviorSubject`
|
|
12
|
-
* because rxjs can be loaded through multiple module realms in tests (e.g.
|
|
13
|
-
* a bundled CJS copy inside `@semiont/react-ui/dist` vs a fresh ESM import
|
|
14
|
-
* in the test file), which makes `instanceof` unreliable.
|
|
15
|
-
* - For non-BehaviorSubject Observables, starts at `undefined` and emits
|
|
16
|
-
* asynchronously after the subscribe.
|
|
17
|
-
* - Accepts `undefined`/`null` for cases where the observable's source isn't
|
|
18
|
-
* ready yet (e.g. `semiont?.browse.events(rUri)` when the active session is
|
|
19
|
-
* still loading). In that case the hook is a no-op and returns undefined.
|
|
20
|
-
* - Unsubscribes automatically on unmount or when `obs$` changes.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useObservable<T>(obs$: Observable<T> | null | undefined): T | undefined;
|
|
23
|
-
//# sourceMappingURL=useObservable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useObservable.d.ts","sourceRoot":"","sources":["../../src/hooks/useObservable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAYtF"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic router interface - works with any router that has push/replace methods
|
|
3
|
-
* (Next.js App Router, Next.js Pages Router, React Router, etc.)
|
|
4
|
-
*/
|
|
5
|
-
interface Router {
|
|
6
|
-
push: (path: string) => void;
|
|
7
|
-
replace?: (path: string) => void;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Hook that wraps any router with event emission for observability
|
|
12
|
-
*
|
|
13
|
-
* Use this to wrap your router (Next.js, React Router, etc.) when you want
|
|
14
|
-
* navigation actions to be observable through the NavigationEventBus.
|
|
15
|
-
*
|
|
16
|
-
* @emits nav:push - Router navigation requested. Payload: { path: string, reason?: string }
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // Next.js App Router
|
|
21
|
-
* import { useRouter } from 'next/navigation';
|
|
22
|
-
* const nextRouter = useRouter();
|
|
23
|
-
* const router = useObservableRouter(nextRouter);
|
|
24
|
-
* router.push('/know/discover', { reason: 'resource-closed' });
|
|
25
|
-
*
|
|
26
|
-
* // React Router
|
|
27
|
-
* import { useNavigate } from 'react-router-dom';
|
|
28
|
-
* const navigate = useNavigate();
|
|
29
|
-
* const router = useObservableRouter({ push: navigate });
|
|
30
|
-
* router.push('/know/discover', { reason: 'resource-closed' });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function useObservableRouter<T extends Router>(baseRouter: T): T;
|
|
34
|
-
/**
|
|
35
|
-
* Request navigation with event emission
|
|
36
|
-
*
|
|
37
|
-
* This hook emits a navigation request event. The app must subscribe to
|
|
38
|
-
* 'nav:external' and perform the actual navigation using
|
|
39
|
-
* its router (Next.js, React Router, etc.) to enable client-side routing.
|
|
40
|
-
*
|
|
41
|
-
* If no subscriber handles the event, falls back to window.location.href
|
|
42
|
-
* after a brief delay to allow for event handling.
|
|
43
|
-
*
|
|
44
|
-
* @emits nav:external - External navigation requested. Payload: { url: string, resourceId?: string, cancelFallback: () => void }
|
|
45
|
-
*
|
|
46
|
-
* The payload includes a `cancelFallback` function that subscribers must call to
|
|
47
|
-
* prevent the window.location fallback from firing. Subscribers that handle the
|
|
48
|
-
* navigation (e.g. via client-side routing) should always call cancelFallback().
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* // In component (react-ui package)
|
|
53
|
-
* const navigate = useObservableExternalNavigation();
|
|
54
|
-
* navigate('/know/resource/123', { resourceId: '123' });
|
|
55
|
-
*
|
|
56
|
-
* // In app (frontend package) - subscribe, cancel fallback, and handle with Next.js router
|
|
57
|
-
* const router = useRouter();
|
|
58
|
-
* useEventSubscriptions({
|
|
59
|
-
* 'nav:external': ({ url, cancelFallback }) => {
|
|
60
|
-
* cancelFallback(); // Prevent window.location fallback
|
|
61
|
-
* router.push(url); // Client-side navigation
|
|
62
|
-
* },
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export declare function useObservableExternalNavigation(): (url: string, metadata?: {
|
|
67
|
-
resourceId?: string;
|
|
68
|
-
}) => void;
|
|
69
|
-
export {};
|
|
70
|
-
//# sourceMappingURL=useObservableBrowse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useObservableBrowse.d.ts","sourceRoot":"","sources":["../../src/hooks/useObservableBrowse.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,UAAU,MAAM;IACd,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CAiCtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,+BAA+B,UAGpB,MAAM,aAAa;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,UAkBpE"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
interface UsePanelWidthOptions {
|
|
2
|
-
defaultWidth?: number;
|
|
3
|
-
minWidth?: number;
|
|
4
|
-
maxWidth?: number;
|
|
5
|
-
storageKey?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Custom hook for managing resizable panel width with localStorage persistence
|
|
9
|
-
*
|
|
10
|
-
* @param options Configuration options for panel width behavior
|
|
11
|
-
* @param options.defaultWidth Default width in pixels (default: 384px / 24rem)
|
|
12
|
-
* @param options.minWidth Minimum allowed width in pixels (default: 256px / 16rem)
|
|
13
|
-
* @param options.maxWidth Maximum allowed width in pixels (default: 800px / 50rem)
|
|
14
|
-
* @param options.storageKey localStorage key for persistence (default: 'semiont-panel-width')
|
|
15
|
-
*
|
|
16
|
-
* @returns Object containing current width, setter function, and constraints
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* const { width, setWidth, minWidth, maxWidth } = usePanelWidth();
|
|
21
|
-
*
|
|
22
|
-
* <div style={{ width: `${width}px` }}>
|
|
23
|
-
* <ResizeHandle onResize={setWidth} minWidth={minWidth} maxWidth={maxWidth} />
|
|
24
|
-
* </div>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function usePanelWidth({ defaultWidth, // 24rem
|
|
28
|
-
minWidth, // 16rem
|
|
29
|
-
maxWidth, // 50rem
|
|
30
|
-
storageKey }?: UsePanelWidthOptions): {
|
|
31
|
-
width: number;
|
|
32
|
-
setWidth: (newWidth: number) => void;
|
|
33
|
-
minWidth: number;
|
|
34
|
-
maxWidth: number;
|
|
35
|
-
};
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=usePanelWidth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePanelWidth.d.ts","sourceRoot":"","sources":["../../src/hooks/usePanelWidth.ts"],"names":[],"mappings":"AAEA,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,YAAkB,EAAE,QAAQ;AAC5B,QAAc,EAAM,QAAQ;AAC5B,QAAc,EAAM,QAAQ;AAC5B,UAAkC,EACnC,GAAE,oBAAyB;;yBAqBE,MAAM;;;EAanC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ResourceDescriptor, ResourceId } from '@semiont/core';
|
|
2
|
-
export interface UseResourceContentResult {
|
|
3
|
-
content: string;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function useResourceContent(rUri: ResourceId, resource: ResourceDescriptor, enabled?: boolean): UseResourceContentResult;
|
|
7
|
-
//# sourceMappingURL=useResourceContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResourceContent.d.ts","sourceRoot":"","sources":["../../src/hooks/useResourceContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AAOhF,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,UAAO,GACb,wBAAwB,CA6B1B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { KeyboardEvent } from 'react';
|
|
2
|
-
interface UseRovingTabIndexOptions {
|
|
3
|
-
orientation?: 'horizontal' | 'vertical' | 'grid';
|
|
4
|
-
loop?: boolean;
|
|
5
|
-
cols?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function useRovingTabIndex<T extends HTMLElement>(itemCount: number, options?: UseRovingTabIndexOptions): {
|
|
8
|
-
containerRef: import("react").RefObject<T | null>;
|
|
9
|
-
handleKeyDown: (event: KeyboardEvent) => void;
|
|
10
|
-
focusItem: (index: number) => void;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=useRovingTabIndex.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRovingTabIndex.d.ts","sourceRoot":"","sources":["../../src/hooks/useRovingTabIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtE,UAAU,wBAAwB;IAChC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EACrD,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,wBAA6B;;2BAyC5B,aAAa;uBAxBe,MAAM;EA8H7C"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for announcing search-related events to screen readers
|
|
3
|
-
*/
|
|
4
|
-
export declare function useSearchAnnouncements(): {
|
|
5
|
-
announceSearching: () => void;
|
|
6
|
-
announceSearchResults: (count: number, query: string) => void;
|
|
7
|
-
announceSelection: (name: string, type: string) => void;
|
|
8
|
-
announceNavigation: (name: string, type: string) => void;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useSearchAnnouncements.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchAnnouncements.d.ts","sourceRoot":"","sources":["../../src/hooks/useSearchAnnouncements.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,sBAAsB;;mCAOc,MAAM,SAAS,MAAM;8BAU1B,MAAM,QAAQ,MAAM;+BAInB,MAAM,QAAQ,MAAM;EAUnE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tracks the time remaining on the active KB session's JWT and whether it's
|
|
3
|
-
* expiring soon (< 5 minutes). Reads the session's `expiresAt` getter (which
|
|
4
|
-
* derives from the current `token$` value) and re-derives once per second.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useSessionExpiry(): {
|
|
7
|
-
timeRemaining: number | null;
|
|
8
|
-
isExpiringSoon: boolean;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useSessionExpiry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSessionExpiry.d.ts","sourceRoot":"","sources":["../../src/hooks/useSessionExpiry.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,gBAAgB;;;EA4B/B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ShellStateUnit } from '../state/shell-state-unit';
|
|
2
|
-
/**
|
|
3
|
-
* `ShellStateUnit` is app-scoped — it owns toolbar panel state and lives on
|
|
4
|
-
* the `SemiontBrowser`'s own bus. Unlike session-scoped VMs, this hook
|
|
5
|
-
* does not need to wait for an active KB session; `useSemiont()`
|
|
6
|
-
* always returns the module-scoped `SemiontBrowser` singleton.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useShellStateUnit(): ShellStateUnit;
|
|
9
|
-
//# sourceMappingURL=useShellStateUnit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useShellStateUnit.d.ts","sourceRoot":"","sources":["../../src/hooks/useShellStateUnit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,cAAc,EAAyB,MAAM,2BAA2B,CAAC;AAgB7G;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAMlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStateUnit.d.ts","sourceRoot":"","sources":["../../src/hooks/useStateUnit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAIrE"}
|
package/dist/hooks/useUI.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for managing dropdown/menu visibility with click outside handling
|
|
3
|
-
*/
|
|
4
|
-
export declare function useDropdown(): {
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
toggle: () => void;
|
|
7
|
-
open: () => void;
|
|
8
|
-
close: () => void;
|
|
9
|
-
dropdownRef: import("react").RefObject<HTMLDivElement | null>;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Hook for managing loading states with minimum display time
|
|
13
|
-
*/
|
|
14
|
-
export declare function useLoadingState(minLoadingTime?: number): {
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
showLoading: boolean;
|
|
17
|
-
startLoading: () => void;
|
|
18
|
-
stopLoading: () => void;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Hook for local storage with SSR safety
|
|
22
|
-
*/
|
|
23
|
-
export declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T | ((val: T) => T)) => void];
|
|
24
|
-
//# sourceMappingURL=useUI.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUI.d.ts","sourceRoot":"","sources":["../../src/hooks/useUI.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,WAAW;;;;;;EAqD1B;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,cAAc,SAAM;;;;;EAiCnD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,GACd,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CA6B3C"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACvH,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1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Semiont components
|
|
5
|
-
* with CSS Modules while preserving the data-attribute architecture.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
/**
|
|
9
|
-
* Creates a className builder for Semiont components with CSS Modules
|
|
10
|
-
*
|
|
11
|
-
* @param styles - The CSS Modules styles object
|
|
12
|
-
* @param baseClass - The base Semiont class name (e.g., 'semiont-button')
|
|
13
|
-
* @returns A function that builds the className string
|
|
14
|
-
*/
|
|
15
|
-
export declare function createSemiontClassName(styles: Record<string, string>, baseClass: string): (_dataAttributes: Record<string, string | boolean | undefined>, additionalClasses?: string) => string;
|
|
16
|
-
/**
|
|
17
|
-
* Helper to generate data attributes object from component props
|
|
18
|
-
*
|
|
19
|
-
* @param props - Component props
|
|
20
|
-
* @returns Data attributes object
|
|
21
|
-
*/
|
|
22
|
-
export declare function generateDataAttributes(props: {
|
|
23
|
-
variant?: string;
|
|
24
|
-
size?: string;
|
|
25
|
-
loading?: boolean;
|
|
26
|
-
fullWidth?: boolean;
|
|
27
|
-
iconOnly?: boolean;
|
|
28
|
-
active?: boolean;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
orientation?: string;
|
|
31
|
-
attached?: boolean;
|
|
32
|
-
spacing?: string;
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}): Record<string, string | undefined>;
|
|
35
|
-
/**
|
|
36
|
-
* Merges data attributes into props object
|
|
37
|
-
*
|
|
38
|
-
* @param props - Original props
|
|
39
|
-
* @param dataAttributes - Data attributes to merge
|
|
40
|
-
* @returns Merged props object
|
|
41
|
-
*/
|
|
42
|
-
export declare function mergeDataAttributes<T extends Record<string, any>>(props: T, dataAttributes: Record<string, string | undefined>): T;
|
|
43
|
-
/**
|
|
44
|
-
* Example wrapper component for CSS Modules integration
|
|
45
|
-
*
|
|
46
|
-
* Usage:
|
|
47
|
-
* ```tsx
|
|
48
|
-
* import styles from './CustomButton.module.css';
|
|
49
|
-
* import { Button } from '@semiont/react-ui';
|
|
50
|
-
* import { withCSSModules } from '@semiont/react-ui/integrations';
|
|
51
|
-
*
|
|
52
|
-
* const CustomButton = withCSSModules(Button, styles, 'button');
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function withCSSModules<P extends {
|
|
56
|
-
className?: string;
|
|
57
|
-
}>(Component: React.ComponentType<P>, styles: Record<string, string>, baseClassName: string): (props: P) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
/**
|
|
59
|
-
* CSS Modules configuration helper for build tools
|
|
60
|
-
*
|
|
61
|
-
* This provides the necessary configuration for CSS Modules
|
|
62
|
-
* to work with Semiont's data-attribute selectors
|
|
63
|
-
*/
|
|
64
|
-
export declare const cssModulesConfig: {
|
|
65
|
-
postcss: {
|
|
66
|
-
plugins: {
|
|
67
|
-
postcssPlugin: string;
|
|
68
|
-
Once(root: any): void;
|
|
69
|
-
}[];
|
|
70
|
-
};
|
|
71
|
-
webpack: {
|
|
72
|
-
cssLoader: {
|
|
73
|
-
modules: {
|
|
74
|
-
localIdentName: string;
|
|
75
|
-
getLocalIdent: (_context: any, _localIdentName: string, localName: string) => string | null;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
vite: {
|
|
80
|
-
css: {
|
|
81
|
-
modules: {
|
|
82
|
-
generateScopedName: string;
|
|
83
|
-
scopeBehaviour: "local";
|
|
84
|
-
globalModulePaths: RegExp[];
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Type definitions for CSS Modules with Semiont components
|
|
91
|
-
*/
|
|
92
|
-
export interface SemiontCSSModules {
|
|
93
|
-
button?: string;
|
|
94
|
-
'button-content'?: string;
|
|
95
|
-
'button-icon'?: string;
|
|
96
|
-
'button-icon-left'?: string;
|
|
97
|
-
'button-icon-right'?: string;
|
|
98
|
-
'button-spinner'?: string;
|
|
99
|
-
'button-group'?: string;
|
|
100
|
-
[key: string]: string | undefined;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Helper to type CSS Modules imports
|
|
104
|
-
*
|
|
105
|
-
* Usage:
|
|
106
|
-
* ```tsx
|
|
107
|
-
* import { defineCSSModules } from '@semiont/react-ui/integrations';
|
|
108
|
-
* import rawStyles from './Button.module.css';
|
|
109
|
-
*
|
|
110
|
-
* const styles = defineCSSModules<SemiontCSSModules>(rawStyles);
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
export declare function defineCSSModules<T extends SemiontCSSModules>(styles: Record<string, string>): T;
|
|
114
|
-
//# sourceMappingURL=css-modules-helper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css-modules-helper.d.ts","sourceRoot":"","sources":["../../src/integrations/css-modules-helper.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,SAAS,EAAE,MAAM,IAGf,iBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,EAC7D,oBAAoB,MAAM,KACzB,MAAM,CAeV;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,G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|
-
/**
|
|
2
|
-
* Styled Components Theme for Semiont Components
|
|
3
|
-
*
|
|
4
|
-
* This provides a complete theme object and utilities for using
|
|
5
|
-
* Semiont components with styled-components or emotion.
|
|
6
|
-
*/
|
|
7
|
-
import { tokens } from '../design-tokens';
|
|
8
|
-
import { DefaultTheme } from 'styled-components';
|
|
9
|
-
/**
|
|
10
|
-
* Semiont theme object for styled-components
|
|
11
|
-
*/
|
|
12
|
-
export declare const semiontTheme: DefaultTheme;
|
|
13
|
-
/**
|
|
14
|
-
* Type augmentation for styled-components DefaultTheme
|
|
15
|
-
*/
|
|
16
|
-
declare module 'styled-components' {
|
|
17
|
-
interface DefaultTheme {
|
|
18
|
-
colors: typeof tokens.colors & {
|
|
19
|
-
error: string;
|
|
20
|
-
errorLight: string;
|
|
21
|
-
errorDark: string;
|
|
22
|
-
warning: string;
|
|
23
|
-
warningLight: string;
|
|
24
|
-
warningDark: string;
|
|
25
|
-
success: string;
|
|
26
|
-
successLight: string;
|
|
27
|
-
successDark: string;
|
|
28
|
-
info: string;
|
|
29
|
-
infoLight: string;
|
|
30
|
-
infoDark: string;
|
|
31
|
-
};
|
|
32
|
-
spacing: typeof tokens.spacing;
|
|
33
|
-
typography: typeof tokens.typography;
|
|
34
|
-
borderRadius: typeof tokens.borderRadius;
|
|
35
|
-
shadows: typeof tokens.shadows;
|
|
36
|
-
transitions: typeof tokens.transitions;
|
|
37
|
-
breakpoints: typeof tokens.breakpoints;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* CSS mixins for common component patterns
|
|
42
|
-
*/
|
|
43
|
-
export declare const semiontMixins: {
|
|
44
|
-
/**
|
|
45
|
-
* Button base styles
|
|
46
|
-
*/
|
|
47
|
-
buttonBase: import("styled-components").RuleSet<object>;
|
|
48
|
-
/**
|
|
49
|
-
* Button variant styles
|
|
50
|
-
*/
|
|
51
|
-
buttonVariant: (variant: string) => import("styled-components").RuleSet<object>;
|
|
52
|
-
/**
|
|
53
|
-
* Button size styles
|
|
54
|
-
*/
|
|
55
|
-
buttonSize: (size: string) => import("styled-components").RuleSet<object>;
|
|
56
|
-
/**
|
|
57
|
-
* Focus ring styles
|
|
58
|
-
*/
|
|
59
|
-
focusRing: (color?: string) => import("styled-components").RuleSet<object>;
|
|
60
|
-
/**
|
|
61
|
-
* Truncate text with ellipsis
|
|
62
|
-
*/
|
|
63
|
-
truncate: import("styled-components").RuleSet<object>;
|
|
64
|
-
/**
|
|
65
|
-
* Screen reader only
|
|
66
|
-
*/
|
|
67
|
-
srOnly: import("styled-components").RuleSet<object>;
|
|
68
|
-
/**
|
|
69
|
-
* Responsive media query helpers
|
|
70
|
-
*/
|
|
71
|
-
media: {
|
|
72
|
-
sm: (styles: any) => import("styled-components").RuleSet<object>;
|
|
73
|
-
md: (styles: any) => import("styled-components").RuleSet<object>;
|
|
74
|
-
lg: (styles: any) => import("styled-components").RuleSet<object>;
|
|
75
|
-
xl: (styles: any) => import("styled-components").RuleSet<object>;
|
|
76
|
-
'2xl': (styles: any) => import("styled-components").RuleSet<object>;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Global styles for Semiont components
|
|
81
|
-
*/
|
|
82
|
-
export declare const SemiontGlobalStyles: import("styled-components").RuleSet<object>;
|
|
83
|
-
/**
|
|
84
|
-
* Helper function to create styled Semiont components
|
|
85
|
-
*
|
|
86
|
-
* Usage:
|
|
87
|
-
* ```tsx
|
|
88
|
-
* import styled from 'styled-components';
|
|
89
|
-
* import { createStyledSemiontButton } from '@semiont/react-ui/integrations';
|
|
90
|
-
*
|
|
91
|
-
* const StyledButton = createStyledSemiontButton(styled);
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
export declare function createStyledSemiontButton(styled: any): any;
|
|
95
|
-
//# sourceMappingURL=styled-components-theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled-components-theme.d.ts","sourceRoot":"","sources":["../../src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BAKA,GAAG;;CAMtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,6CA0D/B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,OA6BpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind-plugin.d.cts","sourceRoot":"","sources":["../../src/integrations/tailwind-plugin.cjs"],"names":[],"mappings":""}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Annotation overlay: decouples annotation highlighting from markdown rendering.
|
|
3
|
-
*
|
|
4
|
-
* Instead of weaving annotations into the markdown AST via remark/rehype plugins
|
|
5
|
-
* (which forces O(ASTnodes × annotations) work on every render), this module:
|
|
6
|
-
*
|
|
7
|
-
* 1. Builds a source→rendered offset map once after the markdown DOM paints
|
|
8
|
-
* 2. Resolves W3C TextPositionSelector offsets to DOM Ranges via binary search
|
|
9
|
-
* 3. Wraps matched ranges with <span> elements carrying data-annotation-* attributes
|
|
10
|
-
*
|
|
11
|
-
* Markdown renders once (cached by React.memo). Annotation changes only touch
|
|
12
|
-
* the overlay spans — no markdown re-parse, no AST walk.
|
|
13
|
-
*/
|
|
14
|
-
import type { Annotation } from '@semiont/core';
|
|
15
|
-
export interface OverlayAnnotation {
|
|
16
|
-
id: string;
|
|
17
|
-
exact: string;
|
|
18
|
-
offset: number;
|
|
19
|
-
length: number;
|
|
20
|
-
type: string;
|
|
21
|
-
source: string | null;
|
|
22
|
-
}
|
|
23
|
-
interface TextNodeEntry {
|
|
24
|
-
node: Text;
|
|
25
|
-
start: number;
|
|
26
|
-
end: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Build a map from markdown source offsets to rendered text offsets.
|
|
30
|
-
* Character-by-character alignment: walks source and rendered text in parallel,
|
|
31
|
-
* matching characters and skipping markdown syntax in the source.
|
|
32
|
-
*
|
|
33
|
-
* Complexity: O(sourceLength) — runs once per content change.
|
|
34
|
-
*/
|
|
35
|
-
export declare function buildSourceToRenderedMap(markdownSource: string, container: HTMLElement): Map<number, number>;
|
|
36
|
-
/**
|
|
37
|
-
* Build a sorted array of text nodes with cumulative rendered offsets
|
|
38
|
-
* for efficient offset→node lookups via binary search.
|
|
39
|
-
*
|
|
40
|
-
* Complexity: O(textNodes) — runs once per overlay application.
|
|
41
|
-
*/
|
|
42
|
-
export declare function buildTextNodeIndex(container: HTMLElement): TextNodeEntry[];
|
|
43
|
-
/**
|
|
44
|
-
* Resolve annotations to DOM Ranges using the cached offset map.
|
|
45
|
-
*
|
|
46
|
-
* Complexity: O(annotations × log(textNodes)).
|
|
47
|
-
*/
|
|
48
|
-
export declare function resolveAnnotationRanges(annotations: OverlayAnnotation[], offsetMap: Map<number, number>, textNodeIndex: TextNodeEntry[]): Map<string, {
|
|
49
|
-
range: Range;
|
|
50
|
-
annotation: OverlayAnnotation;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Wrap annotation Ranges with styled <span> elements.
|
|
54
|
-
* Handles cross-element ranges by splitting into per-text-node segments.
|
|
55
|
-
*/
|
|
56
|
-
export declare function applyHighlights(ranges: Map<string, {
|
|
57
|
-
range: Range;
|
|
58
|
-
annotation: OverlayAnnotation;
|
|
59
|
-
}>): void;
|
|
60
|
-
/**
|
|
61
|
-
* Remove all annotation highlight spans, restoring the original DOM.
|
|
62
|
-
* Unwraps spans and merges adjacent text nodes.
|
|
63
|
-
*/
|
|
64
|
-
export declare function clearHighlights(container: HTMLElement): void;
|
|
65
|
-
/**
|
|
66
|
-
* Convert W3C Annotations to the simplified overlay format.
|
|
67
|
-
* Extracts TextPositionSelector offsets and annotation type.
|
|
68
|
-
*/
|
|
69
|
-
export declare function toOverlayAnnotations(annotations: Annotation[]): OverlayAnnotation[];
|
|
70
|
-
export {};
|
|
71
|
-
//# sourceMappingURL=annotation-overlay.d.ts.map
|