@semiont/react-ui 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3560 -149
- package/dist/test-utils.d.ts +34 -16
- package/package.json +5 -3
- package/dist/assets/favicons/SemiontFavicon.d.ts +0 -9
- package/dist/assets/favicons/SemiontFavicon.d.ts.map +0 -1
- package/dist/assets/favicons/index.d.ts +0 -12
- package/dist/assets/favicons/index.d.ts.map +0 -1
- package/dist/components/AnnotateReferencesProgressWidget.d.ts +0 -15
- package/dist/components/AnnotateReferencesProgressWidget.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts +0 -69
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/CodeMirrorRenderer.d.ts +0 -25
- package/dist/components/CodeMirrorRenderer.d.ts.map +0 -1
- package/dist/components/ErrorBoundary.d.ts +0 -30
- package/dist/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/LiveRegion.d.ts +0 -41
- package/dist/components/LiveRegion.d.ts.map +0 -1
- package/dist/components/ProtectedErrorBoundary.d.ts +0 -27
- package/dist/components/ProtectedErrorBoundary.d.ts.map +0 -1
- package/dist/components/ResizeHandle.d.ts +0 -39
- package/dist/components/ResizeHandle.d.ts.map +0 -1
- package/dist/components/ResourceTagsInline.d.ts +0 -10
- package/dist/components/ResourceTagsInline.d.ts.map +0 -1
- package/dist/components/SessionExpiryBanner.d.ts +0 -2
- package/dist/components/SessionExpiryBanner.d.ts.map +0 -1
- package/dist/components/SessionTimer.d.ts +0 -2
- package/dist/components/SessionTimer.d.ts.map +0 -1
- package/dist/components/StatusDisplay.d.ts +0 -9
- package/dist/components/StatusDisplay.d.ts.map +0 -1
- package/dist/components/Toast.d.ts +0 -27
- package/dist/components/Toast.d.ts.map +0 -1
- package/dist/components/Toolbar.d.ts +0 -15
- package/dist/components/Toolbar.d.ts.map +0 -1
- package/dist/components/UserMenuSkeleton.d.ts +0 -2
- package/dist/components/UserMenuSkeleton.d.ts.map +0 -1
- package/dist/components/annotation/AnnotateToolbar.d.ts +0 -29
- package/dist/components/annotation/AnnotateToolbar.d.ts.map +0 -1
- package/dist/components/annotation-popups/JsonLdView.d.ts +0 -8
- package/dist/components/annotation-popups/JsonLdView.d.ts.map +0 -1
- package/dist/components/annotation-popups/SharedPopupElements.d.ts +0 -28
- package/dist/components/annotation-popups/SharedPopupElements.d.ts.map +0 -1
- package/dist/components/branding/SemiontBranding.d.ts +0 -13
- package/dist/components/branding/SemiontBranding.d.ts.map +0 -1
- package/dist/components/error-states/ResourceErrorState.d.ts +0 -11
- package/dist/components/error-states/ResourceErrorState.d.ts.map +0 -1
- package/dist/components/image-annotation/AnnotationOverlay.d.ts +0 -22
- package/dist/components/image-annotation/AnnotationOverlay.d.ts.map +0 -1
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts +0 -23
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts.map +0 -1
- package/dist/components/layout/LeftSidebar.d.ts +0 -24
- package/dist/components/layout/LeftSidebar.d.ts.map +0 -1
- package/dist/components/layout/PageLayout.d.ts +0 -21
- package/dist/components/layout/PageLayout.d.ts.map +0 -1
- package/dist/components/layout/SkipLinks.d.ts +0 -8
- package/dist/components/layout/SkipLinks.d.ts.map +0 -1
- package/dist/components/layout/UnifiedHeader.d.ts +0 -21
- package/dist/components/layout/UnifiedHeader.d.ts.map +0 -1
- package/dist/components/loading-states/ComposeLoadingState.d.ts +0 -10
- package/dist/components/loading-states/ComposeLoadingState.d.ts.map +0 -1
- package/dist/components/loading-states/ResourceLoadingState.d.ts +0 -7
- package/dist/components/loading-states/ResourceLoadingState.d.ts.map +0 -1
- package/dist/components/modals/ConfigureGenerationStep.d.ts +0 -36
- package/dist/components/modals/ConfigureGenerationStep.d.ts.map +0 -1
- package/dist/components/modals/ConfigureSearchStep.d.ts +0 -21
- package/dist/components/modals/ConfigureSearchStep.d.ts.map +0 -1
- package/dist/components/modals/ContextSummary.d.ts +0 -14
- package/dist/components/modals/ContextSummary.d.ts.map +0 -1
- package/dist/components/modals/GatherContextStep.d.ts +0 -23
- package/dist/components/modals/GatherContextStep.d.ts.map +0 -1
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts +0 -8
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts.map +0 -1
- package/dist/components/modals/PermissionDeniedModal.d.ts +0 -12
- package/dist/components/modals/PermissionDeniedModal.d.ts.map +0 -1
- package/dist/components/modals/ReferenceWizardModal.d.ts +0 -64
- package/dist/components/modals/ReferenceWizardModal.d.ts.map +0 -1
- package/dist/components/modals/ResourceSearchModal.d.ts +0 -16
- package/dist/components/modals/ResourceSearchModal.d.ts.map +0 -1
- package/dist/components/modals/SearchModal.d.ts +0 -20
- package/dist/components/modals/SearchModal.d.ts.map +0 -1
- package/dist/components/modals/SearchResultsStep.d.ts +0 -22
- package/dist/components/modals/SearchResultsStep.d.ts.map +0 -1
- package/dist/components/modals/SessionExpiredModal.d.ts +0 -12
- package/dist/components/modals/SessionExpiredModal.d.ts.map +0 -1
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts +0 -13
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts.map +0 -1
- package/dist/components/navigation/Footer.d.ts +0 -20
- package/dist/components/navigation/Footer.d.ts.map +0 -1
- package/dist/components/navigation/NavigationMenu.d.ts +0 -18
- package/dist/components/navigation/NavigationMenu.d.ts.map +0 -1
- package/dist/components/navigation/ObservableLink.d.ts +0 -52
- package/dist/components/navigation/ObservableLink.d.ts.map +0 -1
- package/dist/components/navigation/SimpleNavigation.d.ts +0 -35
- package/dist/components/navigation/SimpleNavigation.d.ts.map +0 -1
- package/dist/components/navigation/SortableResourceTab.d.ts +0 -7
- package/dist/components/navigation/SortableResourceTab.d.ts.map +0 -1
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts +0 -8
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts.map +0 -1
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts +0 -25
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts.map +0 -1
- package/dist/components/resource/AnnotateView.d.ts +0 -29
- package/dist/components/resource/AnnotateView.d.ts.map +0 -1
- package/dist/components/resource/AnnotationHistory.d.ts +0 -14
- package/dist/components/resource/AnnotationHistory.d.ts.map +0 -1
- package/dist/components/resource/BrowseView.d.ts +0 -28
- package/dist/components/resource/BrowseView.d.ts.map +0 -1
- package/dist/components/resource/HistoryEvent.d.ts +0 -19
- package/dist/components/resource/HistoryEvent.d.ts.map +0 -1
- package/dist/components/resource/ResourceViewer.d.ts +0 -46
- package/dist/components/resource/ResourceViewer.d.ts.map +0 -1
- package/dist/components/resource/event-formatting.d.ts +0 -61
- package/dist/components/resource/event-formatting.d.ts.map +0 -1
- package/dist/components/resource/panels/AssessmentEntry.d.ts +0 -11
- package/dist/components/resource/panels/AssessmentEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/AssessmentPanel.d.ts +0 -32
- package/dist/components/resource/panels/AssessmentPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/AssistSection.d.ts +0 -27
- package/dist/components/resource/panels/AssistSection.d.ts.map +0 -1
- package/dist/components/resource/panels/CollaborationPanel.d.ts +0 -28
- package/dist/components/resource/panels/CollaborationPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/CommentEntry.d.ts +0 -12
- package/dist/components/resource/panels/CommentEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/CommentsPanel.d.ts +0 -32
- package/dist/components/resource/panels/CommentsPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/HighlightEntry.d.ts +0 -11
- package/dist/components/resource/panels/HighlightEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/HighlightPanel.d.ts +0 -30
- package/dist/components/resource/panels/HighlightPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/JsonLdPanel.d.ts +0 -9
- package/dist/components/resource/panels/JsonLdPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/PanelHeader.d.ts +0 -13
- package/dist/components/resource/panels/PanelHeader.d.ts.map +0 -1
- package/dist/components/resource/panels/ReferenceEntry.d.ts +0 -15
- package/dist/components/resource/panels/ReferenceEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/ReferencesPanel.d.ts +0 -43
- package/dist/components/resource/panels/ReferencesPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts +0 -27
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/StatisticsPanel.d.ts +0 -12
- package/dist/components/resource/panels/StatisticsPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/TagEntry.d.ts +0 -11
- package/dist/components/resource/panels/TagEntry.d.ts.map +0 -1
- package/dist/components/resource/panels/TaggingPanel.d.ts +0 -34
- package/dist/components/resource/panels/TaggingPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts +0 -52
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts.map +0 -1
- package/dist/components/resource/panels/agent-label.d.ts +0 -11
- package/dist/components/resource/panels/agent-label.d.ts.map +0 -1
- package/dist/components/settings/SettingsPanel.d.ts +0 -19
- package/dist/components/settings/SettingsPanel.d.ts.map +0 -1
- package/dist/components/viewers/ImageViewer.d.ts +0 -8
- package/dist/components/viewers/ImageViewer.d.ts.map +0 -1
- package/dist/components/viewers/index.d.ts +0 -2
- package/dist/components/viewers/index.d.ts.map +0 -1
- package/dist/contexts/AnnotationContext.d.ts +0 -46
- package/dist/contexts/AnnotationContext.d.ts.map +0 -1
- package/dist/contexts/ResourceAnnotationsContext.d.ts +0 -14
- package/dist/contexts/ResourceAnnotationsContext.d.ts.map +0 -1
- package/dist/contexts/RoutingContext.d.ts +0 -59
- package/dist/contexts/RoutingContext.d.ts.map +0 -1
- package/dist/contexts/ThemeContext.d.ts +0 -15
- package/dist/contexts/ThemeContext.d.ts.map +0 -1
- package/dist/contexts/TranslationContext.d.ts +0 -51
- package/dist/contexts/TranslationContext.d.ts.map +0 -1
- package/dist/contexts/useEventSubscription.d.ts +0 -41
- package/dist/contexts/useEventSubscription.d.ts.map +0 -1
- package/dist/design-tokens/index.d.ts +0 -178
- package/dist/design-tokens/index.d.ts.map +0 -1
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts +0 -33
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts +0 -37
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/ExportCard.d.ts +0 -18
- package/dist/features/admin-exchange/components/ExportCard.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/ImportCard.d.ts +0 -32
- package/dist/features/admin-exchange/components/ImportCard.d.ts.map +0 -1
- package/dist/features/admin-exchange/components/ImportProgress.d.ts +0 -26
- package/dist/features/admin-exchange/components/ImportProgress.d.ts.map +0 -1
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts +0 -31
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts.map +0 -1
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts +0 -42
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts.map +0 -1
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts +0 -12
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts.map +0 -1
- package/dist/features/admin-users/components/AdminUsersPage.d.ts +0 -88
- package/dist/features/admin-users/components/AdminUsersPage.d.ts.map +0 -1
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts +0 -17
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts.map +0 -1
- package/dist/features/auth/components/AuthErrorDisplay.d.ts +0 -34
- package/dist/features/auth/components/AuthErrorDisplay.d.ts.map +0 -1
- package/dist/features/auth/components/SignInForm.d.ts +0 -80
- package/dist/features/auth/components/SignInForm.d.ts.map +0 -1
- package/dist/features/auth/components/SignUpForm.d.ts +0 -39
- package/dist/features/auth/components/SignUpForm.d.ts.map +0 -1
- package/dist/features/auth-welcome/components/WelcomePage.d.ts +0 -62
- package/dist/features/auth-welcome/components/WelcomePage.d.ts.map +0 -1
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts +0 -12
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts.map +0 -1
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts +0 -32
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts.map +0 -1
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts +0 -16
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts.map +0 -1
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts +0 -27
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts.map +0 -1
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts +0 -25
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts.map +0 -1
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts +0 -38
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts.map +0 -1
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts +0 -83
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts.map +0 -1
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts +0 -23
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts.map +0 -1
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts +0 -59
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts.map +0 -1
- package/dist/features/resource-discovery/components/ResourceCard.d.ts +0 -17
- package/dist/features/resource-discovery/components/ResourceCard.d.ts.map +0 -1
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts +0 -43
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts.map +0 -1
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts +0 -15
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts.map +0 -1
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts +0 -80
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts.map +0 -1
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts +0 -11
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts.map +0 -1
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts +0 -48
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts.map +0 -1
- package/dist/hooks/useDebounce.d.ts +0 -29
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDragAnnouncements.d.ts +0 -12
- package/dist/hooks/useDragAnnouncements.d.ts.map +0 -1
- package/dist/hooks/useHoverDelay.d.ts +0 -8
- package/dist/hooks/useHoverDelay.d.ts.map +0 -1
- package/dist/hooks/useHoverEmitter.d.ts +0 -8
- package/dist/hooks/useHoverEmitter.d.ts.map +0 -1
- package/dist/hooks/useKeyboardShortcuts.d.ts +0 -29
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/hooks/useLineNumbers.d.ts +0 -8
- package/dist/hooks/useLineNumbers.d.ts.map +0 -1
- package/dist/hooks/useMediaToken.d.ts +0 -7
- package/dist/hooks/useMediaToken.d.ts.map +0 -1
- package/dist/hooks/useObservable.d.ts +0 -23
- package/dist/hooks/useObservable.d.ts.map +0 -1
- package/dist/hooks/useObservableBrowse.d.ts +0 -70
- package/dist/hooks/useObservableBrowse.d.ts.map +0 -1
- package/dist/hooks/usePanelWidth.d.ts +0 -37
- package/dist/hooks/usePanelWidth.d.ts.map +0 -1
- package/dist/hooks/useResourceContent.d.ts +0 -7
- package/dist/hooks/useResourceContent.d.ts.map +0 -1
- package/dist/hooks/useRovingTabIndex.d.ts +0 -13
- package/dist/hooks/useRovingTabIndex.d.ts.map +0 -1
- package/dist/hooks/useSearchAnnouncements.d.ts +0 -10
- package/dist/hooks/useSearchAnnouncements.d.ts.map +0 -1
- package/dist/hooks/useSessionExpiry.d.ts +0 -10
- package/dist/hooks/useSessionExpiry.d.ts.map +0 -1
- package/dist/hooks/useShellStateUnit.d.ts +0 -9
- package/dist/hooks/useShellStateUnit.d.ts.map +0 -1
- package/dist/hooks/useStateUnit.d.ts +0 -3
- package/dist/hooks/useStateUnit.d.ts.map +0 -1
- package/dist/hooks/useUI.d.ts +0 -24
- package/dist/hooks/useUI.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integrations/css-modules-helper.d.ts +0 -114
- package/dist/integrations/css-modules-helper.d.ts.map +0 -1
- package/dist/integrations/styled-components-theme.d.ts +0 -95
- package/dist/integrations/styled-components-theme.d.ts.map +0 -1
- package/dist/integrations/tailwind-plugin.d.cts +0 -3
- package/dist/integrations/tailwind-plugin.d.cts.map +0 -1
- package/dist/lib/annotation-overlay.d.ts +0 -71
- package/dist/lib/annotation-overlay.d.ts.map +0 -1
- package/dist/lib/annotation-registry.d.ts +0 -62
- package/dist/lib/annotation-registry.d.ts.map +0 -1
- package/dist/lib/browser-pdfjs.d.ts +0 -93
- package/dist/lib/browser-pdfjs.d.ts.map +0 -1
- package/dist/lib/button-styles.d.ts +0 -27
- package/dist/lib/button-styles.d.ts.map +0 -1
- package/dist/lib/codemirror-handlers.d.ts +0 -52
- package/dist/lib/codemirror-handlers.d.ts.map +0 -1
- package/dist/lib/codemirror-json-theme.d.ts +0 -8
- package/dist/lib/codemirror-json-theme.d.ts.map +0 -1
- package/dist/lib/codemirror-logic.d.ts +0 -66
- package/dist/lib/codemirror-logic.d.ts.map +0 -1
- package/dist/lib/codemirror-widgets.d.ts +0 -39
- package/dist/lib/codemirror-widgets.d.ts.map +0 -1
- package/dist/lib/formatTime.d.ts +0 -2
- package/dist/lib/formatTime.d.ts.map +0 -1
- package/dist/lib/media-shapes.d.ts +0 -51
- package/dist/lib/media-shapes.d.ts.map +0 -1
- package/dist/lib/pdf-coordinates.d.ts +0 -69
- package/dist/lib/pdf-coordinates.d.ts.map +0 -1
- package/dist/lib/resource-utils.d.ts +0 -22
- package/dist/lib/resource-utils.d.ts.map +0 -1
- package/dist/lib/scroll-utils.d.ts +0 -20
- package/dist/lib/scroll-utils.d.ts.map +0 -1
- package/dist/lib/text-segmentation.d.ts +0 -25
- package/dist/lib/text-segmentation.d.ts.map +0 -1
- package/dist/lib/text-selection-handler.d.ts +0 -46
- package/dist/lib/text-selection-handler.d.ts.map +0 -1
- package/dist/lib/validation.d.ts +0 -47
- package/dist/lib/validation.d.ts.map +0 -1
- package/dist/session/SemiontProvider.d.ts +0 -28
- package/dist/session/SemiontProvider.d.ts.map +0 -1
- package/dist/session/web-browser-storage.d.ts +0 -19
- package/dist/session/web-browser-storage.d.ts.map +0 -1
- package/dist/state/session-state-unit.d.ts +0 -9
- package/dist/state/session-state-unit.d.ts.map +0 -1
- package/dist/state/shell-state-unit.d.ts +0 -33
- package/dist/state/shell-state-unit.d.ts.map +0 -1
- package/dist/test-utils.d.ts.map +0 -1
- package/dist/types/AnnotationManager.d.ts +0 -53
- package/dist/types/AnnotationManager.d.ts.map +0 -1
- package/dist/types/TranslationManager.d.ts +0 -15
- package/dist/types/TranslationManager.d.ts.map +0 -1
- package/dist/types/annotation-props.d.ts +0 -108
- package/dist/types/annotation-props.d.ts.map +0 -1
- package/dist/types/collapsible-navigation.d.ts +0 -69
- package/dist/types/collapsible-navigation.d.ts.map +0 -1
- package/dist/types/modals.d.ts +0 -77
- package/dist/types/modals.d.ts.map +0 -1
- package/dist/types/navigation.d.ts +0 -35
- package/dist/types/navigation.d.ts.map +0 -1
- package/dist/types/resource-viewer.d.ts +0 -19
- package/dist/types/resource-viewer.d.ts.map +0 -1
- package/dist/types/simple-navigation.d.ts +0 -15
- package/dist/types/simple-navigation.d.ts.map +0 -1
- package/dist/types/translation.d.ts +0 -5
- package/dist/types/translation.d.ts.map +0 -1
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CodeMirror Inline Widgets
|
|
3
|
-
*
|
|
4
|
-
* Custom widgets for enhancing the document editing experience:
|
|
5
|
-
* - Reference resolution indicators (resolved 🔗, generating ✨, stub ❓)
|
|
6
|
-
*
|
|
7
|
-
* Event handling uses delegation — no per-widget listeners.
|
|
8
|
-
* Data attributes on the container enable CodeMirrorRenderer to handle
|
|
9
|
-
* clicks and hovers via a single set of delegated handlers.
|
|
10
|
-
*/
|
|
11
|
-
import { WidgetType } from '@codemirror/view';
|
|
12
|
-
import type { Annotation } from '@semiont/core';
|
|
13
|
-
/**
|
|
14
|
-
* Reference Resolution Widget
|
|
15
|
-
* Shows a small indicator next to references with hover preview.
|
|
16
|
-
*
|
|
17
|
-
* All event handling is delegated — the widget sets data attributes
|
|
18
|
-
* and CodeMirrorRenderer handles events via container-level listeners.
|
|
19
|
-
*/
|
|
20
|
-
export declare class ReferenceResolutionWidget extends WidgetType {
|
|
21
|
-
readonly annotation: Annotation;
|
|
22
|
-
readonly targetDocumentName?: string | undefined;
|
|
23
|
-
readonly isGenerating?: boolean | undefined;
|
|
24
|
-
constructor(annotation: Annotation, targetDocumentName?: string | undefined, isGenerating?: boolean | undefined);
|
|
25
|
-
eq(other: ReferenceResolutionWidget): boolean;
|
|
26
|
-
toDOM(): HTMLSpanElement;
|
|
27
|
-
ignoreEvent(event: Event): boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Show a tooltip preview on a widget container.
|
|
31
|
-
* Called from delegated mouseenter handler in CodeMirrorRenderer.
|
|
32
|
-
*/
|
|
33
|
-
export declare function showWidgetPreview(container: HTMLElement, documentName: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* Hide the tooltip preview from a widget container.
|
|
36
|
-
* Called from delegated mouseleave handler in CodeMirrorRenderer.
|
|
37
|
-
*/
|
|
38
|
-
export declare function hideWidgetPreview(container: HTMLElement): void;
|
|
39
|
-
//# sourceMappingURL=codemirror-widgets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codemirror-widgets.d.ts","sourceRoot":"","sources":["../../src/lib/codemirror-widgets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;GAMG;AACH,qBAAa,yBAA0B,SAAQ,UAAU;IAErD,QAAQ,CAAC,UAAU,EAAE,UAAU;IAC/B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO;gBAFtB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,MAAM,YAAA,EAC3B,YAAY,CAAC,EAAE,OAAO,YAAA;IAKxB,EAAE,CAAC,KAAK,EAAE,yBAAyB;IASnC,KAAK;IAqGL,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;CAG5C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAwBpF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAG9D"}
|
package/dist/lib/formatTime.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatTime.d.ts","sourceRoot":"","sources":["../../src/lib/formatTime.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAiBrE"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Media Type Shape Support
|
|
3
|
-
*
|
|
4
|
-
* Defines which annotation shapes are supported for each media type.
|
|
5
|
-
* Shapes are tracked per selector type (FragmentSelector, SvgSelector).
|
|
6
|
-
*/
|
|
7
|
-
import type { ShapeType } from '../components/annotation/AnnotateToolbar';
|
|
8
|
-
/**
|
|
9
|
-
* Selector types that support shape selection
|
|
10
|
-
*/
|
|
11
|
-
export type SelectorType = 'fragment' | 'svg' | 'text';
|
|
12
|
-
/**
|
|
13
|
-
* Get supported annotation shapes for a given media type
|
|
14
|
-
*
|
|
15
|
-
* PDF: Only rectangles (FragmentSelector with RFC 3778 viewrect)
|
|
16
|
-
* Images: All shapes (SvgSelector supports rect, circle, polygon)
|
|
17
|
-
*
|
|
18
|
-
* @param mediaType - MIME type of the resource (e.g., 'application/pdf', 'image/png')
|
|
19
|
-
* @returns Array of supported shape types for annotation
|
|
20
|
-
*/
|
|
21
|
-
export declare function getSupportedShapes(mediaType: string | undefined | null): ShapeType[];
|
|
22
|
-
/**
|
|
23
|
-
* Check if a shape type is supported for a given media type
|
|
24
|
-
*
|
|
25
|
-
* @param mediaType - MIME type of the resource
|
|
26
|
-
* @param shape - Shape type to check
|
|
27
|
-
* @returns true if the shape is supported for this media type
|
|
28
|
-
*/
|
|
29
|
-
export declare function isShapeSupported(mediaType: string | undefined | null, shape: ShapeType): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Get the selector type used for a given media type
|
|
32
|
-
*
|
|
33
|
-
* @param mediaType - MIME type of the resource
|
|
34
|
-
* @returns Selector type (fragment, svg, or text)
|
|
35
|
-
*/
|
|
36
|
-
export declare function getSelectorType(mediaType: string | undefined | null): SelectorType;
|
|
37
|
-
/**
|
|
38
|
-
* Get the selected shape for a given selector type from localStorage
|
|
39
|
-
*
|
|
40
|
-
* @param selectorType - The selector type
|
|
41
|
-
* @returns The selected shape, or default for that selector type
|
|
42
|
-
*/
|
|
43
|
-
export declare function getSelectedShapeForSelectorType(selectorType: SelectorType): ShapeType;
|
|
44
|
-
/**
|
|
45
|
-
* Save the selected shape for a given selector type to localStorage
|
|
46
|
-
*
|
|
47
|
-
* @param selectorType - The selector type
|
|
48
|
-
* @param shape - The shape to save
|
|
49
|
-
*/
|
|
50
|
-
export declare function saveSelectedShapeForSelectorType(selectorType: SelectorType, shape: ShapeType): void;
|
|
51
|
-
//# sourceMappingURL=media-shapes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media-shapes.d.ts","sourceRoot":"","sources":["../../src/lib/media-shapes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,EAAE,CAmBpF;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EACpC,KAAK,EAAE,SAAS,GACf,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,YAAY,CAiBlF;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,CAqBrF;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAKnG"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PDF Coordinate Utilities
|
|
3
|
-
*
|
|
4
|
-
* Handles coordinate transformations between:
|
|
5
|
-
* - Canvas space (pixels, top-left origin, Y increases downward)
|
|
6
|
-
* - PDF space (points, bottom-left origin, Y increases upward)
|
|
7
|
-
*
|
|
8
|
-
* Based on RFC 3778 PDF Fragment Identifiers:
|
|
9
|
-
* https://tools.ietf.org/html/rfc3778
|
|
10
|
-
*/
|
|
11
|
-
export interface Rectangle {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
}
|
|
17
|
-
export interface PdfCoordinate {
|
|
18
|
-
page: number;
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
}
|
|
24
|
-
export interface CanvasRectangle {
|
|
25
|
-
startX: number;
|
|
26
|
-
startY: number;
|
|
27
|
-
endX: number;
|
|
28
|
-
endY: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Convert canvas coordinates to PDF coordinates
|
|
32
|
-
*
|
|
33
|
-
* Canvas: Origin at top-left, Y increases downward
|
|
34
|
-
* PDF: Origin at bottom-left, Y increases upward
|
|
35
|
-
*
|
|
36
|
-
* @param canvasRect - Rectangle in canvas pixel coordinates
|
|
37
|
-
* @param page - PDF page number (1-indexed)
|
|
38
|
-
* @param pageWidth - PDF page width in points
|
|
39
|
-
* @param pageHeight - PDF page height in points
|
|
40
|
-
* @param scale - Current canvas scale factor
|
|
41
|
-
*/
|
|
42
|
-
export declare function canvasToPdfCoordinates(canvasRect: CanvasRectangle, page: number, _pageWidth: number, pageHeight: number, scale?: number): PdfCoordinate;
|
|
43
|
-
/**
|
|
44
|
-
* Convert PDF coordinates to canvas coordinates
|
|
45
|
-
*
|
|
46
|
-
* @param pdfCoord - Coordinates in PDF space
|
|
47
|
-
* @param pageHeight - PDF page height in points
|
|
48
|
-
* @param scale - Current canvas scale factor
|
|
49
|
-
*/
|
|
50
|
-
export declare function pdfToCanvasCoordinates(pdfCoord: PdfCoordinate, pageHeight: number, scale?: number): Rectangle;
|
|
51
|
-
/**
|
|
52
|
-
* Generate RFC 3778 FragmentSelector value
|
|
53
|
-
*
|
|
54
|
-
* Format: page=N&viewrect=left,top,width,height
|
|
55
|
-
* All coordinates in PDF points
|
|
56
|
-
*/
|
|
57
|
-
export declare function createFragmentSelector(coord: PdfCoordinate): string;
|
|
58
|
-
/**
|
|
59
|
-
* Parse RFC 3778 FragmentSelector value
|
|
60
|
-
*
|
|
61
|
-
* @param fragment - Fragment string like "page=5&viewrect=100,200,300,400"
|
|
62
|
-
* @returns Parsed PDF coordinates or null if invalid
|
|
63
|
-
*/
|
|
64
|
-
export declare function parseFragmentSelector(fragment: string): PdfCoordinate | null;
|
|
65
|
-
/**
|
|
66
|
-
* Extract page number from FragmentSelector
|
|
67
|
-
*/
|
|
68
|
-
export declare function getPageFromFragment(fragment: string): number | null;
|
|
69
|
-
//# sourceMappingURL=pdf-coordinates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-coordinates.d.ts","sourceRoot":"","sources":["../../src/lib/pdf-coordinates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,eAAe,EAC3B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,MAAU,GAChB,aAAa,CAsBf;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,MAAU,GAChB,SAAS,CAeX;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAEnE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAqB5E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGnE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resource utilities
|
|
3
|
-
* Shared helper functions for resource display and metadata
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Get icon emoji based on media type
|
|
7
|
-
*/
|
|
8
|
-
export declare function getResourceIcon(mediaType: string | undefined): string;
|
|
9
|
-
/**
|
|
10
|
-
* Check if a resource supports text-based AI detection features
|
|
11
|
-
*
|
|
12
|
-
* Currently returns true for any text/* media type.
|
|
13
|
-
* Future enhancements may include:
|
|
14
|
-
* - Checking resource language/locale compatibility
|
|
15
|
-
* - Validating content size limits
|
|
16
|
-
* - Checking for specific text format requirements
|
|
17
|
-
*
|
|
18
|
-
* @param mediaType - The media type string (e.g., 'text/plain', 'text/markdown')
|
|
19
|
-
* @returns true if the resource supports AI detection features
|
|
20
|
-
*/
|
|
21
|
-
export declare function supportsDetection(mediaType: string | undefined): boolean;
|
|
22
|
-
//# sourceMappingURL=resource-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-utils.d.ts","sourceRoot":"","sources":["../../src/lib/resource-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAmBrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAIxE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scroll utilities for annotation navigation
|
|
3
|
-
*/
|
|
4
|
-
export interface ScrollToAnnotationOptions {
|
|
5
|
-
/** Add pulse animation that auto-removes after 2 seconds */
|
|
6
|
-
pulse?: boolean;
|
|
7
|
-
/** Scroll behavior */
|
|
8
|
-
behavior?: ScrollBehavior;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Scrolls an annotation into view within its scroll container.
|
|
12
|
-
* Centers the annotation vertically within the container.
|
|
13
|
-
*
|
|
14
|
-
* @param annotationId - ID of the annotation to scroll to
|
|
15
|
-
* @param rootElement - Root element containing the annotation (will search within this)
|
|
16
|
-
* @param options - Scroll options
|
|
17
|
-
* @returns true if annotation was found and scrolled, false otherwise
|
|
18
|
-
*/
|
|
19
|
-
export declare function scrollAnnotationIntoView(annotationId: string | null, rootElement: HTMLElement, options?: ScrollToAnnotationOptions): boolean;
|
|
20
|
-
//# sourceMappingURL=scroll-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-utils.d.ts","sourceRoot":"","sources":["../../src/lib/scroll-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAgDT"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Text segmentation for annotation rendering
|
|
3
|
-
*
|
|
4
|
-
* Splits document text into segments, matching each annotation to its
|
|
5
|
-
* position using fuzzy anchoring (TextQuoteSelector) with fallback to
|
|
6
|
-
* exact positions (TextPositionSelector).
|
|
7
|
-
*
|
|
8
|
-
* No React dependencies — safe to use in any JavaScript environment.
|
|
9
|
-
*/
|
|
10
|
-
import type { TextSegment } from './codemirror-logic';
|
|
11
|
-
import type { Annotation } from '@semiont/core';
|
|
12
|
-
export type { TextSegment };
|
|
13
|
-
/**
|
|
14
|
-
* Segment text with annotations — uses fuzzy anchoring when available.
|
|
15
|
-
*
|
|
16
|
-
* For each annotation, tries TextQuoteSelector (fuzzy) first, then falls
|
|
17
|
-
* back to TextPositionSelector (exact). Handles overlapping annotations
|
|
18
|
-
* by skipping later ones that overlap earlier ones.
|
|
19
|
-
*
|
|
20
|
-
* @param content - Full document text
|
|
21
|
-
* @param annotations - Array of W3C annotations with target selectors
|
|
22
|
-
* @returns Array of TextSegments covering the full content
|
|
23
|
-
*/
|
|
24
|
-
export declare function segmentTextWithAnnotations(content: string, annotations: Annotation[]): TextSegment[];
|
|
25
|
-
//# sourceMappingURL=text-segmentation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-segmentation.d.ts","sourceRoot":"","sources":["../../src/lib/text-segmentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,WAAW,EAAE,CAiFpG"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Text selection handler logic extracted from AnnotateView
|
|
3
|
-
*
|
|
4
|
-
* Builds W3C annotation selectors (TextPositionSelector + TextQuoteSelector)
|
|
5
|
-
* from a text selection. No DOM, React, or CodeMirror dependencies.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* A pair of selectors for a text annotation:
|
|
9
|
-
* TextPositionSelector (exact position) + TextQuoteSelector (fuzzy anchoring)
|
|
10
|
-
*/
|
|
11
|
-
export type SelectorPair = [
|
|
12
|
-
{
|
|
13
|
-
type: 'TextPositionSelector';
|
|
14
|
-
start: number;
|
|
15
|
-
end: number;
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
type: 'TextQuoteSelector';
|
|
19
|
-
exact: string;
|
|
20
|
-
prefix?: string;
|
|
21
|
-
suffix?: string;
|
|
22
|
-
}
|
|
23
|
-
];
|
|
24
|
-
/**
|
|
25
|
-
* Build a TextPositionSelector + TextQuoteSelector pair for a text selection.
|
|
26
|
-
*
|
|
27
|
-
* @param content - Full document text
|
|
28
|
-
* @param selectedText - The selected text
|
|
29
|
-
* @param start - Start position in the document
|
|
30
|
-
* @param end - End position in the document
|
|
31
|
-
* @returns Selector pair ready for mark:requested event, or null if invalid
|
|
32
|
-
*/
|
|
33
|
-
export declare function buildTextSelectors(content: string, selectedText: string, start: number, end: number): SelectorPair | null;
|
|
34
|
-
/**
|
|
35
|
-
* Determine the start position of selected text using a fallback strategy.
|
|
36
|
-
* Tries indexOf when CodeMirror's posAtDOM is unavailable.
|
|
37
|
-
*
|
|
38
|
-
* @param content - Full document text
|
|
39
|
-
* @param selectedText - The selected text
|
|
40
|
-
* @returns Position or null if not found
|
|
41
|
-
*/
|
|
42
|
-
export declare function fallbackTextPosition(content: string, selectedText: string): {
|
|
43
|
-
start: number;
|
|
44
|
-
end: number;
|
|
45
|
-
} | null;
|
|
46
|
-
//# sourceMappingURL=text-selection-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-selection-handler.d.ts","sourceRoot":"","sources":["../../src/lib/text-selection-handler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;QAAE,IAAI,EAAE,sBAAsB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;IAC5D;QAAE,IAAI,EAAE,mBAAmB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;CAC/E,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,GACV,YAAY,GAAG,IAAI,CAoBrB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAIvC"}
|
package/dist/lib/validation.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Frontend-specific validation utilities
|
|
3
|
-
*
|
|
4
|
-
* Browser and Next.js specific validation with security checks.
|
|
5
|
-
* For generic validation utilities, see @semiont/api-client/utils/validation
|
|
6
|
-
*/
|
|
7
|
-
import { type ValidationResult } from '@semiont/core';
|
|
8
|
-
/**
|
|
9
|
-
* Image URL validation with security checks (browser-specific)
|
|
10
|
-
*
|
|
11
|
-
* Validates image URLs for use in browser environments with XSS prevention.
|
|
12
|
-
* Only allows HTTPS for external images, blocks suspicious patterns.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ImageURLSchema: {
|
|
15
|
-
parse(url: unknown): string;
|
|
16
|
-
safeParse(url: unknown): ValidationResult<string>;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* OAuth user validation (Next.js NextAuth specific)
|
|
20
|
-
*
|
|
21
|
-
* Validates user objects returned from OAuth providers.
|
|
22
|
-
* Includes domain validation for access control.
|
|
23
|
-
*/
|
|
24
|
-
export interface OAuthUser {
|
|
25
|
-
id: string;
|
|
26
|
-
email: string;
|
|
27
|
-
name?: string | null;
|
|
28
|
-
image?: string | null;
|
|
29
|
-
domain: string;
|
|
30
|
-
isAdmin: boolean;
|
|
31
|
-
isModerator: boolean;
|
|
32
|
-
}
|
|
33
|
-
export declare const OAuthUserSchema: {
|
|
34
|
-
parse(data: unknown): OAuthUser;
|
|
35
|
-
safeParse(data: unknown): ValidationResult<OAuthUser>;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* URL sanitization for images (browser-specific security)
|
|
39
|
-
*
|
|
40
|
-
* Sanitizes image URLs by validating and reconstructing with only safe parts.
|
|
41
|
-
* Returns null if validation fails.
|
|
42
|
-
*
|
|
43
|
-
* @param url - Image URL to sanitize
|
|
44
|
-
* @returns Sanitized URL or null if invalid
|
|
45
|
-
*/
|
|
46
|
-
export declare function sanitizeImageURL(url: string): string | null;
|
|
47
|
-
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/lib/validation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACpE;;;;;GAKG;AACH,eAAO,MAAM,cAAc;eACd,OAAO,GAAG,MAAM;mBA6CZ,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC;CAWlD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe;gBACd,OAAO,GAAG,SAAS;oBAyDf,OAAO,GAAG,gBAAgB,CAAC,SAAS,CAAC;CAWtD,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkB3D"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SemiontProvider — the single React provider for session state.
|
|
3
|
-
* Puts the module-scoped SemiontBrowser singleton into context so
|
|
4
|
-
* `useSemiont()` can hand it back. Does not own the browser's lifetime
|
|
5
|
-
* — the browser lives outside React, constructed lazily by `getBrowser()`
|
|
6
|
-
* and disposed only via `__resetForTests` (never in production).
|
|
7
|
-
*
|
|
8
|
-
* Defaults to `WebBrowserStorage` + `createHttpSessionFactory()` (the
|
|
9
|
-
* canonical web setup). Hosts that need a different shape — Electron /
|
|
10
|
-
* Tauri with a filesystem-backed storage, an in-process session factory
|
|
11
|
-
* built around `LocalTransport`, etc. — pass `storage` and/or
|
|
12
|
-
* `sessionFactory` to override the defaults. Tests typically construct
|
|
13
|
-
* a `SemiontBrowser` directly and inject it via `browser`.
|
|
14
|
-
*/
|
|
15
|
-
import { type ReactNode } from 'react';
|
|
16
|
-
import { SemiontBrowser, type SessionFactory, type SessionStorage } from '@semiont/sdk';
|
|
17
|
-
export interface SemiontProviderProps {
|
|
18
|
-
/** Inject a fully-constructed browser (tests, embedded hosts that build their own). Omit to use the default. */
|
|
19
|
-
browser?: SemiontBrowser;
|
|
20
|
-
/** Override the default `WebBrowserStorage`. Useful for non-browser hosts (Electron/Tauri filesystem-backed adapters). */
|
|
21
|
-
storage?: SessionStorage;
|
|
22
|
-
/** Override the default HTTP session factory. Useful for in-process or future non-HTTP transports. */
|
|
23
|
-
sessionFactory?: SessionFactory;
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
}
|
|
26
|
-
export declare function SemiontProvider({ browser, storage, sessionFactory, children }: SemiontProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare function useSemiont(): SemiontBrowser;
|
|
28
|
-
//# sourceMappingURL=SemiontProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SemiontProvider.d.ts","sourceRoot":"","sources":["../../src/session/SemiontProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EACL,cAAc,EAGd,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,oBAAoB;IACnC,gHAAgH;IAChH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,0HAA0H;IAC1H,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,sGAAsG;IACtG,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CAanG;AAED,wBAAgB,UAAU,IAAI,cAAc,CAM3C"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WebBrowserStorage — browser-backed `SessionStorage` implementation.
|
|
3
|
-
* Wraps `localStorage` for reads/writes and `window`'s `storage` event
|
|
4
|
-
* for cross-tab change notifications.
|
|
5
|
-
*
|
|
6
|
-
* Construction requires a browser context. The guard matches the
|
|
7
|
-
* existing registry behavior: server rendering that accidentally
|
|
8
|
-
* instantiates this gets a loud error rather than a silent no-op
|
|
9
|
-
* that would mask token leaks.
|
|
10
|
-
*/
|
|
11
|
-
import type { SessionStorage } from '@semiont/sdk';
|
|
12
|
-
export declare class WebBrowserStorage implements SessionStorage {
|
|
13
|
-
constructor();
|
|
14
|
-
get(key: string): string | null;
|
|
15
|
-
set(key: string, value: string): void;
|
|
16
|
-
delete(key: string): void;
|
|
17
|
-
subscribe(handler: (key: string, newValue: string | null) => void): () => void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=web-browser-storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web-browser-storage.d.ts","sourceRoot":"","sources":["../../src/session/web-browser-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,qBAAa,iBAAkB,YAAW,cAAc;;IAYtD,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAI/B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIrC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,MAAM,IAAI;CAU/E"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Observable } from 'rxjs';
|
|
2
|
-
import type { StateUnit } from '@semiont/sdk';
|
|
3
|
-
import type { SemiontClient } from '@semiont/sdk';
|
|
4
|
-
export interface SessionStateUnit extends StateUnit {
|
|
5
|
-
isLoggingOut$: Observable<boolean>;
|
|
6
|
-
logout(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare function createSessionStateUnit(client: SemiontClient): SessionStateUnit;
|
|
9
|
-
//# sourceMappingURL=session-state-unit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-state-unit.d.ts","sourceRoot":"","sources":["../../src/state/session-state-unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,aAAa,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,aAAa,GACpB,gBAAgB,CAqBlB"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ShellStateUnit — app-shell state: which toolbar panel is open, tab-bar
|
|
3
|
-
* coordination helpers, scroll-to-annotation signals. Lives on
|
|
4
|
-
* `SemiontBrowser`'s app-scoped bus (not the per-session client bus)
|
|
5
|
-
* because panel toggles and shell chrome must work regardless of
|
|
6
|
-
* whether a KB session is active.
|
|
7
|
-
*
|
|
8
|
-
* Channels: `panel:toggle`, `panel:open`, `panel:close`.
|
|
9
|
-
*/
|
|
10
|
-
import { type Observable } from 'rxjs';
|
|
11
|
-
import type { SemiontBrowser } from '@semiont/sdk';
|
|
12
|
-
import type { StateUnit } from '@semiont/sdk';
|
|
13
|
-
export type ToolbarPanelType = 'history' | 'info' | 'annotations' | 'settings' | 'collaboration' | 'user' | 'jsonld' | 'knowledge-base';
|
|
14
|
-
export declare const COMMON_PANELS: readonly ToolbarPanelType[];
|
|
15
|
-
export declare const RESOURCE_PANELS: readonly ToolbarPanelType[];
|
|
16
|
-
export interface ShellStateUnit extends StateUnit {
|
|
17
|
-
activePanel$: Observable<ToolbarPanelType | null>;
|
|
18
|
-
scrollToAnnotationId$: Observable<string | null>;
|
|
19
|
-
panelInitialTab$: Observable<{
|
|
20
|
-
tab: string;
|
|
21
|
-
generation: number;
|
|
22
|
-
} | null>;
|
|
23
|
-
openPanel(panel: string): void;
|
|
24
|
-
closePanel(): void;
|
|
25
|
-
togglePanel(panel: string): void;
|
|
26
|
-
onScrollCompleted(): void;
|
|
27
|
-
}
|
|
28
|
-
export interface ShellStateUnitOptions {
|
|
29
|
-
initialPanel?: ToolbarPanelType | null;
|
|
30
|
-
onPanelChange?: (panel: ToolbarPanelType | null) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare function createShellStateUnit(browser: SemiontBrowser, options?: ShellStateUnitOptions): ShellStateUnit;
|
|
33
|
-
//# sourceMappingURL=shell-state-unit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shell-state-unit.d.ts","sourceRoot":"","sources":["../../src/state/shell-state-unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAmB,KAAK,UAAU,EAAqB,MAAM,MAAM,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AAExI,eAAO,MAAM,aAAa,EAAE,SAAS,gBAAgB,EAAoD,CAAC;AAC1G,eAAO,MAAM,eAAe,EAAE,SAAS,gBAAgB,EAA2E,CAAC;AAYnI,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,YAAY,EAAE,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAClD,qBAAqB,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,gBAAgB,EAAE,UAAU,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IACzE,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,IAAI,IAAI,CAAC;IACnB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,IAAI,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1D;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,cAAc,CA8C7G"}
|
package/dist/test-utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAU,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAW,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAwFrE;;GAEG;AACH,eAAO,MAAM,YAAY;wBAWlB,kBAAkB;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAaD,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACtG;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,yEAAyE;IACzE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAOD,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,YAAY,EAChB,OAAO,CAAC,EAAE,0BAA0B,GACnC,yBAAyB,CAgC3B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,GAAE,MAAgC,GAAG;IACtF,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;IACnE,iDAAiD;IACjD,QAAQ,EAAE,QAAQ,CAAC;IACnB,mDAAmD;IACnD,QAAQ,EAAE,QAAQ,CAAC;IACnB,mFAAmF;IACnF,MAAM,EAAE,aAAa,CAAC;CACvB,CAaA;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACnD,kBAAkB,CAMpB;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,GAAE;IACxD,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,2BAA2B,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,GAAG,cAAc,CA8CtB;AAGD,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Annotation, ResourceId, Selector } from '@semiont/core';
|
|
2
|
-
/**
|
|
3
|
-
* Parameters for creating an annotation
|
|
4
|
-
*/
|
|
5
|
-
export interface CreateAnnotationParams {
|
|
6
|
-
rUri: ResourceId;
|
|
7
|
-
motivation: 'highlighting' | 'linking' | 'assessing' | 'commenting' | 'tagging';
|
|
8
|
-
selector: Selector | Selector[];
|
|
9
|
-
body?: any[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Parameters for deleting an annotation
|
|
13
|
-
*/
|
|
14
|
-
export interface DeleteAnnotationParams {
|
|
15
|
-
annotationId: string;
|
|
16
|
-
rUri: ResourceId;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Annotation Manager Interface
|
|
20
|
-
*
|
|
21
|
-
* Framework-agnostic interface for annotation mutations.
|
|
22
|
-
* Apps provide implementations via AnnotationProvider.
|
|
23
|
-
*
|
|
24
|
-
* Example implementation:
|
|
25
|
-
* ```typescript
|
|
26
|
-
* function useAnnotationManager(client: SemiontClient): AnnotationManager {
|
|
27
|
-
* return {
|
|
28
|
-
* markAnnotation: async (params) => {
|
|
29
|
-
* const result = await client.mark.annotation({ target: { source: params.rUri, ... }, ... });
|
|
30
|
-
* return result.annotation;
|
|
31
|
-
* },
|
|
32
|
-
* deleteAnnotation: async (params) => {
|
|
33
|
-
* await client.mark.delete(params.rUri, params.annotationId);
|
|
34
|
-
* }
|
|
35
|
-
* };
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export interface AnnotationManager {
|
|
40
|
-
/**
|
|
41
|
-
* Create a new annotation
|
|
42
|
-
* @param params - Creation parameters (rUri, motivation, selector, body)
|
|
43
|
-
* @returns Promise resolving to the created annotation, or undefined if creation fails
|
|
44
|
-
*/
|
|
45
|
-
markAnnotation: (params: CreateAnnotationParams) => Promise<Annotation | undefined>;
|
|
46
|
-
/**
|
|
47
|
-
* Delete an annotation
|
|
48
|
-
* @param params - Deletion parameters (annotationId, rUri)
|
|
49
|
-
* @returns Promise resolving when deletion completes
|
|
50
|
-
*/
|
|
51
|
-
deleteAnnotation: (params: DeleteAnnotationParams) => Promise<void>;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=AnnotationManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationManager.d.ts","sourceRoot":"","sources":["../../src/types/AnnotationManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;IAChF,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAChC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAEpF;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Translation management interface
|
|
3
|
-
* Apps implement this to provide translations using their preferred i18n library
|
|
4
|
-
*/
|
|
5
|
-
export interface TranslationManager {
|
|
6
|
-
/**
|
|
7
|
-
* Translate a key within a namespace
|
|
8
|
-
* @param namespace - Translation namespace (e.g., 'Toolbar', 'ResourceViewer')
|
|
9
|
-
* @param key - Translation key within the namespace
|
|
10
|
-
* @param params - Optional parameters for interpolation
|
|
11
|
-
* @returns Translated string
|
|
12
|
-
*/
|
|
13
|
-
t: (namespace: string, key: string, params?: Record<string, any>) => string;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=TranslationManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationManager.d.ts","sourceRoot":"","sources":["../../src/types/TranslationManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC;CAC7E"}
|