@semiont/react-ui 0.5.2 → 0.5.4
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/{PdfAnnotationCanvas.client-5QESNO5H.mjs → PdfAnnotationCanvas.client-CN3C3S55.js} +2 -2
- package/dist/{ar-3W37O3R3.mjs → ar-U2EXWUMQ.js} +3 -21
- package/dist/ar-U2EXWUMQ.js.map +1 -0
- package/dist/assets/favicons/SemiontFavicon.d.ts +9 -0
- package/dist/assets/favicons/SemiontFavicon.d.ts.map +1 -0
- package/dist/assets/favicons/index.d.ts +12 -0
- package/dist/assets/favicons/index.d.ts.map +1 -0
- package/dist/{bn-JZTJLMVE.mjs → bn-DRJGV772.js} +3 -21
- package/dist/bn-DRJGV772.js.map +1 -0
- package/dist/{chunk-7VWNZ5YX.mjs → chunk-3Q3TUKWP.js} +32 -32
- package/dist/{chunk-NOD3NCXE.mjs → chunk-GERSK2DY.js} +3 -21
- package/dist/chunk-GERSK2DY.js.map +1 -0
- package/dist/{chunk-D4GAAQMM.mjs → chunk-K6BJDL2I.js} +1 -1
- package/dist/components/AnnotateReferencesProgressWidget.d.ts +15 -0
- package/dist/components/AnnotateReferencesProgressWidget.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +69 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/CodeMirrorRenderer.d.ts +25 -0
- package/dist/components/CodeMirrorRenderer.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.d.ts +30 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/LiveRegion.d.ts +41 -0
- package/dist/components/LiveRegion.d.ts.map +1 -0
- package/dist/components/ProtectedErrorBoundary.d.ts +27 -0
- package/dist/components/ProtectedErrorBoundary.d.ts.map +1 -0
- package/dist/components/ResizeHandle.d.ts +39 -0
- package/dist/components/ResizeHandle.d.ts.map +1 -0
- package/dist/components/ResourceTagsInline.d.ts +10 -0
- package/dist/components/ResourceTagsInline.d.ts.map +1 -0
- package/dist/components/SessionExpiryBanner.d.ts +2 -0
- package/dist/components/SessionExpiryBanner.d.ts.map +1 -0
- package/dist/components/SessionTimer.d.ts +2 -0
- package/dist/components/SessionTimer.d.ts.map +1 -0
- package/dist/components/StatusDisplay.d.ts +9 -0
- package/dist/components/StatusDisplay.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +27 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts +15 -0
- package/dist/components/Toolbar.d.ts.map +1 -0
- package/dist/components/UserMenuSkeleton.d.ts +2 -0
- package/dist/components/UserMenuSkeleton.d.ts.map +1 -0
- package/dist/components/annotation/AnnotateToolbar.d.ts +29 -0
- package/dist/components/annotation/AnnotateToolbar.d.ts.map +1 -0
- package/dist/components/annotation-popups/JsonLdView.d.ts +8 -0
- package/dist/components/annotation-popups/JsonLdView.d.ts.map +1 -0
- package/dist/components/annotation-popups/SharedPopupElements.d.ts +28 -0
- package/dist/components/annotation-popups/SharedPopupElements.d.ts.map +1 -0
- package/dist/components/branding/SemiontBranding.d.ts +13 -0
- package/dist/components/branding/SemiontBranding.d.ts.map +1 -0
- package/dist/components/error-states/ResourceErrorState.d.ts +11 -0
- package/dist/components/error-states/ResourceErrorState.d.ts.map +1 -0
- package/dist/components/image-annotation/AnnotationOverlay.d.ts +22 -0
- package/dist/components/image-annotation/AnnotationOverlay.d.ts.map +1 -0
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts +23 -0
- package/dist/components/image-annotation/SvgDrawingCanvas.d.ts.map +1 -0
- package/dist/components/layout/LeftSidebar.d.ts +24 -0
- package/dist/components/layout/LeftSidebar.d.ts.map +1 -0
- package/dist/components/layout/PageLayout.d.ts +21 -0
- package/dist/components/layout/PageLayout.d.ts.map +1 -0
- package/dist/components/layout/SkipLinks.d.ts +8 -0
- package/dist/components/layout/SkipLinks.d.ts.map +1 -0
- package/dist/components/layout/UnifiedHeader.d.ts +21 -0
- package/dist/components/layout/UnifiedHeader.d.ts.map +1 -0
- package/dist/components/loading-states/ComposeLoadingState.d.ts +10 -0
- package/dist/components/loading-states/ComposeLoadingState.d.ts.map +1 -0
- package/dist/components/loading-states/ResourceLoadingState.d.ts +7 -0
- package/dist/components/loading-states/ResourceLoadingState.d.ts.map +1 -0
- package/dist/components/modals/ConfigureGenerationStep.d.ts +36 -0
- package/dist/components/modals/ConfigureGenerationStep.d.ts.map +1 -0
- package/dist/components/modals/ConfigureSearchStep.d.ts +21 -0
- package/dist/components/modals/ConfigureSearchStep.d.ts.map +1 -0
- package/dist/components/modals/ContextSummary.d.ts +14 -0
- package/dist/components/modals/ContextSummary.d.ts.map +1 -0
- package/dist/components/modals/GatherContextStep.d.ts +23 -0
- package/dist/components/modals/GatherContextStep.d.ts.map +1 -0
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts +8 -0
- package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts.map +1 -0
- package/dist/components/modals/PermissionDeniedModal.d.ts +12 -0
- package/dist/components/modals/PermissionDeniedModal.d.ts.map +1 -0
- package/dist/components/modals/ReferenceWizardModal.d.ts +64 -0
- package/dist/components/modals/ReferenceWizardModal.d.ts.map +1 -0
- package/dist/components/modals/ResourceSearchModal.d.ts +16 -0
- package/dist/components/modals/ResourceSearchModal.d.ts.map +1 -0
- package/dist/components/modals/SearchModal.d.ts +20 -0
- package/dist/components/modals/SearchModal.d.ts.map +1 -0
- package/dist/components/modals/SearchResultsStep.d.ts +22 -0
- package/dist/components/modals/SearchResultsStep.d.ts.map +1 -0
- package/dist/components/modals/SessionExpiredModal.d.ts +12 -0
- package/dist/components/modals/SessionExpiredModal.d.ts.map +1 -0
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts +13 -0
- package/dist/components/navigation/CollapsibleResourceNavigation.d.ts.map +1 -0
- package/dist/components/navigation/Footer.d.ts +20 -0
- package/dist/components/navigation/Footer.d.ts.map +1 -0
- package/dist/components/navigation/NavigationMenu.d.ts +18 -0
- package/dist/components/navigation/NavigationMenu.d.ts.map +1 -0
- package/dist/components/navigation/ObservableLink.d.ts +52 -0
- package/dist/components/navigation/ObservableLink.d.ts.map +1 -0
- package/dist/components/navigation/SimpleNavigation.d.ts +35 -0
- package/dist/components/navigation/SimpleNavigation.d.ts.map +1 -0
- package/dist/components/navigation/SortableResourceTab.d.ts +7 -0
- package/dist/components/navigation/SortableResourceTab.d.ts.map +1 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts +8 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts.map +1 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts +25 -0
- package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts.map +1 -0
- package/dist/components/resource/AnnotateView.d.ts +29 -0
- package/dist/components/resource/AnnotateView.d.ts.map +1 -0
- package/dist/components/resource/AnnotationHistory.d.ts +14 -0
- package/dist/components/resource/AnnotationHistory.d.ts.map +1 -0
- package/dist/components/resource/BrowseView.d.ts +28 -0
- package/dist/components/resource/BrowseView.d.ts.map +1 -0
- package/dist/components/resource/HistoryEvent.d.ts +19 -0
- package/dist/components/resource/HistoryEvent.d.ts.map +1 -0
- package/dist/components/resource/ResourceViewer.d.ts +46 -0
- package/dist/components/resource/ResourceViewer.d.ts.map +1 -0
- package/dist/components/resource/event-formatting.d.ts +61 -0
- package/dist/components/resource/event-formatting.d.ts.map +1 -0
- package/dist/components/resource/panels/AssessmentEntry.d.ts +11 -0
- package/dist/components/resource/panels/AssessmentEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/AssessmentPanel.d.ts +32 -0
- package/dist/components/resource/panels/AssessmentPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/AssistSection.d.ts +27 -0
- package/dist/components/resource/panels/AssistSection.d.ts.map +1 -0
- package/dist/components/resource/panels/CollaborationPanel.d.ts +28 -0
- package/dist/components/resource/panels/CollaborationPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/CommentEntry.d.ts +12 -0
- package/dist/components/resource/panels/CommentEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/CommentsPanel.d.ts +32 -0
- package/dist/components/resource/panels/CommentsPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/HighlightEntry.d.ts +11 -0
- package/dist/components/resource/panels/HighlightEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/HighlightPanel.d.ts +30 -0
- package/dist/components/resource/panels/HighlightPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/JsonLdPanel.d.ts +9 -0
- package/dist/components/resource/panels/JsonLdPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/PanelHeader.d.ts +13 -0
- package/dist/components/resource/panels/PanelHeader.d.ts.map +1 -0
- package/dist/components/resource/panels/ReferenceEntry.d.ts +15 -0
- package/dist/components/resource/panels/ReferenceEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/ReferencesPanel.d.ts +43 -0
- package/dist/components/resource/panels/ReferencesPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts +27 -0
- package/dist/components/resource/panels/ResourceInfoPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/StatisticsPanel.d.ts +12 -0
- package/dist/components/resource/panels/StatisticsPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/TagEntry.d.ts +11 -0
- package/dist/components/resource/panels/TagEntry.d.ts.map +1 -0
- package/dist/components/resource/panels/TaggingPanel.d.ts +34 -0
- package/dist/components/resource/panels/TaggingPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts +52 -0
- package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts.map +1 -0
- package/dist/components/resource/panels/agent-label.d.ts +11 -0
- package/dist/components/resource/panels/agent-label.d.ts.map +1 -0
- package/dist/components/settings/SettingsPanel.d.ts +19 -0
- package/dist/components/settings/SettingsPanel.d.ts.map +1 -0
- package/dist/components/viewers/ImageViewer.d.ts +8 -0
- package/dist/components/viewers/ImageViewer.d.ts.map +1 -0
- package/dist/components/viewers/index.d.ts +2 -0
- package/dist/components/viewers/index.d.ts.map +1 -0
- package/dist/contexts/AnnotationContext.d.ts +46 -0
- package/dist/contexts/AnnotationContext.d.ts.map +1 -0
- package/dist/contexts/ResourceAnnotationsContext.d.ts +14 -0
- package/dist/contexts/ResourceAnnotationsContext.d.ts.map +1 -0
- package/dist/contexts/RoutingContext.d.ts +59 -0
- package/dist/contexts/RoutingContext.d.ts.map +1 -0
- package/dist/contexts/ThemeContext.d.ts +15 -0
- package/dist/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/contexts/TranslationContext.d.ts +51 -0
- package/dist/contexts/TranslationContext.d.ts.map +1 -0
- package/dist/contexts/useEventSubscription.d.ts +41 -0
- package/dist/contexts/useEventSubscription.d.ts.map +1 -0
- package/dist/{cs-XYHH7HNE.mjs → cs-PTWDM23V.js} +3 -21
- package/dist/cs-PTWDM23V.js.map +1 -0
- package/dist/{da-MZKIECVT.mjs → da-KSNIKYSS.js} +3 -21
- package/dist/da-KSNIKYSS.js.map +1 -0
- package/dist/{de-AYXTMRQW.mjs → de-F2XBEWFY.js} +3 -21
- package/dist/de-F2XBEWFY.js.map +1 -0
- package/dist/design-tokens/index.d.ts +178 -0
- package/dist/design-tokens/index.d.ts.map +1 -0
- package/dist/{el-A6CVQWAW.mjs → el-DLD2GWAP.js} +3 -21
- package/dist/el-DLD2GWAP.js.map +1 -0
- package/dist/{en-YPQQBI4T.mjs → en-L45VK7BS.js} +3 -3
- package/dist/{es-M2HXLJGT.mjs → es-WLPYWGB5.js} +3 -21
- package/dist/es-WLPYWGB5.js.map +1 -0
- package/dist/{fa-V6JZJDYP.mjs → fa-BAXHSDZG.js} +3 -21
- package/dist/fa-BAXHSDZG.js.map +1 -0
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts +33 -0
- package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts +37 -0
- package/dist/features/admin-exchange/components/AdminExchangePage.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/ExportCard.d.ts +18 -0
- package/dist/features/admin-exchange/components/ExportCard.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/ImportCard.d.ts +32 -0
- package/dist/features/admin-exchange/components/ImportCard.d.ts.map +1 -0
- package/dist/features/admin-exchange/components/ImportProgress.d.ts +26 -0
- package/dist/features/admin-exchange/components/ImportProgress.d.ts.map +1 -0
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts +31 -0
- package/dist/features/admin-exchange/state/exchange-state-unit.d.ts.map +1 -0
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts +42 -0
- package/dist/features/admin-security/components/AdminSecurityPage.d.ts.map +1 -0
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts +12 -0
- package/dist/features/admin-security/state/admin-security-state-unit.d.ts.map +1 -0
- package/dist/features/admin-users/components/AdminUsersPage.d.ts +88 -0
- package/dist/features/admin-users/components/AdminUsersPage.d.ts.map +1 -0
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts +17 -0
- package/dist/features/admin-users/state/admin-users-state-unit.d.ts.map +1 -0
- package/dist/features/auth/components/AuthErrorDisplay.d.ts +34 -0
- package/dist/features/auth/components/AuthErrorDisplay.d.ts.map +1 -0
- package/dist/features/auth/components/SignInForm.d.ts +80 -0
- package/dist/features/auth/components/SignInForm.d.ts.map +1 -0
- package/dist/features/auth/components/SignUpForm.d.ts +39 -0
- package/dist/features/auth/components/SignUpForm.d.ts.map +1 -0
- package/dist/features/auth-welcome/components/WelcomePage.d.ts +62 -0
- package/dist/features/auth-welcome/components/WelcomePage.d.ts.map +1 -0
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts +12 -0
- package/dist/features/auth-welcome/state/welcome-state-unit.d.ts.map +1 -0
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts +32 -0
- package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts.map +1 -0
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts +16 -0
- package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts.map +1 -0
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts +27 -0
- package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts.map +1 -0
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts +25 -0
- package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts.map +1 -0
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts +38 -0
- package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts.map +1 -0
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts +83 -0
- package/dist/features/resource-compose/components/ResourceComposePage.d.ts.map +1 -0
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts +23 -0
- package/dist/features/resource-compose/components/UploadProgressBar.d.ts.map +1 -0
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts +59 -0
- package/dist/features/resource-compose/state/compose-page-state-unit.d.ts.map +1 -0
- package/dist/features/resource-discovery/components/ResourceCard.d.ts +17 -0
- package/dist/features/resource-discovery/components/ResourceCard.d.ts.map +1 -0
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts +43 -0
- package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts.map +1 -0
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts +15 -0
- package/dist/features/resource-discovery/state/discover-state-unit.d.ts.map +1 -0
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts +80 -0
- package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts.map +1 -0
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts +11 -0
- package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts.map +1 -0
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts +48 -0
- package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts.map +1 -0
- package/dist/{fi-ONDTZ5H7.mjs → fi-FCHSYVOT.js} +3 -21
- package/dist/fi-FCHSYVOT.js.map +1 -0
- package/dist/{fr-PAPV4H4G.mjs → fr-3UERBSL6.js} +3 -21
- package/dist/fr-3UERBSL6.js.map +1 -0
- package/dist/{he-F6VTLJLW.mjs → he-F6F3FV2K.js} +3 -21
- package/dist/he-F6F3FV2K.js.map +1 -0
- package/dist/{hi-CFUAV4BF.mjs → hi-4BK6IK7Q.js} +3 -21
- package/dist/hi-4BK6IK7Q.js.map +1 -0
- package/dist/hooks/useDebounce.d.ts +29 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDragAnnouncements.d.ts +12 -0
- package/dist/hooks/useDragAnnouncements.d.ts.map +1 -0
- package/dist/hooks/useHoverDelay.d.ts +8 -0
- package/dist/hooks/useHoverDelay.d.ts.map +1 -0
- package/dist/hooks/useHoverEmitter.d.ts +8 -0
- package/dist/hooks/useHoverEmitter.d.ts.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +29 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/hooks/useLineNumbers.d.ts +8 -0
- package/dist/hooks/useLineNumbers.d.ts.map +1 -0
- package/dist/hooks/useMediaToken.d.ts +7 -0
- package/dist/hooks/useMediaToken.d.ts.map +1 -0
- package/dist/hooks/useObservable.d.ts +23 -0
- package/dist/hooks/useObservable.d.ts.map +1 -0
- package/dist/hooks/useObservableBrowse.d.ts +70 -0
- package/dist/hooks/useObservableBrowse.d.ts.map +1 -0
- package/dist/hooks/usePanelWidth.d.ts +37 -0
- package/dist/hooks/usePanelWidth.d.ts.map +1 -0
- package/dist/hooks/useResourceContent.d.ts +7 -0
- package/dist/hooks/useResourceContent.d.ts.map +1 -0
- package/dist/hooks/useRovingTabIndex.d.ts +13 -0
- package/dist/hooks/useRovingTabIndex.d.ts.map +1 -0
- package/dist/hooks/useSearchAnnouncements.d.ts +10 -0
- package/dist/hooks/useSearchAnnouncements.d.ts.map +1 -0
- package/dist/hooks/useSessionExpiry.d.ts +10 -0
- package/dist/hooks/useSessionExpiry.d.ts.map +1 -0
- package/dist/hooks/useShellStateUnit.d.ts +9 -0
- package/dist/hooks/useShellStateUnit.d.ts.map +1 -0
- package/dist/hooks/useStateUnit.d.ts +3 -0
- package/dist/hooks/useStateUnit.d.ts.map +1 -0
- package/dist/hooks/useUI.d.ts +24 -0
- package/dist/hooks/useUI.d.ts.map +1 -0
- package/dist/{id-NBKLCCI7.mjs → id-7ECCWP3J.js} +3 -21
- package/dist/id-7ECCWP3J.js.map +1 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/{index.mjs → index.js} +155 -305
- package/dist/index.js.map +1 -0
- package/dist/integrations/css-modules-helper.d.ts +114 -0
- package/dist/integrations/css-modules-helper.d.ts.map +1 -0
- package/dist/integrations/styled-components-theme.d.ts +95 -0
- package/dist/integrations/styled-components-theme.d.ts.map +1 -0
- package/dist/integrations/tailwind-plugin.d.cts +3 -0
- package/dist/integrations/tailwind-plugin.d.cts.map +1 -0
- package/dist/{it-SLSOWVVU.mjs → it-234Z6XK6.js} +3 -21
- package/dist/it-234Z6XK6.js.map +1 -0
- package/dist/{ja-L5IG4ECE.mjs → ja-PJWQI4OQ.js} +3 -21
- package/dist/ja-PJWQI4OQ.js.map +1 -0
- package/dist/{ko-QYMTULKK.mjs → ko-APUEW2RS.js} +3 -21
- package/dist/ko-APUEW2RS.js.map +1 -0
- package/dist/lib/annotation-overlay.d.ts +71 -0
- package/dist/lib/annotation-overlay.d.ts.map +1 -0
- package/dist/lib/annotation-registry.d.ts +62 -0
- package/dist/lib/annotation-registry.d.ts.map +1 -0
- package/dist/lib/browser-pdfjs.d.ts +93 -0
- package/dist/lib/browser-pdfjs.d.ts.map +1 -0
- package/dist/lib/button-styles.d.ts +27 -0
- package/dist/lib/button-styles.d.ts.map +1 -0
- package/dist/lib/codemirror-handlers.d.ts +52 -0
- package/dist/lib/codemirror-handlers.d.ts.map +1 -0
- package/dist/lib/codemirror-json-theme.d.ts +8 -0
- package/dist/lib/codemirror-json-theme.d.ts.map +1 -0
- package/dist/lib/codemirror-logic.d.ts +66 -0
- package/dist/lib/codemirror-logic.d.ts.map +1 -0
- package/dist/lib/codemirror-widgets.d.ts +39 -0
- package/dist/lib/codemirror-widgets.d.ts.map +1 -0
- package/dist/lib/formatTime.d.ts +2 -0
- package/dist/lib/formatTime.d.ts.map +1 -0
- package/dist/lib/media-shapes.d.ts +51 -0
- package/dist/lib/media-shapes.d.ts.map +1 -0
- package/dist/lib/pdf-coordinates.d.ts +69 -0
- package/dist/lib/pdf-coordinates.d.ts.map +1 -0
- package/dist/lib/resource-utils.d.ts +22 -0
- package/dist/lib/resource-utils.d.ts.map +1 -0
- package/dist/lib/scroll-utils.d.ts +20 -0
- package/dist/lib/scroll-utils.d.ts.map +1 -0
- package/dist/lib/text-segmentation.d.ts +25 -0
- package/dist/lib/text-segmentation.d.ts.map +1 -0
- package/dist/lib/text-selection-handler.d.ts +46 -0
- package/dist/lib/text-selection-handler.d.ts.map +1 -0
- package/dist/lib/validation.d.ts +47 -0
- package/dist/lib/validation.d.ts.map +1 -0
- package/dist/{ms-5DGSFKM2.mjs → ms-PJBZWZWD.js} +3 -21
- package/dist/ms-PJBZWZWD.js.map +1 -0
- package/dist/{nl-VZPCGONO.mjs → nl-L4C3ZBCU.js} +3 -21
- package/dist/nl-L4C3ZBCU.js.map +1 -0
- package/dist/{no-MF6F352I.mjs → no-QE5N5KNG.js} +3 -21
- package/dist/no-QE5N5KNG.js.map +1 -0
- package/dist/{pl-WIK72JUO.mjs → pl-5Q2D23PD.js} +3 -21
- package/dist/pl-5Q2D23PD.js.map +1 -0
- package/dist/{pt-RRP5ZF6A.mjs → pt-AIGUOIOC.js} +3 -21
- package/dist/pt-AIGUOIOC.js.map +1 -0
- package/dist/{ro-XHQLC3T7.mjs → ro-T56CSHTY.js} +3 -21
- package/dist/ro-T56CSHTY.js.map +1 -0
- package/dist/session/SemiontProvider.d.ts +28 -0
- package/dist/session/SemiontProvider.d.ts.map +1 -0
- package/dist/session/web-browser-storage.d.ts +19 -0
- package/dist/session/web-browser-storage.d.ts.map +1 -0
- package/dist/state/session-state-unit.d.ts +9 -0
- package/dist/state/session-state-unit.d.ts.map +1 -0
- package/dist/state/shell-state-unit.d.ts +33 -0
- package/dist/state/shell-state-unit.d.ts.map +1 -0
- package/dist/{sv-EWULDN6E.mjs → sv-L4TJQ2UH.js} +3 -21
- package/dist/sv-L4TJQ2UH.js.map +1 -0
- package/dist/{test-utils.d.mts → test-utils.d.ts} +18 -21
- package/dist/test-utils.d.ts.map +1 -0
- package/dist/{test-utils.mjs → test-utils.js} +5 -5
- package/dist/{th-TGOBHFG4.mjs → th-6O7Y6O2Q.js} +3 -21
- package/dist/th-6O7Y6O2Q.js.map +1 -0
- package/dist/{tr-LMMPBMV7.mjs → tr-D4CQCSNO.js} +3 -21
- package/dist/tr-D4CQCSNO.js.map +1 -0
- package/dist/types/AnnotationManager.d.ts +53 -0
- package/dist/types/AnnotationManager.d.ts.map +1 -0
- package/dist/{TranslationManager-9Xj3MIWQ.d.mts → types/TranslationManager.d.ts} +2 -3
- package/dist/types/TranslationManager.d.ts.map +1 -0
- package/dist/types/annotation-props.d.ts +108 -0
- package/dist/types/annotation-props.d.ts.map +1 -0
- package/dist/types/collapsible-navigation.d.ts +69 -0
- package/dist/types/collapsible-navigation.d.ts.map +1 -0
- package/dist/types/modals.d.ts +77 -0
- package/dist/types/modals.d.ts.map +1 -0
- package/dist/types/navigation.d.ts +35 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/dist/types/resource-viewer.d.ts +19 -0
- package/dist/types/resource-viewer.d.ts.map +1 -0
- package/dist/types/simple-navigation.d.ts +15 -0
- package/dist/types/simple-navigation.d.ts.map +1 -0
- package/dist/types/translation.d.ts +5 -0
- package/dist/types/translation.d.ts.map +1 -0
- package/dist/{uk-IPGRRJY6.mjs → uk-2HMQG6ND.js} +3 -21
- package/dist/uk-2HMQG6ND.js.map +1 -0
- package/dist/{vi-Q676OJQS.mjs → vi-XVJ4RUEJ.js} +3 -21
- package/dist/vi-XVJ4RUEJ.js.map +1 -0
- package/dist/{zh-F3MTWQDX.mjs → zh-K2KDPGHK.js} +3 -21
- package/dist/zh-K2KDPGHK.js.map +1 -0
- package/package.json +19 -18
- package/src/components/resource/HistoryEvent.tsx +0 -3
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +1 -4
- package/src/components/resource/__tests__/event-formatting.test.ts +2 -14
- package/src/components/resource/event-formatting.ts +3 -4
- package/src/components/resource/panels/AssessmentEntry.tsx +4 -1
- package/src/components/resource/panels/CommentEntry.tsx +4 -1
- package/src/components/resource/panels/HighlightEntry.tsx +4 -1
- package/src/components/resource/panels/ReferenceEntry.tsx +4 -1
- package/src/components/resource/panels/ResourceInfoPanel.tsx +11 -23
- package/src/components/resource/panels/TagEntry.tsx +17 -3
- package/src/components/resource/panels/TaggingPanel.tsx +83 -41
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +2 -2
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +12 -16
- package/src/components/resource/panels/__tests__/TagEntry.test.tsx +26 -19
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +128 -38
- package/src/components/resource/panels/__tests__/agent-label.test.ts +93 -0
- package/src/components/resource/panels/agent-label.ts +20 -0
- package/src/features/moderate-tag-schemas/components/TagSchemasPage.tsx +3 -3
- package/src/features/resource-compose/state/compose-page-state-unit.ts +0 -1
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +0 -1
- package/translations/ar.json +1 -19
- package/translations/bn.json +1 -19
- package/translations/cs.json +1 -19
- package/translations/da.json +1 -19
- package/translations/de.json +1 -19
- package/translations/el.json +1 -19
- package/translations/en.json +3 -21
- package/translations/es.json +1 -19
- package/translations/fa.json +1 -19
- package/translations/fi.json +1 -19
- package/translations/fr.json +1 -19
- package/translations/he.json +1 -19
- package/translations/hi.json +1 -19
- package/translations/id.json +1 -19
- package/translations/it.json +1 -19
- package/translations/ja.json +1 -19
- package/translations/ko.json +1 -19
- package/translations/ms.json +1 -19
- package/translations/nl.json +1 -19
- package/translations/no.json +1 -19
- package/translations/pl.json +1 -19
- package/translations/pt.json +1 -19
- package/translations/ro.json +1 -19
- package/translations/sv.json +1 -19
- package/translations/th.json +1 -19
- package/translations/tr.json +1 -19
- package/translations/uk.json +1 -19
- package/translations/vi.json +1 -19
- package/translations/zh.json +1 -19
- package/dist/ar-3W37O3R3.mjs.map +0 -1
- package/dist/bn-JZTJLMVE.mjs.map +0 -1
- package/dist/chunk-NOD3NCXE.mjs.map +0 -1
- package/dist/cs-XYHH7HNE.mjs.map +0 -1
- package/dist/da-MZKIECVT.mjs.map +0 -1
- package/dist/de-AYXTMRQW.mjs.map +0 -1
- package/dist/el-A6CVQWAW.mjs.map +0 -1
- package/dist/es-M2HXLJGT.mjs.map +0 -1
- package/dist/fa-V6JZJDYP.mjs.map +0 -1
- package/dist/fi-ONDTZ5H7.mjs.map +0 -1
- package/dist/fr-PAPV4H4G.mjs.map +0 -1
- package/dist/he-F6VTLJLW.mjs.map +0 -1
- package/dist/hi-CFUAV4BF.mjs.map +0 -1
- package/dist/id-NBKLCCI7.mjs.map +0 -1
- package/dist/index.d.mts +0 -3548
- package/dist/index.mjs.map +0 -1
- package/dist/it-SLSOWVVU.mjs.map +0 -1
- package/dist/ja-L5IG4ECE.mjs.map +0 -1
- package/dist/ko-QYMTULKK.mjs.map +0 -1
- package/dist/ms-5DGSFKM2.mjs.map +0 -1
- package/dist/nl-VZPCGONO.mjs.map +0 -1
- package/dist/no-MF6F352I.mjs.map +0 -1
- package/dist/pl-WIK72JUO.mjs.map +0 -1
- package/dist/pt-RRP5ZF6A.mjs.map +0 -1
- package/dist/ro-XHQLC3T7.mjs.map +0 -1
- package/dist/sv-EWULDN6E.mjs.map +0 -1
- package/dist/th-TGOBHFG4.mjs.map +0 -1
- package/dist/tr-LMMPBMV7.mjs.map +0 -1
- package/dist/uk-IPGRRJY6.mjs.map +0 -1
- package/dist/vi-Q676OJQS.mjs.map +0 -1
- package/dist/zh-F3MTWQDX.mjs.map +0 -1
- /package/dist/{PdfAnnotationCanvas.client-5QESNO5H.mjs.map → PdfAnnotationCanvas.client-CN3C3S55.js.map} +0 -0
- /package/dist/{chunk-7VWNZ5YX.mjs.map → chunk-3Q3TUKWP.js.map} +0 -0
- /package/dist/{chunk-D4GAAQMM.mjs.map → chunk-K6BJDL2I.js.map} +0 -0
- /package/dist/{en-YPQQBI4T.mjs.map → en-L45VK7BS.js.map} +0 -0
- /package/dist/{test-utils.mjs.map → test-utils.js.map} +0 -0
- /package/src/integrations/{tailwind-plugin.js → tailwind-plugin.cjs} +0 -0
|
@@ -124,13 +124,13 @@ import {
|
|
|
124
124
|
useSemiont,
|
|
125
125
|
useToast,
|
|
126
126
|
useTranslations
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-
|
|
127
|
+
} from "./chunk-3Q3TUKWP.js";
|
|
128
|
+
import "./chunk-GERSK2DY.js";
|
|
129
129
|
import {
|
|
130
130
|
__commonJS,
|
|
131
131
|
__export,
|
|
132
132
|
__toESM
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-K6BJDL2I.js";
|
|
134
134
|
|
|
135
135
|
// ../../node_modules/inline-style-parser/cjs/index.js
|
|
136
136
|
var require_cjs2 = __commonJS({
|
|
@@ -17709,212 +17709,6 @@ function supportsDetection(mediaType) {
|
|
|
17709
17709
|
return baseType.startsWith("text/");
|
|
17710
17710
|
}
|
|
17711
17711
|
|
|
17712
|
-
// ../ontology/dist/index.js
|
|
17713
|
-
var TAG_SCHEMAS = {
|
|
17714
|
-
"legal-irac": {
|
|
17715
|
-
id: "legal-irac",
|
|
17716
|
-
name: "Legal Analysis (IRAC)",
|
|
17717
|
-
description: "Issue, Rule, Application, Conclusion framework for legal reasoning",
|
|
17718
|
-
domain: "legal",
|
|
17719
|
-
tags: [
|
|
17720
|
-
{
|
|
17721
|
-
name: "Issue",
|
|
17722
|
-
description: "The legal question or problem to be resolved",
|
|
17723
|
-
examples: [
|
|
17724
|
-
"What is the central legal question?",
|
|
17725
|
-
"What must the court decide?",
|
|
17726
|
-
"What is the dispute about?"
|
|
17727
|
-
]
|
|
17728
|
-
},
|
|
17729
|
-
{
|
|
17730
|
-
name: "Rule",
|
|
17731
|
-
description: "The relevant law, statute, or legal principle",
|
|
17732
|
-
examples: [
|
|
17733
|
-
"What law applies?",
|
|
17734
|
-
"What is the legal standard?",
|
|
17735
|
-
"What statute governs this case?"
|
|
17736
|
-
]
|
|
17737
|
-
},
|
|
17738
|
-
{
|
|
17739
|
-
name: "Application",
|
|
17740
|
-
description: "How the rule applies to the specific facts",
|
|
17741
|
-
examples: [
|
|
17742
|
-
"How does the law apply to these facts?",
|
|
17743
|
-
"Analysis of the case",
|
|
17744
|
-
"How do the facts satisfy the legal standard?"
|
|
17745
|
-
]
|
|
17746
|
-
},
|
|
17747
|
-
{
|
|
17748
|
-
name: "Conclusion",
|
|
17749
|
-
description: "The resolution or outcome based on the analysis",
|
|
17750
|
-
examples: [
|
|
17751
|
-
"What is the court's decision?",
|
|
17752
|
-
"What is the final judgment?",
|
|
17753
|
-
"What is the holding?"
|
|
17754
|
-
]
|
|
17755
|
-
}
|
|
17756
|
-
]
|
|
17757
|
-
},
|
|
17758
|
-
"scientific-imrad": {
|
|
17759
|
-
id: "scientific-imrad",
|
|
17760
|
-
name: "Scientific Paper (IMRAD)",
|
|
17761
|
-
description: "Introduction, Methods, Results, Discussion structure for research papers",
|
|
17762
|
-
domain: "scientific",
|
|
17763
|
-
tags: [
|
|
17764
|
-
{
|
|
17765
|
-
name: "Introduction",
|
|
17766
|
-
description: "Background, context, and research question",
|
|
17767
|
-
examples: [
|
|
17768
|
-
"What is the research question?",
|
|
17769
|
-
"Why is this important?",
|
|
17770
|
-
"What is the hypothesis?"
|
|
17771
|
-
]
|
|
17772
|
-
},
|
|
17773
|
-
{
|
|
17774
|
-
name: "Methods",
|
|
17775
|
-
description: "Experimental design and procedures",
|
|
17776
|
-
examples: [
|
|
17777
|
-
"How was the study conducted?",
|
|
17778
|
-
"What methods were used?",
|
|
17779
|
-
"What was the experimental design?"
|
|
17780
|
-
]
|
|
17781
|
-
},
|
|
17782
|
-
{
|
|
17783
|
-
name: "Results",
|
|
17784
|
-
description: "Findings and observations",
|
|
17785
|
-
examples: [
|
|
17786
|
-
"What did the study find?",
|
|
17787
|
-
"What are the data?",
|
|
17788
|
-
"What were the observations?"
|
|
17789
|
-
]
|
|
17790
|
-
},
|
|
17791
|
-
{
|
|
17792
|
-
name: "Discussion",
|
|
17793
|
-
description: "Interpretation and implications of results",
|
|
17794
|
-
examples: [
|
|
17795
|
-
"What do the results mean?",
|
|
17796
|
-
"What are the implications?",
|
|
17797
|
-
"How do these findings relate to prior work?"
|
|
17798
|
-
]
|
|
17799
|
-
}
|
|
17800
|
-
]
|
|
17801
|
-
},
|
|
17802
|
-
"argument-toulmin": {
|
|
17803
|
-
id: "argument-toulmin",
|
|
17804
|
-
name: "Argument Structure (Toulmin)",
|
|
17805
|
-
description: "Claim, Evidence, Warrant, Counterargument, Rebuttal framework for argumentation",
|
|
17806
|
-
domain: "general",
|
|
17807
|
-
tags: [
|
|
17808
|
-
{
|
|
17809
|
-
name: "Claim",
|
|
17810
|
-
description: "The main assertion or thesis",
|
|
17811
|
-
examples: [
|
|
17812
|
-
"What is being argued?",
|
|
17813
|
-
"What is the main point?",
|
|
17814
|
-
"What position is being taken?"
|
|
17815
|
-
]
|
|
17816
|
-
},
|
|
17817
|
-
{
|
|
17818
|
-
name: "Evidence",
|
|
17819
|
-
description: "Data or facts supporting the claim",
|
|
17820
|
-
examples: [
|
|
17821
|
-
"What supports this claim?",
|
|
17822
|
-
"What are the facts?",
|
|
17823
|
-
"What data is provided?"
|
|
17824
|
-
]
|
|
17825
|
-
},
|
|
17826
|
-
{
|
|
17827
|
-
name: "Warrant",
|
|
17828
|
-
description: "Reasoning connecting evidence to claim",
|
|
17829
|
-
examples: [
|
|
17830
|
-
"Why does this evidence support the claim?",
|
|
17831
|
-
"What is the logic?",
|
|
17832
|
-
"How does this reasoning work?"
|
|
17833
|
-
]
|
|
17834
|
-
},
|
|
17835
|
-
{
|
|
17836
|
-
name: "Counterargument",
|
|
17837
|
-
description: "Opposing viewpoints or objections",
|
|
17838
|
-
examples: [
|
|
17839
|
-
"What are the objections?",
|
|
17840
|
-
"What do critics say?",
|
|
17841
|
-
"What are alternative views?"
|
|
17842
|
-
]
|
|
17843
|
-
},
|
|
17844
|
-
{
|
|
17845
|
-
name: "Rebuttal",
|
|
17846
|
-
description: "Response to counterarguments",
|
|
17847
|
-
examples: [
|
|
17848
|
-
"How is the objection addressed?",
|
|
17849
|
-
"Why is the counterargument wrong?",
|
|
17850
|
-
"How is the criticism answered?"
|
|
17851
|
-
]
|
|
17852
|
-
}
|
|
17853
|
-
]
|
|
17854
|
-
}
|
|
17855
|
-
};
|
|
17856
|
-
function getTagSchema(schemaId) {
|
|
17857
|
-
return TAG_SCHEMAS[schemaId] || null;
|
|
17858
|
-
}
|
|
17859
|
-
function getAllTagSchemas() {
|
|
17860
|
-
return Object.values(TAG_SCHEMAS);
|
|
17861
|
-
}
|
|
17862
|
-
function getTagSchemasByDomain(domain2) {
|
|
17863
|
-
return Object.values(TAG_SCHEMAS).filter((schema) => schema.domain === domain2);
|
|
17864
|
-
}
|
|
17865
|
-
function isValidCategory(schemaId, categoryName) {
|
|
17866
|
-
const schema = getTagSchema(schemaId);
|
|
17867
|
-
if (!schema) return false;
|
|
17868
|
-
return schema.tags.some((tag) => tag.name === categoryName);
|
|
17869
|
-
}
|
|
17870
|
-
function getSchemaCategory(schemaId, categoryName) {
|
|
17871
|
-
const schema = getTagSchema(schemaId);
|
|
17872
|
-
if (!schema) return null;
|
|
17873
|
-
return schema.tags.find((tag) => tag.name === categoryName) || null;
|
|
17874
|
-
}
|
|
17875
|
-
function getEntityTypes(annotation) {
|
|
17876
|
-
if (Array.isArray(annotation.body)) {
|
|
17877
|
-
const entityTags = [];
|
|
17878
|
-
for (const item of annotation.body) {
|
|
17879
|
-
if (typeof item === "object" && item !== null && "type" in item && "value" in item && "purpose" in item) {
|
|
17880
|
-
const itemType = item.type;
|
|
17881
|
-
const itemValue = item.value;
|
|
17882
|
-
const itemPurpose = item.purpose;
|
|
17883
|
-
if (itemType === "TextualBody" && itemPurpose === "tagging" && typeof itemValue === "string" && itemValue.length > 0) {
|
|
17884
|
-
entityTags.push(itemValue);
|
|
17885
|
-
}
|
|
17886
|
-
}
|
|
17887
|
-
}
|
|
17888
|
-
return entityTags;
|
|
17889
|
-
}
|
|
17890
|
-
return [];
|
|
17891
|
-
}
|
|
17892
|
-
function isTag2(annotation) {
|
|
17893
|
-
return annotation.motivation === "tagging";
|
|
17894
|
-
}
|
|
17895
|
-
function getTagCategory(annotation) {
|
|
17896
|
-
if (!isTag2(annotation)) return void 0;
|
|
17897
|
-
const bodies = Array.isArray(annotation.body) ? annotation.body : [annotation.body];
|
|
17898
|
-
const taggingBody = bodies.find(
|
|
17899
|
-
(b8) => b8 !== null && typeof b8 === "object" && "purpose" in b8 && b8.purpose === "tagging"
|
|
17900
|
-
);
|
|
17901
|
-
if (taggingBody && "value" in taggingBody) {
|
|
17902
|
-
return taggingBody.value;
|
|
17903
|
-
}
|
|
17904
|
-
return void 0;
|
|
17905
|
-
}
|
|
17906
|
-
function getTagSchemaId(annotation) {
|
|
17907
|
-
if (!isTag2(annotation)) return void 0;
|
|
17908
|
-
const bodies = Array.isArray(annotation.body) ? annotation.body : [annotation.body];
|
|
17909
|
-
const classifyingBody = bodies.find(
|
|
17910
|
-
(b8) => b8 !== null && typeof b8 === "object" && "purpose" in b8 && b8.purpose === "classifying"
|
|
17911
|
-
);
|
|
17912
|
-
if (classifyingBody && "value" in classifyingBody) {
|
|
17913
|
-
return classifyingBody.value;
|
|
17914
|
-
}
|
|
17915
|
-
return void 0;
|
|
17916
|
-
}
|
|
17917
|
-
|
|
17918
17712
|
// src/lib/validation.ts
|
|
17919
17713
|
import { isValidEmail } from "@semiont/core";
|
|
17920
17714
|
var ImageURLSchema = {
|
|
@@ -26357,7 +26151,7 @@ import { isReference as isReference3 } from "@semiont/core";
|
|
|
26357
26151
|
import { createHoverHandlers } from "@semiont/sdk";
|
|
26358
26152
|
|
|
26359
26153
|
// src/lib/codemirror-logic.ts
|
|
26360
|
-
import { isHighlight as isHighlight2, isReference as isReference2, isResolvedReference as isResolvedReference2, isComment as isComment2, isAssessment, isTag as
|
|
26154
|
+
import { isHighlight as isHighlight2, isReference as isReference2, isResolvedReference as isResolvedReference2, isComment as isComment2, isAssessment, isTag as isTag2, getBodySource as getBodySource3 } from "@semiont/core";
|
|
26361
26155
|
function convertSegmentPositions(segments, content4) {
|
|
26362
26156
|
if (!content4.includes("\r\n")) {
|
|
26363
26157
|
return segments;
|
|
@@ -26388,7 +26182,7 @@ function getAnnotationTooltip(annotation) {
|
|
|
26388
26182
|
const isCommentAnn = isComment2(annotation);
|
|
26389
26183
|
const isHighlightAnn = isHighlight2(annotation);
|
|
26390
26184
|
const isAssessmentAnn = isAssessment(annotation);
|
|
26391
|
-
const isTagAnn =
|
|
26185
|
+
const isTagAnn = isTag2(annotation);
|
|
26392
26186
|
const isReferenceAnn = isReference2(annotation);
|
|
26393
26187
|
const isResolvedRef = isResolvedReference2(annotation);
|
|
26394
26188
|
if (isCommentAnn) {
|
|
@@ -26413,7 +26207,7 @@ function getAnnotationDecorationMeta(annotation, isNew) {
|
|
|
26413
26207
|
const isReferenceAnn = isReference2(annotation);
|
|
26414
26208
|
const isCommentAnn = isComment2(annotation);
|
|
26415
26209
|
const isAssessmentAnn = isAssessment(annotation);
|
|
26416
|
-
const isTagAnn =
|
|
26210
|
+
const isTagAnn = isTag2(annotation);
|
|
26417
26211
|
let annotationType = "highlight";
|
|
26418
26212
|
if (isCommentAnn) annotationType = "comment";
|
|
26419
26213
|
else if (isReferenceAnn) annotationType = "reference";
|
|
@@ -29625,7 +29419,7 @@ function PopupContainer({ children, position: position3, onClose, isOpen, wide =
|
|
|
29625
29419
|
|
|
29626
29420
|
// src/components/image-annotation/AnnotationOverlay.tsx
|
|
29627
29421
|
import { useMemo as useMemo3 } from "react";
|
|
29628
|
-
import { getSvgSelector, isHighlight as isHighlight3, isReference as isReference4, isAssessment as isAssessment2, isComment as isComment3, isTag as
|
|
29422
|
+
import { getSvgSelector, isHighlight as isHighlight3, isReference as isReference4, isAssessment as isAssessment2, isComment as isComment3, isTag as isTag3, isBodyResolved, isResolvedReference as isResolvedReference3 } from "@semiont/core";
|
|
29629
29423
|
import { createHoverHandlers as createHoverHandlers2 } from "@semiont/sdk";
|
|
29630
29424
|
import { parseSvgSelector } from "@semiont/core";
|
|
29631
29425
|
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
@@ -29638,7 +29432,7 @@ function getAnnotationColor(annotation) {
|
|
|
29638
29432
|
return { stroke: "rgb(239, 68, 68)", fill: "rgba(239, 68, 68, 0.2)" };
|
|
29639
29433
|
} else if (isComment3(annotation)) {
|
|
29640
29434
|
return { stroke: "rgb(255, 255, 255)", fill: "rgba(255, 255, 255, 0.2)" };
|
|
29641
|
-
} else if (
|
|
29435
|
+
} else if (isTag3(annotation)) {
|
|
29642
29436
|
return { stroke: "rgb(234, 88, 12)", fill: "rgba(234, 88, 12, 0.2)" };
|
|
29643
29437
|
}
|
|
29644
29438
|
return { stroke: "rgb(156, 163, 175)", fill: "rgba(156, 163, 175, 0.2)" };
|
|
@@ -29650,7 +29444,7 @@ function getAnnotationTooltip2(annotation) {
|
|
|
29650
29444
|
return "Highlight";
|
|
29651
29445
|
} else if (isAssessment2(annotation)) {
|
|
29652
29446
|
return "Assessment";
|
|
29653
|
-
} else if (
|
|
29447
|
+
} else if (isTag3(annotation)) {
|
|
29654
29448
|
return "Tag";
|
|
29655
29449
|
} else if (isResolvedReference3(annotation)) {
|
|
29656
29450
|
return "Resolved Reference";
|
|
@@ -30598,7 +30392,7 @@ function fallbackTextPosition(content4, selectedText) {
|
|
|
30598
30392
|
|
|
30599
30393
|
// src/components/resource/AnnotateView.tsx
|
|
30600
30394
|
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
30601
|
-
var PdfAnnotationCanvas = lazy(() => import("./PdfAnnotationCanvas.client-
|
|
30395
|
+
var PdfAnnotationCanvas = lazy(() => import("./PdfAnnotationCanvas.client-CN3C3S55.js").then((mod) => ({ default: mod.PdfAnnotationCanvas })));
|
|
30602
30396
|
function AnnotateView({
|
|
30603
30397
|
content: content4,
|
|
30604
30398
|
mimeType = "text/plain",
|
|
@@ -31027,7 +30821,6 @@ function getResourceCreationDetails(event) {
|
|
|
31027
30821
|
if (eventData.type === "yield:created") {
|
|
31028
30822
|
return {
|
|
31029
30823
|
type: "created",
|
|
31030
|
-
method: payload.creationMethod || "unknown",
|
|
31031
30824
|
userId: eventData.userId,
|
|
31032
30825
|
metadata: void 0
|
|
31033
30826
|
};
|
|
@@ -31035,7 +30828,6 @@ function getResourceCreationDetails(event) {
|
|
|
31035
30828
|
if (eventData.type === "yield:cloned") {
|
|
31036
30829
|
return {
|
|
31037
30830
|
type: "cloned",
|
|
31038
|
-
method: payload.creationMethod || "clone",
|
|
31039
30831
|
userId: eventData.userId,
|
|
31040
30832
|
sourceDocId: payload.parentResourceId,
|
|
31041
30833
|
parentResourceId: payload.parentResourceId,
|
|
@@ -31141,11 +30933,6 @@ function HistoryEvent({
|
|
|
31141
30933
|
": ",
|
|
31142
30934
|
/* @__PURE__ */ jsx23("span", { className: "semiont-history-event__detail-value", children: creationDetails.userId ? formatUserId(creationDetails.userId) : "" })
|
|
31143
30935
|
] }),
|
|
31144
|
-
/* @__PURE__ */ jsxs16("span", { className: "semiont-history-event__detail", children: [
|
|
31145
|
-
t12("method"),
|
|
31146
|
-
": ",
|
|
31147
|
-
/* @__PURE__ */ jsx23("span", { className: "semiont-history-event__detail-value semiont-history-event__detail-value--uppercase", children: creationDetails.method })
|
|
31148
|
-
] }),
|
|
31149
30936
|
creationDetails.type === "cloned" && creationDetails.sourceDocId && /* @__PURE__ */ jsx23(
|
|
31150
30937
|
Link,
|
|
31151
30938
|
{
|
|
@@ -45779,7 +45566,7 @@ function ImageViewer({ imageUrl, alt = "Resource image" }) {
|
|
|
45779
45566
|
|
|
45780
45567
|
// src/components/resource/BrowseView.tsx
|
|
45781
45568
|
import { jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
45782
|
-
var PdfAnnotationCanvas2 = lazy2(() => import("./PdfAnnotationCanvas.client-
|
|
45569
|
+
var PdfAnnotationCanvas2 = lazy2(() => import("./PdfAnnotationCanvas.client-CN3C3S55.js").then((mod) => ({ default: mod.PdfAnnotationCanvas })));
|
|
45783
45570
|
var MemoizedMarkdown = memo(function MemoizedMarkdown2({
|
|
45784
45571
|
content: content4
|
|
45785
45572
|
}) {
|
|
@@ -45974,7 +45761,7 @@ var BrowseView = memo(function BrowseView2({
|
|
|
45974
45761
|
|
|
45975
45762
|
// src/components/resource/ResourceViewer.tsx
|
|
45976
45763
|
import { useState as useState18, useEffect as useEffect25, useCallback as useCallback16, useRef as useRef17, useMemo as useMemo5 } from "react";
|
|
45977
|
-
import { getExactText as getExactText3, getTargetSelector as getTargetSelector4, isHighlight as isHighlight4, isAssessment as isAssessment3, isReference as isReference5, isComment as isComment4, isTag as
|
|
45764
|
+
import { getExactText as getExactText3, getTargetSelector as getTargetSelector4, isHighlight as isHighlight4, isAssessment as isAssessment3, isReference as isReference5, isComment as isComment4, isTag as isTag4, getBodySource as getBodySource4 } from "@semiont/core";
|
|
45978
45765
|
import { jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
45979
45766
|
function ResourceViewer({
|
|
45980
45767
|
resource,
|
|
@@ -46112,7 +45899,7 @@ function ResourceViewer({
|
|
|
46112
45899
|
return;
|
|
46113
45900
|
}
|
|
46114
45901
|
}
|
|
46115
|
-
const isSimpleAnnotation = isHighlight4(annotation) || isAssessment3(annotation) || isComment4(annotation) || isReference5(annotation) ||
|
|
45902
|
+
const isSimpleAnnotation = isHighlight4(annotation) || isAssessment3(annotation) || isComment4(annotation) || isReference5(annotation) || isTag4(annotation);
|
|
46116
45903
|
if (selectedClick === "follow" && isReference5(annotation)) {
|
|
46117
45904
|
const bodySource = getBodySource4(annotation.body);
|
|
46118
45905
|
if (bodySource) {
|
|
@@ -46286,6 +46073,20 @@ function ResourceViewer({
|
|
|
46286
46073
|
|
|
46287
46074
|
// src/components/resource/panels/AssessmentEntry.tsx
|
|
46288
46075
|
import { getAnnotationExactText } from "@semiont/core";
|
|
46076
|
+
|
|
46077
|
+
// src/components/resource/panels/agent-label.ts
|
|
46078
|
+
function renderAgentLabel(agent) {
|
|
46079
|
+
if (agent["@type"] === "Software") {
|
|
46080
|
+
const provider = agent.provider;
|
|
46081
|
+
const model = agent.model;
|
|
46082
|
+
if (provider && model) return `${provider} ${model}`;
|
|
46083
|
+
if (model) return model;
|
|
46084
|
+
if (provider) return provider;
|
|
46085
|
+
}
|
|
46086
|
+
return agent.name || agent["@id"] || "unknown";
|
|
46087
|
+
}
|
|
46088
|
+
|
|
46089
|
+
// src/components/resource/panels/AssessmentEntry.tsx
|
|
46289
46090
|
import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
46290
46091
|
function formatRelativeTime2(isoString) {
|
|
46291
46092
|
const date = new Date(isoString);
|
|
@@ -46352,7 +46153,7 @@ function AssessmentEntry({
|
|
|
46352
46153
|
] }),
|
|
46353
46154
|
assessment.generator && /* @__PURE__ */ jsxs21("div", { className: "semiont-annotation-entry__metadata", children: [
|
|
46354
46155
|
"Via ",
|
|
46355
|
-
|
|
46156
|
+
Array.isArray(assessment.generator) ? assessment.generator.map(renderAgentLabel).join(", ") : renderAgentLabel(assessment.generator)
|
|
46356
46157
|
] })
|
|
46357
46158
|
]
|
|
46358
46159
|
}
|
|
@@ -46969,7 +46770,7 @@ function CommentEntry({
|
|
|
46969
46770
|
] }),
|
|
46970
46771
|
comment2.generator && /* @__PURE__ */ jsxs26("div", { className: "semiont-annotation-entry__metadata", children: [
|
|
46971
46772
|
"Via ",
|
|
46972
|
-
|
|
46773
|
+
Array.isArray(comment2.generator) ? comment2.generator.map(renderAgentLabel).join(", ") : renderAgentLabel(comment2.generator)
|
|
46973
46774
|
] }),
|
|
46974
46775
|
annotateMode && /* @__PURE__ */ jsx34("div", { className: "semiont-annotation-entry__actions", onClick: (e6) => e6.stopPropagation(), children: /* @__PURE__ */ jsx34(
|
|
46975
46776
|
"button",
|
|
@@ -47228,7 +47029,7 @@ function HighlightEntry({
|
|
|
47228
47029
|
] }),
|
|
47229
47030
|
highlight.generator && /* @__PURE__ */ jsxs28("div", { className: "semiont-annotation-entry__metadata", children: [
|
|
47230
47031
|
"Via ",
|
|
47231
|
-
|
|
47032
|
+
Array.isArray(highlight.generator) ? highlight.generator.map(renderAgentLabel).join(", ") : renderAgentLabel(highlight.generator)
|
|
47232
47033
|
] })
|
|
47233
47034
|
]
|
|
47234
47035
|
}
|
|
@@ -47414,6 +47215,52 @@ function JsonLdPanel({ resource: semiontResource }) {
|
|
|
47414
47215
|
// src/components/resource/panels/ReferenceEntry.tsx
|
|
47415
47216
|
import { resourceId } from "@semiont/core";
|
|
47416
47217
|
import { getAnnotationExactText as getAnnotationExactText4, isBodyResolved as isBodyResolved2, getBodySource as getBodySource5, getFragmentSelector, getSvgSelector as getSvgSelector2, getTargetSelector as getTargetSelector8 } from "@semiont/core";
|
|
47218
|
+
|
|
47219
|
+
// ../ontology/dist/index.js
|
|
47220
|
+
function getEntityTypes(annotation) {
|
|
47221
|
+
if (Array.isArray(annotation.body)) {
|
|
47222
|
+
const entityTags = [];
|
|
47223
|
+
for (const item of annotation.body) {
|
|
47224
|
+
if (typeof item === "object" && item !== null && "type" in item && "value" in item && "purpose" in item) {
|
|
47225
|
+
const itemType = item.type;
|
|
47226
|
+
const itemValue = item.value;
|
|
47227
|
+
const itemPurpose = item.purpose;
|
|
47228
|
+
if (itemType === "TextualBody" && itemPurpose === "tagging" && typeof itemValue === "string" && itemValue.length > 0) {
|
|
47229
|
+
entityTags.push(itemValue);
|
|
47230
|
+
}
|
|
47231
|
+
}
|
|
47232
|
+
}
|
|
47233
|
+
return entityTags;
|
|
47234
|
+
}
|
|
47235
|
+
return [];
|
|
47236
|
+
}
|
|
47237
|
+
function isTag5(annotation) {
|
|
47238
|
+
return annotation.motivation === "tagging";
|
|
47239
|
+
}
|
|
47240
|
+
function getTagCategory(annotation) {
|
|
47241
|
+
if (!isTag5(annotation)) return void 0;
|
|
47242
|
+
const bodies = Array.isArray(annotation.body) ? annotation.body : [annotation.body];
|
|
47243
|
+
const taggingBody = bodies.find(
|
|
47244
|
+
(b8) => b8 !== null && typeof b8 === "object" && "purpose" in b8 && b8.purpose === "tagging"
|
|
47245
|
+
);
|
|
47246
|
+
if (taggingBody && "value" in taggingBody) {
|
|
47247
|
+
return taggingBody.value;
|
|
47248
|
+
}
|
|
47249
|
+
return void 0;
|
|
47250
|
+
}
|
|
47251
|
+
function getTagSchemaId(annotation) {
|
|
47252
|
+
if (!isTag5(annotation)) return void 0;
|
|
47253
|
+
const bodies = Array.isArray(annotation.body) ? annotation.body : [annotation.body];
|
|
47254
|
+
const classifyingBody = bodies.find(
|
|
47255
|
+
(b8) => b8 !== null && typeof b8 === "object" && "purpose" in b8 && b8.purpose === "classifying"
|
|
47256
|
+
);
|
|
47257
|
+
if (classifyingBody && "value" in classifyingBody) {
|
|
47258
|
+
return classifyingBody.value;
|
|
47259
|
+
}
|
|
47260
|
+
return void 0;
|
|
47261
|
+
}
|
|
47262
|
+
|
|
47263
|
+
// src/components/resource/panels/ReferenceEntry.tsx
|
|
47417
47264
|
import { jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
47418
47265
|
function ReferenceEntry({
|
|
47419
47266
|
reference,
|
|
@@ -47539,7 +47386,7 @@ function ReferenceEntry({
|
|
|
47539
47386
|
)) }),
|
|
47540
47387
|
reference.generator && /* @__PURE__ */ jsxs31("div", { className: "semiont-annotation-entry__metadata", children: [
|
|
47541
47388
|
"Via ",
|
|
47542
|
-
|
|
47389
|
+
Array.isArray(reference.generator) ? reference.generator.map(renderAgentLabel).join(", ") : renderAgentLabel(reference.generator)
|
|
47543
47390
|
] })
|
|
47544
47391
|
]
|
|
47545
47392
|
}
|
|
@@ -47915,13 +47762,13 @@ function ResourceInfoPanel({
|
|
|
47915
47762
|
isArchived = false,
|
|
47916
47763
|
dateCreated,
|
|
47917
47764
|
dateModified,
|
|
47918
|
-
creationMethod,
|
|
47919
47765
|
wasAttributedTo,
|
|
47920
47766
|
wasDerivedFrom,
|
|
47921
47767
|
generator
|
|
47922
47768
|
}) {
|
|
47923
47769
|
const t12 = useTranslations("ResourceInfoPanel");
|
|
47924
47770
|
const session = useObservable(useSemiont().activeSession$);
|
|
47771
|
+
const attribution = wasAttributedTo ? Array.isArray(wasAttributedTo) ? wasAttributedTo : [wasAttributedTo] : generator ? Array.isArray(generator) ? generator : [generator] : [];
|
|
47925
47772
|
return /* @__PURE__ */ jsxs33("div", { className: "semiont-resource-info-panel", children: [
|
|
47926
47773
|
/* @__PURE__ */ jsx40("h3", { className: "semiont-resource-info-panel__title", children: t12("title") }),
|
|
47927
47774
|
/* @__PURE__ */ jsxs33("div", { className: "semiont-resource-info-panel__section", children: [
|
|
@@ -47948,7 +47795,7 @@ function ResourceInfoPanel({
|
|
|
47948
47795
|
] })
|
|
47949
47796
|
] })
|
|
47950
47797
|
] }),
|
|
47951
|
-
(dateCreated || dateModified ||
|
|
47798
|
+
(dateCreated || dateModified || attribution.length > 0 || wasDerivedFrom) && /* @__PURE__ */ jsxs33("div", { className: "semiont-resource-info-panel__section", children: [
|
|
47952
47799
|
/* @__PURE__ */ jsx40("h3", { className: "semiont-resource-info-panel__heading", children: t12("provenance") }),
|
|
47953
47800
|
/* @__PURE__ */ jsxs33("div", { className: "semiont-resource-info-panel__field-group", children: [
|
|
47954
47801
|
dateCreated && /* @__PURE__ */ jsxs33("div", { children: [
|
|
@@ -47959,13 +47806,9 @@ function ResourceInfoPanel({
|
|
|
47959
47806
|
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__label", children: t12("modifiedAt") }),
|
|
47960
47807
|
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__value", children: new Date(dateModified).toLocaleString() })
|
|
47961
47808
|
] }),
|
|
47962
|
-
|
|
47963
|
-
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__label", children: t12("creationMethod") }),
|
|
47964
|
-
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__value", children: creationMethod })
|
|
47965
|
-
] }),
|
|
47966
|
-
wasAttributedTo && /* @__PURE__ */ jsxs33("div", { children: [
|
|
47809
|
+
attribution.length > 0 && /* @__PURE__ */ jsxs33("div", { children: [
|
|
47967
47810
|
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__label", children: t12("attributedTo") }),
|
|
47968
|
-
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__value", children:
|
|
47811
|
+
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__value", children: attribution.map(renderAgentLabel).join(", ") })
|
|
47969
47812
|
] }),
|
|
47970
47813
|
wasDerivedFrom && /* @__PURE__ */ jsxs33("div", { children: [
|
|
47971
47814
|
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__label", children: t12("derivedFrom") }),
|
|
@@ -47981,10 +47824,6 @@ function ResourceInfoPanel({
|
|
|
47981
47824
|
},
|
|
47982
47825
|
id2
|
|
47983
47826
|
)) })
|
|
47984
|
-
] }),
|
|
47985
|
-
generator && /* @__PURE__ */ jsxs33("div", { children: [
|
|
47986
|
-
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__label", children: t12("generatedBy") }),
|
|
47987
|
-
/* @__PURE__ */ jsx40("span", { className: "semiont-resource-info-panel__value", children: (Array.isArray(generator) ? generator : [generator]).map((a15) => a15.name).join(", ") })
|
|
47988
47827
|
] })
|
|
47989
47828
|
] })
|
|
47990
47829
|
] }),
|
|
@@ -48117,6 +47956,7 @@ function StatisticsPanel({
|
|
|
48117
47956
|
}
|
|
48118
47957
|
|
|
48119
47958
|
// src/components/resource/panels/TagEntry.tsx
|
|
47959
|
+
import { useMemo as useMemo10 } from "react";
|
|
48120
47960
|
import { getAnnotationExactText as getAnnotationExactText5 } from "@semiont/core";
|
|
48121
47961
|
import { jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
48122
47962
|
function TagEntry({
|
|
@@ -48130,7 +47970,12 @@ function TagEntry({
|
|
|
48130
47970
|
const selectedText = getAnnotationExactText5(tag);
|
|
48131
47971
|
const category = getTagCategory(tag);
|
|
48132
47972
|
const schemaId = getTagSchemaId(tag);
|
|
48133
|
-
const
|
|
47973
|
+
const tagSchemas$ = useMemo10(
|
|
47974
|
+
() => session?.client.browse.tagSchemas() ?? null,
|
|
47975
|
+
[session]
|
|
47976
|
+
);
|
|
47977
|
+
const schemas = useObservable(tagSchemas$);
|
|
47978
|
+
const schema = schemaId && schemas ? schemas.find((s11) => s11.id === schemaId) ?? null : null;
|
|
48134
47979
|
return /* @__PURE__ */ jsxs35(
|
|
48135
47980
|
"div",
|
|
48136
47981
|
{
|
|
@@ -48155,7 +48000,7 @@ function TagEntry({
|
|
|
48155
48000
|
] }),
|
|
48156
48001
|
tag.generator && /* @__PURE__ */ jsxs35("div", { className: "semiont-annotation-entry__metadata", children: [
|
|
48157
48002
|
"Via ",
|
|
48158
|
-
|
|
48003
|
+
Array.isArray(tag.generator) ? tag.generator.map(renderAgentLabel).join(", ") : renderAgentLabel(tag.generator)
|
|
48159
48004
|
] })
|
|
48160
48005
|
]
|
|
48161
48006
|
}
|
|
@@ -48163,7 +48008,7 @@ function TagEntry({
|
|
|
48163
48008
|
}
|
|
48164
48009
|
|
|
48165
48010
|
// src/components/resource/panels/TaggingPanel.tsx
|
|
48166
|
-
import { useState as useState25, useEffect as useEffect33, useRef as useRef24, useCallback as useCallback22, useMemo as
|
|
48011
|
+
import { useState as useState25, useEffect as useEffect33, useRef as useRef24, useCallback as useCallback22, useMemo as useMemo11 } from "react";
|
|
48167
48012
|
import { getTextPositionSelector as getTextPositionSelector7, getTargetSelector as getTargetSelector10 } from "@semiont/core";
|
|
48168
48013
|
import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
48169
48014
|
function getSelectorDisplayText4(selector) {
|
|
@@ -48193,8 +48038,20 @@ function TaggingPanel({
|
|
|
48193
48038
|
}) {
|
|
48194
48039
|
const t12 = useTranslations("TaggingPanel");
|
|
48195
48040
|
const session = useObservable(useSemiont().activeSession$);
|
|
48196
|
-
const
|
|
48041
|
+
const tagSchemas$ = useMemo11(
|
|
48042
|
+
() => session?.client.browse.tagSchemas() ?? null,
|
|
48043
|
+
[session]
|
|
48044
|
+
);
|
|
48045
|
+
const schemasObserved = useObservable(tagSchemas$);
|
|
48046
|
+
const schemas = schemasObserved ?? [];
|
|
48047
|
+
const noSchemasRegistered = schemasObserved !== void 0 && schemasObserved.length === 0;
|
|
48048
|
+
const [selectedSchemaId, setSelectedSchemaId] = useState25("");
|
|
48197
48049
|
const [selectedCategories, setSelectedCategories] = useState25(/* @__PURE__ */ new Set());
|
|
48050
|
+
useEffect33(() => {
|
|
48051
|
+
if (!selectedSchemaId && schemas.length > 0) {
|
|
48052
|
+
setSelectedSchemaId(schemas[0].id);
|
|
48053
|
+
}
|
|
48054
|
+
}, [schemas, selectedSchemaId]);
|
|
48198
48055
|
const [focusedAnnotationId, setFocusedAnnotationId] = useState25(null);
|
|
48199
48056
|
const containerRef = useRef24(null);
|
|
48200
48057
|
const [isAssistExpanded, setIsDetectExpanded] = useState25(() => {
|
|
@@ -48214,7 +48071,7 @@ function TaggingPanel({
|
|
|
48214
48071
|
"browse:click": handleAnnotationClick2
|
|
48215
48072
|
});
|
|
48216
48073
|
const entryRefs = useRef24(/* @__PURE__ */ new Map());
|
|
48217
|
-
const sortedAnnotations =
|
|
48074
|
+
const sortedAnnotations = useMemo11(() => {
|
|
48218
48075
|
return [...annotations].sort((a15, b8) => {
|
|
48219
48076
|
const aSelector = getTextPositionSelector7(getTargetSelector10(a15.target));
|
|
48220
48077
|
const bSelector = getTextPositionSelector7(getTargetSelector10(b8.target));
|
|
@@ -48260,7 +48117,6 @@ function TaggingPanel({
|
|
|
48260
48117
|
container.scrollTo({ top: scrollTo, behavior: "smooth" });
|
|
48261
48118
|
}
|
|
48262
48119
|
}, [hoveredAnnotationId]);
|
|
48263
|
-
const schemas = getAllTagSchemas();
|
|
48264
48120
|
const selectedSchema = schemas.find((s11) => s11.id === selectedSchemaId);
|
|
48265
48121
|
const handleSchemaChange = (schemaId) => {
|
|
48266
48122
|
setSelectedSchemaId(schemaId);
|
|
@@ -48318,7 +48174,8 @@ function TaggingPanel({
|
|
|
48318
48174
|
}
|
|
48319
48175
|
return t12("fragmentSelected");
|
|
48320
48176
|
})() }) }),
|
|
48321
|
-
/* @__PURE__ */
|
|
48177
|
+
noSchemasRegistered && /* @__PURE__ */ jsx43("p", { className: "semiont-form__help", "data-type": "tag-no-schemas", children: t12("noSchemas") }),
|
|
48178
|
+
!noSchemasRegistered && /* @__PURE__ */ jsxs36("div", { className: "semiont-form-field", children: [
|
|
48322
48179
|
/* @__PURE__ */ jsx43("label", { className: "semiont-form-field__label", children: t12("selectSchema") }),
|
|
48323
48180
|
/* @__PURE__ */ jsx43(
|
|
48324
48181
|
"select",
|
|
@@ -48326,7 +48183,7 @@ function TaggingPanel({
|
|
|
48326
48183
|
value: selectedSchemaId,
|
|
48327
48184
|
onChange: (e6) => handleSchemaChange(e6.target.value),
|
|
48328
48185
|
className: "semiont-select",
|
|
48329
|
-
children: schemas.map((schema) => /* @__PURE__ */ jsx43("option", { value: schema.id, children:
|
|
48186
|
+
children: schemas.map((schema) => /* @__PURE__ */ jsx43("option", { value: schema.id, children: schema.name }, schema.id))
|
|
48330
48187
|
}
|
|
48331
48188
|
)
|
|
48332
48189
|
] }),
|
|
@@ -48390,7 +48247,8 @@ function TaggingPanel({
|
|
|
48390
48247
|
),
|
|
48391
48248
|
isAssistExpanded && /* @__PURE__ */ jsxs36("div", { className: "semiont-assist-widget", "data-assisting": isAssisting && progress ? "true" : "false", "data-type": "tag", children: [
|
|
48392
48249
|
!isAssisting && !progress && /* @__PURE__ */ jsxs36(Fragment8, { children: [
|
|
48393
|
-
/* @__PURE__ */
|
|
48250
|
+
noSchemasRegistered && /* @__PURE__ */ jsx43("p", { className: "semiont-form__help", "data-type": "tag-no-schemas", children: t12("noSchemas") }),
|
|
48251
|
+
!noSchemasRegistered && /* @__PURE__ */ jsxs36("div", { className: "semiont-form-field", children: [
|
|
48394
48252
|
/* @__PURE__ */ jsx43("label", { className: "semiont-form-field__label", children: t12("selectSchema") }),
|
|
48395
48253
|
/* @__PURE__ */ jsx43(
|
|
48396
48254
|
"select",
|
|
@@ -48398,7 +48256,7 @@ function TaggingPanel({
|
|
|
48398
48256
|
value: selectedSchemaId,
|
|
48399
48257
|
onChange: (e6) => handleSchemaChange(e6.target.value),
|
|
48400
48258
|
className: "semiont-select",
|
|
48401
|
-
children: schemas.map((schema) => /* @__PURE__ */ jsx43("option", { value: schema.id, children:
|
|
48259
|
+
children: schemas.map((schema) => /* @__PURE__ */ jsx43("option", { value: schema.id, children: schema.name }, schema.id))
|
|
48402
48260
|
}
|
|
48403
48261
|
),
|
|
48404
48262
|
selectedSchema && /* @__PURE__ */ jsx43("p", { className: "semiont-form__help", children: selectedSchema.description })
|
|
@@ -48445,7 +48303,7 @@ function TaggingPanel({
|
|
|
48445
48303
|
className: "semiont-form__checkbox-label",
|
|
48446
48304
|
style: { display: "flex", flexDirection: "column", gap: "0.25rem" },
|
|
48447
48305
|
children: [
|
|
48448
|
-
/* @__PURE__ */ jsx43("span", { style: { fontWeight: 500 }, children:
|
|
48306
|
+
/* @__PURE__ */ jsx43("span", { style: { fontWeight: 500 }, children: category.name }),
|
|
48449
48307
|
/* @__PURE__ */ jsx43("span", { style: { fontSize: "var(--semiont-text-xs)", color: "var(--semiont-text-secondary)" }, children: category.description })
|
|
48450
48308
|
]
|
|
48451
48309
|
}
|
|
@@ -48980,16 +48838,16 @@ function SimpleNavigation({
|
|
|
48980
48838
|
import { useCallback as useCallback29, useState as useState32, useRef as useRef31, useEffect as useEffect41 } from "react";
|
|
48981
48839
|
|
|
48982
48840
|
// ../../node_modules/@dnd-kit/core/dist/core.esm.js
|
|
48983
|
-
import React18, { createContext as createContext5, useContext as useContext5, useEffect as useEffect38, useState as useState30, useCallback as useCallback26, useMemo as
|
|
48841
|
+
import React18, { createContext as createContext5, useContext as useContext5, useEffect as useEffect38, useState as useState30, useCallback as useCallback26, useMemo as useMemo13, useRef as useRef28, memo as memo2, useReducer, cloneElement, forwardRef } from "react";
|
|
48984
48842
|
import { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
48985
48843
|
|
|
48986
48844
|
// ../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js
|
|
48987
|
-
import { useMemo as
|
|
48845
|
+
import { useMemo as useMemo12, useLayoutEffect, useEffect as useEffect37, useRef as useRef27, useCallback as useCallback24 } from "react";
|
|
48988
48846
|
function useCombinedRefs() {
|
|
48989
48847
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
48990
48848
|
refs[_key] = arguments[_key];
|
|
48991
48849
|
}
|
|
48992
|
-
return
|
|
48850
|
+
return useMemo12(
|
|
48993
48851
|
() => (node2) => {
|
|
48994
48852
|
refs.forEach((ref) => ref(node2));
|
|
48995
48853
|
},
|
|
@@ -49092,7 +48950,7 @@ function useLatestValue(value, dependencies) {
|
|
|
49092
48950
|
}
|
|
49093
48951
|
function useLazyMemo(callback, dependencies) {
|
|
49094
48952
|
const valueRef = useRef27();
|
|
49095
|
-
return
|
|
48953
|
+
return useMemo12(
|
|
49096
48954
|
() => {
|
|
49097
48955
|
const newValue = callback(valueRef.current);
|
|
49098
48956
|
valueRef.current = newValue;
|
|
@@ -49126,7 +48984,7 @@ function usePrevious(value) {
|
|
|
49126
48984
|
}
|
|
49127
48985
|
var ids = {};
|
|
49128
48986
|
function useUniqueId(prefix, value) {
|
|
49129
|
-
return
|
|
48987
|
+
return useMemo12(() => {
|
|
49130
48988
|
if (value) {
|
|
49131
48989
|
return value;
|
|
49132
48990
|
}
|
|
@@ -49398,7 +49256,7 @@ function Accessibility(_ref) {
|
|
|
49398
49256
|
useEffect38(() => {
|
|
49399
49257
|
setMounted(true);
|
|
49400
49258
|
}, []);
|
|
49401
|
-
useDndMonitor(
|
|
49259
|
+
useDndMonitor(useMemo13(() => ({
|
|
49402
49260
|
onDragStart(_ref2) {
|
|
49403
49261
|
let {
|
|
49404
49262
|
active
|
|
@@ -49476,7 +49334,7 @@ var Action;
|
|
|
49476
49334
|
function noop() {
|
|
49477
49335
|
}
|
|
49478
49336
|
function useSensor(sensor, options) {
|
|
49479
|
-
return
|
|
49337
|
+
return useMemo13(
|
|
49480
49338
|
() => ({
|
|
49481
49339
|
sensor,
|
|
49482
49340
|
options: options != null ? options : {}
|
|
@@ -49489,7 +49347,7 @@ function useSensors() {
|
|
|
49489
49347
|
for (var _len = arguments.length, sensors = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49490
49348
|
sensors[_key] = arguments[_key];
|
|
49491
49349
|
}
|
|
49492
|
-
return
|
|
49350
|
+
return useMemo13(
|
|
49493
49351
|
() => [...sensors].filter((sensor) => sensor != null),
|
|
49494
49352
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49495
49353
|
[...sensors]
|
|
@@ -50739,7 +50597,7 @@ function useAutoScroller(_ref) {
|
|
|
50739
50597
|
x: 0,
|
|
50740
50598
|
y: 0
|
|
50741
50599
|
});
|
|
50742
|
-
const rect =
|
|
50600
|
+
const rect = useMemo13(() => {
|
|
50743
50601
|
switch (activator) {
|
|
50744
50602
|
case AutoScrollActivator.Pointer:
|
|
50745
50603
|
return pointerCoordinates ? {
|
|
@@ -50762,7 +50620,7 @@ function useAutoScroller(_ref) {
|
|
|
50762
50620
|
const scrollTop = scrollSpeed.current.y * scrollDirection.current.y;
|
|
50763
50621
|
scrollContainer.scrollBy(scrollLeft, scrollTop);
|
|
50764
50622
|
}, []);
|
|
50765
|
-
const sortedScrollableAncestors =
|
|
50623
|
+
const sortedScrollableAncestors = useMemo13(() => order2 === TraversalOrder.TreeOrder ? [...scrollableAncestors].reverse() : scrollableAncestors, [order2, scrollableAncestors]);
|
|
50766
50624
|
useEffect38(
|
|
50767
50625
|
() => {
|
|
50768
50626
|
if (!enabled || !scrollableAncestors.length || !rect) {
|
|
@@ -50876,7 +50734,7 @@ function useCachedNode(draggableNodes, id2) {
|
|
|
50876
50734
|
}, [node2, id2]);
|
|
50877
50735
|
}
|
|
50878
50736
|
function useCombineActivators(sensors, getSyntheticHandler) {
|
|
50879
|
-
return
|
|
50737
|
+
return useMemo13(() => sensors.reduce((accumulator, sensor) => {
|
|
50880
50738
|
const {
|
|
50881
50739
|
sensor: Sensor
|
|
50882
50740
|
} = sensor;
|
|
@@ -51024,7 +50882,7 @@ function useMutationObserver(_ref) {
|
|
|
51024
50882
|
disabled
|
|
51025
50883
|
} = _ref;
|
|
51026
50884
|
const handleMutations = useEvent(callback);
|
|
51027
|
-
const mutationObserver =
|
|
50885
|
+
const mutationObserver = useMemo13(() => {
|
|
51028
50886
|
if (disabled || typeof window === "undefined" || typeof window.MutationObserver === "undefined") {
|
|
51029
50887
|
return void 0;
|
|
51030
50888
|
}
|
|
@@ -51044,7 +50902,7 @@ function useResizeObserver(_ref) {
|
|
|
51044
50902
|
disabled
|
|
51045
50903
|
} = _ref;
|
|
51046
50904
|
const handleResize = useEvent(callback);
|
|
51047
|
-
const resizeObserver =
|
|
50905
|
+
const resizeObserver = useMemo13(
|
|
51048
50906
|
() => {
|
|
51049
50907
|
if (disabled || typeof window === "undefined" || typeof window.ResizeObserver === "undefined") {
|
|
51050
50908
|
return void 0;
|
|
@@ -51186,7 +51044,7 @@ function useScrollOffsets(elements) {
|
|
|
51186
51044
|
});
|
|
51187
51045
|
}
|
|
51188
51046
|
}, [handleScroll, elements]);
|
|
51189
|
-
return
|
|
51047
|
+
return useMemo13(() => {
|
|
51190
51048
|
if (elements.length) {
|
|
51191
51049
|
return scrollCoordinates ? Array.from(scrollCoordinates.values()).reduce((acc, coordinates) => add(acc, coordinates), defaultCoordinates) : getScrollOffsets(elements);
|
|
51192
51050
|
}
|
|
@@ -51245,7 +51103,7 @@ function useSensorSetup(sensors) {
|
|
|
51245
51103
|
);
|
|
51246
51104
|
}
|
|
51247
51105
|
function useSyntheticListeners(listeners, id2) {
|
|
51248
|
-
return
|
|
51106
|
+
return useMemo13(() => {
|
|
51249
51107
|
return listeners.reduce((acc, _ref) => {
|
|
51250
51108
|
let {
|
|
51251
51109
|
eventName,
|
|
@@ -51259,7 +51117,7 @@ function useSyntheticListeners(listeners, id2) {
|
|
|
51259
51117
|
}, [listeners, id2]);
|
|
51260
51118
|
}
|
|
51261
51119
|
function useWindowRect(element2) {
|
|
51262
|
-
return
|
|
51120
|
+
return useMemo13(() => element2 ? getWindowClientRect(element2) : null, [element2]);
|
|
51263
51121
|
}
|
|
51264
51122
|
var defaultValue$2 = [];
|
|
51265
51123
|
function useRects(elements, measure) {
|
|
@@ -51331,7 +51189,7 @@ function useDragOverlayMeasuring(_ref) {
|
|
|
51331
51189
|
setRect(node2 ? measure(node2) : null);
|
|
51332
51190
|
}, [measure, resizeObserver]);
|
|
51333
51191
|
const [nodeRef, setRef] = useNodeRef(handleNodeChange);
|
|
51334
|
-
return
|
|
51192
|
+
return useMemo13(() => ({
|
|
51335
51193
|
nodeRef,
|
|
51336
51194
|
rect,
|
|
51337
51195
|
setRef
|
|
@@ -51608,7 +51466,7 @@ function applyModifiers(modifiers2, _ref) {
|
|
|
51608
51466
|
}, transform) : transform;
|
|
51609
51467
|
}
|
|
51610
51468
|
function useMeasuringConfiguration(config) {
|
|
51611
|
-
return
|
|
51469
|
+
return useMemo13(
|
|
51612
51470
|
() => ({
|
|
51613
51471
|
draggable: {
|
|
51614
51472
|
...defaultMeasuringConfiguration.draggable,
|
|
@@ -51719,7 +51577,7 @@ var DndContext = /* @__PURE__ */ memo2(function DndContext2(_ref) {
|
|
|
51719
51577
|
initial: null,
|
|
51720
51578
|
translated: null
|
|
51721
51579
|
});
|
|
51722
|
-
const active =
|
|
51580
|
+
const active = useMemo13(() => {
|
|
51723
51581
|
var _node$data;
|
|
51724
51582
|
return activeId != null ? {
|
|
51725
51583
|
id: activeId,
|
|
@@ -51733,7 +51591,7 @@ var DndContext = /* @__PURE__ */ memo2(function DndContext2(_ref) {
|
|
|
51733
51591
|
const [activatorEvent, setActivatorEvent] = useState30(null);
|
|
51734
51592
|
const latestProps = useLatestValue(props, Object.values(props));
|
|
51735
51593
|
const draggableDescribedById = useUniqueId("DndDescribedBy", id2);
|
|
51736
|
-
const enabledDroppableContainers =
|
|
51594
|
+
const enabledDroppableContainers = useMemo13(() => droppableContainers.getEnabled(), [droppableContainers]);
|
|
51737
51595
|
const measuringConfiguration = useMeasuringConfiguration(measuring);
|
|
51738
51596
|
const {
|
|
51739
51597
|
droppableRects,
|
|
@@ -51745,7 +51603,7 @@ var DndContext = /* @__PURE__ */ memo2(function DndContext2(_ref) {
|
|
|
51745
51603
|
config: measuringConfiguration.droppable
|
|
51746
51604
|
});
|
|
51747
51605
|
const activeNode = useCachedNode(draggableNodes, activeId);
|
|
51748
|
-
const activationCoordinates =
|
|
51606
|
+
const activationCoordinates = useMemo13(() => activatorEvent ? getEventCoordinates(activatorEvent) : null, [activatorEvent]);
|
|
51749
51607
|
const autoScrollOptions = getAutoScrollerOptions();
|
|
51750
51608
|
const initialActiveNodeRect = useInitialRect(activeNode, measuringConfiguration.draggable.measure);
|
|
51751
51609
|
useLayoutShiftScrollCompensation({
|
|
@@ -52116,7 +51974,7 @@ var DndContext = /* @__PURE__ */ memo2(function DndContext2(_ref) {
|
|
|
52116
51974
|
scrollableAncestors,
|
|
52117
51975
|
scrollableAncestorRects
|
|
52118
51976
|
});
|
|
52119
|
-
const publicContext =
|
|
51977
|
+
const publicContext = useMemo13(() => {
|
|
52120
51978
|
const context = {
|
|
52121
51979
|
active,
|
|
52122
51980
|
activeNode,
|
|
@@ -52138,7 +51996,7 @@ var DndContext = /* @__PURE__ */ memo2(function DndContext2(_ref) {
|
|
|
52138
51996
|
};
|
|
52139
51997
|
return context;
|
|
52140
51998
|
}, [active, activeNode, activeNodeRect, activatorEvent, collisions, containerNodeRect, dragOverlay, draggableNodes, droppableContainers, droppableRects, over, measureDroppableContainers, scrollableAncestors, scrollableAncestorRects, measuringConfiguration, measuringScheduled, windowRect2]);
|
|
52141
|
-
const internalContext =
|
|
51999
|
+
const internalContext = useMemo13(() => {
|
|
52142
52000
|
const context = {
|
|
52143
52001
|
activatorEvent,
|
|
52144
52002
|
activators,
|
|
@@ -52233,7 +52091,7 @@ function useDraggable(_ref) {
|
|
|
52233
52091
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52234
52092
|
[draggableNodes, id2]
|
|
52235
52093
|
);
|
|
52236
|
-
const memoizedAttributes =
|
|
52094
|
+
const memoizedAttributes = useMemo13(() => ({
|
|
52237
52095
|
role,
|
|
52238
52096
|
tabIndex,
|
|
52239
52097
|
"aria-disabled": disabled,
|
|
@@ -52378,7 +52236,7 @@ function useDroppable(_ref) {
|
|
|
52378
52236
|
}
|
|
52379
52237
|
|
|
52380
52238
|
// ../../node_modules/@dnd-kit/sortable/dist/sortable.esm.js
|
|
52381
|
-
import React19, { useMemo as
|
|
52239
|
+
import React19, { useMemo as useMemo14, useRef as useRef29, useEffect as useEffect39, useState as useState31, useContext as useContext6 } from "react";
|
|
52382
52240
|
function arrayMove(array, from, to) {
|
|
52383
52241
|
const newArray = array.slice();
|
|
52384
52242
|
newArray.splice(to < 0 ? newArray.length + to : to, 0, newArray.splice(from, 1)[0]);
|
|
@@ -52532,7 +52390,7 @@ function SortableContext(_ref) {
|
|
|
52532
52390
|
} = useDndContext();
|
|
52533
52391
|
const containerId = useUniqueId(ID_PREFIX2, id2);
|
|
52534
52392
|
const useDragOverlay = Boolean(dragOverlay.rect !== null);
|
|
52535
|
-
const items =
|
|
52393
|
+
const items = useMemo14(() => userDefinedItems.map((item) => typeof item === "object" && "id" in item ? item.id : item), [userDefinedItems]);
|
|
52536
52394
|
const isDragging = active != null;
|
|
52537
52395
|
const activeIndex = active ? items.indexOf(active.id) : -1;
|
|
52538
52396
|
const overIndex = over ? items.indexOf(over.id) : -1;
|
|
@@ -52548,7 +52406,7 @@ function SortableContext(_ref) {
|
|
|
52548
52406
|
useEffect39(() => {
|
|
52549
52407
|
previousItemsRef.current = items;
|
|
52550
52408
|
}, [items]);
|
|
52551
|
-
const contextValue =
|
|
52409
|
+
const contextValue = useMemo14(
|
|
52552
52410
|
() => ({
|
|
52553
52411
|
activeIndex,
|
|
52554
52412
|
containerId,
|
|
@@ -52675,7 +52533,7 @@ function useSortable(_ref) {
|
|
|
52675
52533
|
} = useContext6(Context2);
|
|
52676
52534
|
const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);
|
|
52677
52535
|
const index2 = items.indexOf(id2);
|
|
52678
|
-
const data2 =
|
|
52536
|
+
const data2 = useMemo14(() => ({
|
|
52679
52537
|
sortable: {
|
|
52680
52538
|
containerId,
|
|
52681
52539
|
index: index2,
|
|
@@ -52683,7 +52541,7 @@ function useSortable(_ref) {
|
|
|
52683
52541
|
},
|
|
52684
52542
|
...customData
|
|
52685
52543
|
}), [containerId, customData, index2, items]);
|
|
52686
|
-
const itemsAfterCurrentSortable =
|
|
52544
|
+
const itemsAfterCurrentSortable = useMemo14(() => items.slice(items.indexOf(id2)), [items, id2]);
|
|
52687
52545
|
const {
|
|
52688
52546
|
rect,
|
|
52689
52547
|
node: node2,
|
|
@@ -54086,7 +53944,7 @@ function ReferenceWizardModal({
|
|
|
54086
53944
|
|
|
54087
53945
|
// src/components/modals/SearchModal.tsx
|
|
54088
53946
|
import { useState as useState37, useEffect as useEffect44, useRef as useRef33 } from "react";
|
|
54089
|
-
var import_operators = __toESM(require_operators());
|
|
53947
|
+
var import_operators = __toESM(require_operators(), 1);
|
|
54090
53948
|
import { getResourceId } from "@semiont/core";
|
|
54091
53949
|
import { createSearchPipeline } from "@semiont/sdk";
|
|
54092
53950
|
|
|
@@ -54297,7 +54155,7 @@ function SearchModal({
|
|
|
54297
54155
|
|
|
54298
54156
|
// src/components/modals/ResourceSearchModal.tsx
|
|
54299
54157
|
import { useState as useState38, useEffect as useEffect45, useRef as useRef34 } from "react";
|
|
54300
|
-
var import_operators2 = __toESM(require_operators());
|
|
54158
|
+
var import_operators2 = __toESM(require_operators(), 1);
|
|
54301
54159
|
import { getResourceId as getResourceId2, getPrimaryRepresentation } from "@semiont/core";
|
|
54302
54160
|
import { createSearchPipeline as createSearchPipeline2 } from "@semiont/sdk";
|
|
54303
54161
|
import { jsx as jsx58, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
@@ -55870,7 +55728,7 @@ var ForwardRef17 = /* @__PURE__ */ React42.forwardRef(UserCircleIcon);
|
|
|
55870
55728
|
var UserCircleIcon_default = ForwardRef17;
|
|
55871
55729
|
|
|
55872
55730
|
// src/state/shell-state-unit.ts
|
|
55873
|
-
var import_rxjs = __toESM(require_cjs());
|
|
55731
|
+
var import_rxjs = __toESM(require_cjs(), 1);
|
|
55874
55732
|
var COMMON_PANELS = ["knowledge-base", "user", "settings"];
|
|
55875
55733
|
var RESOURCE_PANELS = ["history", "info", "annotations", "collaboration", "jsonld"];
|
|
55876
55734
|
var MOTIVATION_TO_TAB = {
|
|
@@ -58215,7 +58073,7 @@ function useMediaToken(id2) {
|
|
|
58215
58073
|
}
|
|
58216
58074
|
|
|
58217
58075
|
// src/features/resource-viewer/state/resource-viewer-page-state-unit.ts
|
|
58218
|
-
var import_rxjs2 = __toESM(require_cjs());
|
|
58076
|
+
var import_rxjs2 = __toESM(require_cjs(), 1);
|
|
58219
58077
|
import { createDisposer } from "@semiont/sdk";
|
|
58220
58078
|
import { createBeckonStateUnit } from "@semiont/sdk";
|
|
58221
58079
|
import { createMarkStateUnit } from "@semiont/sdk";
|
|
@@ -58680,7 +58538,6 @@ function ResourceViewerPage({
|
|
|
58680
58538
|
isArchived: resource.archived ?? false,
|
|
58681
58539
|
dateCreated: resource.dateCreated,
|
|
58682
58540
|
dateModified: resource.dateModified,
|
|
58683
|
-
creationMethod: resource.creationMethod,
|
|
58684
58541
|
wasAttributedTo: resource.wasAttributedTo,
|
|
58685
58542
|
wasDerivedFrom: resource.wasDerivedFrom,
|
|
58686
58543
|
generator: resource.generator
|
|
@@ -58774,7 +58631,7 @@ import { createGatherStateUnit as createGatherStateUnit2 } from "@semiont/sdk";
|
|
|
58774
58631
|
import { createMatchStateUnit as createMatchStateUnit2 } from "@semiont/sdk";
|
|
58775
58632
|
|
|
58776
58633
|
// src/state/session-state-unit.ts
|
|
58777
|
-
var import_rxjs3 = __toESM(require_cjs());
|
|
58634
|
+
var import_rxjs3 = __toESM(require_cjs(), 1);
|
|
58778
58635
|
function createSessionStateUnit(client) {
|
|
58779
58636
|
const isLoggingOut$ = new import_rxjs3.BehaviorSubject(false);
|
|
58780
58637
|
const logout = async () => {
|
|
@@ -58796,7 +58653,7 @@ function createSessionStateUnit(client) {
|
|
|
58796
58653
|
}
|
|
58797
58654
|
|
|
58798
58655
|
// src/features/resource-compose/state/compose-page-state-unit.ts
|
|
58799
|
-
var import_rxjs4 = __toESM(require_cjs());
|
|
58656
|
+
var import_rxjs4 = __toESM(require_cjs(), 1);
|
|
58800
58657
|
import { resourceId as makeResourceId2, annotationId as makeAnnotationId } from "@semiont/core";
|
|
58801
58658
|
import { createDisposer as createDisposer2 } from "@semiont/sdk";
|
|
58802
58659
|
import { getPrimaryMediaType as getPrimaryMediaType3, decodeWithCharset as decodeWithCharset3 } from "@semiont/core";
|
|
@@ -58879,7 +58736,6 @@ function createComposePageStateUnit(client, browse, params, auth) {
|
|
|
58879
58736
|
format,
|
|
58880
58737
|
entityTypes: saveParams.entityTypes || [],
|
|
58881
58738
|
language: saveParams.language,
|
|
58882
|
-
creationMethod: "ui",
|
|
58883
58739
|
storageUri: saveParams.storageUri
|
|
58884
58740
|
}).subscribe({
|
|
58885
58741
|
next: (event) => {
|
|
@@ -58924,7 +58780,7 @@ function createComposePageStateUnit(client, browse, params, auth) {
|
|
|
58924
58780
|
}
|
|
58925
58781
|
|
|
58926
58782
|
// src/features/resource-viewer/state/resource-loader-state-unit.ts
|
|
58927
|
-
var import_rxjs5 = __toESM(require_cjs());
|
|
58783
|
+
var import_rxjs5 = __toESM(require_cjs(), 1);
|
|
58928
58784
|
function createResourceLoaderStateUnit(client, resourceId2) {
|
|
58929
58785
|
const raw$ = client.browse.resource(resourceId2);
|
|
58930
58786
|
const resource$ = raw$;
|
|
@@ -58939,7 +58795,7 @@ function createResourceLoaderStateUnit(client, resourceId2) {
|
|
|
58939
58795
|
}
|
|
58940
58796
|
|
|
58941
58797
|
// src/features/admin-users/state/admin-users-state-unit.ts
|
|
58942
|
-
var import_rxjs6 = __toESM(require_cjs());
|
|
58798
|
+
var import_rxjs6 = __toESM(require_cjs(), 1);
|
|
58943
58799
|
import { userDID } from "@semiont/core";
|
|
58944
58800
|
import { createDisposer as createDisposer3 } from "@semiont/sdk";
|
|
58945
58801
|
function createAdminUsersStateUnit(client, browse) {
|
|
@@ -58988,7 +58844,7 @@ function createAdminUsersStateUnit(client, browse) {
|
|
|
58988
58844
|
}
|
|
58989
58845
|
|
|
58990
58846
|
// src/features/admin-security/state/admin-security-state-unit.ts
|
|
58991
|
-
var import_rxjs7 = __toESM(require_cjs());
|
|
58847
|
+
var import_rxjs7 = __toESM(require_cjs(), 1);
|
|
58992
58848
|
import { createDisposer as createDisposer4 } from "@semiont/sdk";
|
|
58993
58849
|
function createAdminSecurityStateUnit(client, browse) {
|
|
58994
58850
|
const disposer = createDisposer4();
|
|
@@ -59017,8 +58873,8 @@ function createAdminSecurityStateUnit(client, browse) {
|
|
|
59017
58873
|
}
|
|
59018
58874
|
|
|
59019
58875
|
// src/features/admin-exchange/state/exchange-state-unit.ts
|
|
59020
|
-
var import_rxjs8 = __toESM(require_cjs());
|
|
59021
|
-
var import_operators3 = __toESM(require_operators());
|
|
58876
|
+
var import_rxjs8 = __toESM(require_cjs(), 1);
|
|
58877
|
+
var import_operators3 = __toESM(require_operators(), 1);
|
|
59022
58878
|
import { createDisposer as createDisposer5 } from "@semiont/sdk";
|
|
59023
58879
|
function createExchangeStateUnit(browse, exportFn, importFn) {
|
|
59024
58880
|
const disposer = createDisposer5();
|
|
@@ -59108,7 +58964,7 @@ function createExchangeStateUnit(browse, exportFn, importFn) {
|
|
|
59108
58964
|
}
|
|
59109
58965
|
|
|
59110
58966
|
// src/features/auth-welcome/state/welcome-state-unit.ts
|
|
59111
|
-
var import_rxjs9 = __toESM(require_cjs());
|
|
58967
|
+
var import_rxjs9 = __toESM(require_cjs(), 1);
|
|
59112
58968
|
import { createDisposer as createDisposer6 } from "@semiont/sdk";
|
|
59113
58969
|
function createWelcomeStateUnit(client) {
|
|
59114
58970
|
const disposer = createDisposer6();
|
|
@@ -59138,7 +58994,7 @@ function createWelcomeStateUnit(client) {
|
|
|
59138
58994
|
}
|
|
59139
58995
|
|
|
59140
58996
|
// src/features/resource-discovery/state/discover-state-unit.ts
|
|
59141
|
-
var import_rxjs10 = __toESM(require_cjs());
|
|
58997
|
+
var import_rxjs10 = __toESM(require_cjs(), 1);
|
|
59142
58998
|
import { createDisposer as createDisposer7 } from "@semiont/sdk";
|
|
59143
58999
|
import { createSearchPipeline as createSearchPipeline3 } from "@semiont/sdk";
|
|
59144
59000
|
var RECENT_LIMIT = 10;
|
|
@@ -59171,7 +59027,7 @@ function createDiscoverStateUnit(client, browse) {
|
|
|
59171
59027
|
}
|
|
59172
59028
|
|
|
59173
59029
|
// src/features/moderate-entity-tags/state/entity-tags-state-unit.ts
|
|
59174
|
-
var import_rxjs11 = __toESM(require_cjs());
|
|
59030
|
+
var import_rxjs11 = __toESM(require_cjs(), 1);
|
|
59175
59031
|
import { createDisposer as createDisposer8 } from "@semiont/sdk";
|
|
59176
59032
|
function createEntityTagsStateUnit(client, browse) {
|
|
59177
59033
|
const disposer = createDisposer8();
|
|
@@ -59304,7 +59160,6 @@ export {
|
|
|
59304
59160
|
StatisticsPanel,
|
|
59305
59161
|
StatusDisplay,
|
|
59306
59162
|
SvgDrawingCanvas,
|
|
59307
|
-
TAG_SCHEMAS,
|
|
59308
59163
|
TagEntry,
|
|
59309
59164
|
TagSchemasPage,
|
|
59310
59165
|
TaggingPanel,
|
|
@@ -59346,18 +59201,13 @@ export {
|
|
|
59346
59201
|
faviconPaths,
|
|
59347
59202
|
formatTime,
|
|
59348
59203
|
generateCSSVariables,
|
|
59349
|
-
getAllTagSchemas,
|
|
59350
59204
|
getResourceIcon,
|
|
59351
59205
|
getSelectedShapeForSelectorType,
|
|
59352
59206
|
getSelectorType,
|
|
59353
59207
|
getShortcutDisplay,
|
|
59354
59208
|
getSupportedShapes,
|
|
59355
|
-
getSchemaCategory as getTagCategory,
|
|
59356
|
-
getTagSchema,
|
|
59357
|
-
getTagSchemasByDomain,
|
|
59358
59209
|
hideWidgetPreview,
|
|
59359
59210
|
isShapeSupported,
|
|
59360
|
-
isValidCategory,
|
|
59361
59211
|
jsonLightHighlightStyle,
|
|
59362
59212
|
jsonLightTheme,
|
|
59363
59213
|
resolveAnnotationRanges,
|
|
@@ -59403,4 +59253,4 @@ export {
|
|
|
59403
59253
|
useToast,
|
|
59404
59254
|
useTranslations
|
|
59405
59255
|
};
|
|
59406
|
-
//# sourceMappingURL=index.
|
|
59256
|
+
//# sourceMappingURL=index.js.map
|