@semiont/react-ui 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -55
- package/dist/{PdfAnnotationCanvas.client-CN3C3S55.js → PdfAnnotationCanvas.client-NIMALXNZ.js} +7 -27
- package/dist/PdfAnnotationCanvas.client-NIMALXNZ.js.map +1 -0
- package/dist/{ar-U2EXWUMQ.js → ar-SONK6MON.js} +3 -7
- package/dist/ar-SONK6MON.js.map +1 -0
- package/dist/{bn-DRJGV772.js → bn-ZKPRITNG.js} +3 -7
- package/dist/bn-ZKPRITNG.js.map +1 -0
- package/dist/{chunk-3Q3TUKWP.js → chunk-Y2EEAOMZ.js} +29 -29
- package/dist/{cs-PTWDM23V.js → cs-LPXQ7NHQ.js} +3 -7
- package/dist/cs-LPXQ7NHQ.js.map +1 -0
- package/dist/{da-KSNIKYSS.js → da-6TKY7MCY.js} +6 -10
- package/dist/da-6TKY7MCY.js.map +1 -0
- package/dist/{de-F2XBEWFY.js → de-C3GNII74.js} +3 -7
- package/dist/de-C3GNII74.js.map +1 -0
- package/dist/{el-DLD2GWAP.js → el-UBCXQDJ7.js} +3 -7
- package/dist/el-UBCXQDJ7.js.map +1 -0
- package/dist/{es-WLPYWGB5.js → es-BQ23TRI7.js} +11 -15
- package/dist/es-BQ23TRI7.js.map +1 -0
- package/dist/{fa-BAXHSDZG.js → fa-AFTBZB77.js} +3 -7
- package/dist/fa-AFTBZB77.js.map +1 -0
- package/dist/{fi-FCHSYVOT.js → fi-WOYNLZC2.js} +3 -7
- package/dist/fi-WOYNLZC2.js.map +1 -0
- package/dist/{fr-3UERBSL6.js → fr-NDSMIFJM.js} +3 -7
- package/dist/fr-NDSMIFJM.js.map +1 -0
- package/dist/{he-F6F3FV2K.js → he-VJXVRDOY.js} +3 -7
- package/dist/he-VJXVRDOY.js.map +1 -0
- package/dist/{hi-4BK6IK7Q.js → hi-BF6PHIE2.js} +3 -7
- package/dist/hi-BF6PHIE2.js.map +1 -0
- package/dist/{id-7ECCWP3J.js → id-GXG5QCZY.js} +3 -7
- package/dist/id-GXG5QCZY.js.map +1 -0
- package/dist/index.css +103 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +271 -120
- package/dist/index.js +877 -698
- package/dist/index.js.map +1 -1
- package/dist/{it-234Z6XK6.js → it-XKHHCBAF.js} +3 -7
- package/dist/it-XKHHCBAF.js.map +1 -0
- package/dist/{ja-PJWQI4OQ.js → ja-TX7VM4XD.js} +3 -7
- package/dist/ja-TX7VM4XD.js.map +1 -0
- package/dist/{ko-APUEW2RS.js → ko-DNC7EQ7J.js} +3 -7
- package/dist/ko-DNC7EQ7J.js.map +1 -0
- package/dist/{ms-PJBZWZWD.js → ms-POZGBKPH.js} +3 -7
- package/dist/ms-POZGBKPH.js.map +1 -0
- package/dist/{nl-L4C3ZBCU.js → nl-IRMTKI7Z.js} +4 -11
- package/dist/nl-IRMTKI7Z.js.map +1 -0
- package/dist/{no-QE5N5KNG.js → no-ZUDJA4S6.js} +20 -24
- package/dist/no-ZUDJA4S6.js.map +1 -0
- package/dist/{pl-5Q2D23PD.js → pl-2NGAXL5U.js} +3 -7
- package/dist/pl-2NGAXL5U.js.map +1 -0
- package/dist/{pt-AIGUOIOC.js → pt-ABMCXZUM.js} +118 -122
- package/dist/pt-ABMCXZUM.js.map +1 -0
- package/dist/{ro-T56CSHTY.js → ro-VOJP6O5X.js} +3 -7
- package/dist/ro-VOJP6O5X.js.map +1 -0
- package/dist/{sv-L4TJQ2UH.js → sv-4HVFIIE5.js} +43 -47
- package/dist/sv-4HVFIIE5.js.map +1 -0
- package/dist/test-utils.js +2 -2
- package/dist/test-utils.js.map +1 -1
- package/dist/{th-6O7Y6O2Q.js → th-IFPZP3HQ.js} +3 -7
- package/dist/th-IFPZP3HQ.js.map +1 -0
- package/dist/{tr-D4CQCSNO.js → tr-2GYEAMJ4.js} +3 -7
- package/dist/tr-2GYEAMJ4.js.map +1 -0
- package/dist/{uk-2HMQG6ND.js → uk-XCJBVLLD.js} +3 -7
- package/dist/uk-XCJBVLLD.js.map +1 -0
- package/dist/{vi-XVJ4RUEJ.js → vi-4FR7CB2F.js} +3 -7
- package/dist/vi-4FR7CB2F.js.map +1 -0
- package/dist/{zh-K2KDPGHK.js → zh-NSKFOINB.js} +3 -7
- package/dist/zh-NSKFOINB.js.map +1 -0
- package/package.json +17 -13
- package/src/components/Button/__tests__/Button.test.tsx +0 -2
- package/src/components/CodeMirrorRenderer.tsx +2 -0
- package/src/components/ErrorBoundary.tsx +0 -9
- package/src/components/ProtectedErrorBoundary.css +119 -0
- package/src/components/ProtectedErrorBoundary.tsx +24 -15
- package/src/components/__tests__/AnnotateReferencesProgressWidget.test.tsx +0 -1
- package/src/components/__tests__/ErrorBoundary.test.tsx +20 -13
- package/src/components/__tests__/LiveRegion.hooks.test.tsx +1 -1
- package/src/components/__tests__/ProtectedErrorBoundary.test.tsx +2 -1
- package/src/components/__tests__/ResizeHandle.test.tsx +0 -1
- package/src/components/__tests__/SessionExpiryBanner.test.tsx +0 -1
- package/src/components/__tests__/StatusDisplay.test.tsx +0 -1
- package/src/components/__tests__/Toast.test.tsx +2 -3
- package/src/components/__tests__/Toolbar.test.tsx +0 -1
- package/src/components/annotation/annotations.css +14 -0
- package/src/components/annotation-popups/__tests__/JsonLdView.test.tsx +3 -5
- package/src/components/annotation-popups/__tests__/SharedPopupElements.test.tsx +0 -1
- package/src/components/branding/__tests__/SemiontBranding.test.tsx +1 -2
- package/src/components/layout/__tests__/LeftSidebar.test.tsx +5 -6
- package/src/components/layout/__tests__/PageLayout.test.tsx +1 -3
- package/src/components/layout/__tests__/SkipLinks.a11y.test.tsx +8 -8
- package/src/components/layout/__tests__/UnifiedHeader.test.tsx +12 -1
- package/src/components/modals/__tests__/KeyboardShortcutsHelpModal.test.tsx +0 -1
- package/src/components/modals/__tests__/PermissionDeniedModal.test.tsx +3 -4
- package/src/components/modals/__tests__/ResourceSearchModal.test.tsx +1 -2
- package/src/components/modals/__tests__/SearchModal.basic.test.tsx +1 -1
- package/src/components/modals/__tests__/SearchModal.keyboard.test.tsx +0 -5
- package/src/components/modals/__tests__/SearchModal.search-wiring.test.tsx +1 -2
- package/src/components/modals/__tests__/SearchModal.visual.test.tsx +2 -2
- package/src/components/modals/__tests__/SessionExpiredModal.test.tsx +0 -1
- package/src/components/navigation/NavigationMenu.tsx +1 -1
- package/src/components/navigation/__tests__/Footer.a11y.test.tsx +4 -0
- package/src/components/navigation/__tests__/Footer.test.tsx +3 -6
- package/src/components/navigation/__tests__/NavigationMenu.a11y.test.tsx +1 -1
- package/src/components/navigation/__tests__/NavigationMenu.test.tsx +7 -9
- package/src/components/navigation/__tests__/ObservableLink.test.tsx +0 -1
- package/src/components/navigation/__tests__/SimpleNavigation.test.tsx +1 -2
- package/src/components/navigation/__tests__/SortableResourceTab.test.tsx +0 -1
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +6 -4
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +10 -19
- package/src/components/resource/AnnotateView.tsx +35 -37
- package/src/components/resource/BrowseView.tsx +31 -31
- package/src/components/resource/__tests__/AnnotationHistory.test.tsx +0 -1
- package/src/components/resource/__tests__/BrowseView.test.tsx +12 -14
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +0 -5
- package/src/components/resource/__tests__/ResourceViewer.mode-switch.test.tsx +4 -6
- package/src/components/resource/__tests__/event-formatting.test.ts +1 -1
- package/src/components/resource/panels/CollaborationPanel.tsx +1 -1
- package/src/components/resource/panels/JsonLdPanel.tsx +33 -16
- package/src/components/resource/panels/ReferencesPanel.tsx +1 -1
- package/src/components/resource/panels/__tests__/AssessmentEntry.test.tsx +4 -5
- package/src/components/resource/panels/__tests__/AssessmentPanel.test.tsx +8 -7
- package/src/components/resource/panels/__tests__/AssistSection.test.tsx +14 -10
- package/src/components/resource/panels/__tests__/CollaborationPanel.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +31 -18
- package/src/components/resource/panels/__tests__/CommentsPanel.test.tsx +7 -6
- package/src/components/resource/panels/__tests__/HighlightEntry.test.tsx +5 -6
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +19 -13
- package/src/components/resource/panels/__tests__/JsonLdPanel.test.tsx +95 -426
- package/src/components/resource/panels/__tests__/PanelHeader.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/ReferenceEntry.test.tsx +5 -5
- package/src/components/resource/panels/__tests__/ReferencesPanel.test.tsx +40 -7
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +4 -4
- package/src/components/resource/panels/__tests__/StatisticsPanel.test.tsx +30 -32
- package/src/components/resource/panels/__tests__/TagEntry.test.tsx +6 -6
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +7 -6
- package/src/components/settings/__tests__/SettingsPanel.test.tsx +0 -1
- package/src/components/viewers/__tests__/ImageViewer.test.tsx +0 -1
- package/src/features/admin-exchange/__tests__/AdminExchangePage.test.tsx +7 -10
- package/src/features/admin-exchange/__tests__/ImportProgress.test.tsx +38 -27
- package/src/features/admin-exchange/components/ImportProgress.tsx +28 -34
- package/src/features/auth/__tests__/SignInForm.a11y.test.tsx +2 -0
- package/src/features/auth/__tests__/SignUpForm.a11y.test.tsx +11 -12
- package/src/features/auth/__tests__/SignUpForm.test.tsx +3 -3
- package/src/features/moderate-tag-schemas/components/TagSchemasPage.tsx +1 -0
- package/src/features/moderation-linked-data/__tests__/LinkedDataPage.test.tsx +11 -9
- package/src/features/resource-compose/__tests__/ResourceComposePage.test.tsx +2 -1
- package/src/features/resource-compose/components/ResourceComposePage.tsx +36 -9
- package/src/features/resource-compose/state/compose-page-state-unit.ts +5 -8
- package/src/features/resource-discovery/__tests__/ResourceCard.test.tsx +0 -1
- package/src/features/resource-discovery/__tests__/ResourceDiscoveryPage.test.tsx +33 -35
- package/src/features/resource-discovery/components/ResourceDiscoveryPage.tsx +12 -11
- package/src/features/resource-discovery/state/__tests__/discover-state-unit.test.ts +204 -11
- package/src/features/resource-discovery/state/discover-state-unit.ts +70 -11
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.test.tsx +2 -2
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +10 -7
- package/src/features/resource-viewer/state/__tests__/resource-viewer-page-state-unit.test.ts +37 -1
- package/src/features/resource-viewer/state/resource-viewer-page-state-unit.ts +14 -7
- package/src/integrations/__tests__/css-modules-helper.test.tsx +2 -3
- package/src/integrations/__tests__/styled-components-theme.test.ts +1 -3
- package/src/styles/features/exchange.css +0 -30
- package/src/styles/index.css +1 -0
- package/translations/ar.json +1 -3
- package/translations/bn.json +1 -3
- package/translations/cs.json +1 -3
- package/translations/da.json +4 -6
- package/translations/de.json +1 -3
- package/translations/el.json +1 -3
- package/translations/es.json +9 -11
- package/translations/fa.json +1 -3
- package/translations/fi.json +1 -3
- package/translations/fr.json +1 -3
- package/translations/he.json +1 -3
- package/translations/hi.json +1 -3
- package/translations/id.json +1 -3
- package/translations/it.json +1 -3
- package/translations/ja.json +1 -3
- package/translations/ko.json +1 -3
- package/translations/ms.json +1 -3
- package/translations/nl.json +2 -7
- package/translations/no.json +18 -20
- package/translations/pl.json +1 -3
- package/translations/pt.json +116 -118
- package/translations/ro.json +1 -3
- package/translations/sv.json +41 -43
- package/translations/th.json +1 -3
- package/translations/tr.json +1 -3
- package/translations/uk.json +1 -3
- package/translations/vi.json +1 -3
- package/translations/zh.json +1 -3
- package/dist/PdfAnnotationCanvas.client-CN3C3S55.js.map +0 -1
- package/dist/ar-U2EXWUMQ.js.map +0 -1
- package/dist/bn-DRJGV772.js.map +0 -1
- package/dist/cs-PTWDM23V.js.map +0 -1
- package/dist/da-KSNIKYSS.js.map +0 -1
- package/dist/de-F2XBEWFY.js.map +0 -1
- package/dist/el-DLD2GWAP.js.map +0 -1
- package/dist/es-WLPYWGB5.js.map +0 -1
- package/dist/fa-BAXHSDZG.js.map +0 -1
- package/dist/fi-FCHSYVOT.js.map +0 -1
- package/dist/fr-3UERBSL6.js.map +0 -1
- package/dist/he-F6F3FV2K.js.map +0 -1
- package/dist/hi-4BK6IK7Q.js.map +0 -1
- package/dist/id-7ECCWP3J.js.map +0 -1
- package/dist/it-234Z6XK6.js.map +0 -1
- package/dist/ja-PJWQI4OQ.js.map +0 -1
- package/dist/ko-APUEW2RS.js.map +0 -1
- package/dist/ms-PJBZWZWD.js.map +0 -1
- package/dist/nl-L4C3ZBCU.js.map +0 -1
- package/dist/no-QE5N5KNG.js.map +0 -1
- package/dist/pl-5Q2D23PD.js.map +0 -1
- package/dist/pt-AIGUOIOC.js.map +0 -1
- package/dist/ro-T56CSHTY.js.map +0 -1
- package/dist/sv-L4TJQ2UH.js.map +0 -1
- package/dist/th-6O7Y6O2Q.js.map +0 -1
- package/dist/tr-D4CQCSNO.js.map +0 -1
- package/dist/uk-2HMQG6ND.js.map +0 -1
- package/dist/vi-XVJ4RUEJ.js.map +0 -1
- package/dist/zh-K2KDPGHK.js.map +0 -1
- /package/dist/{chunk-3Q3TUKWP.js.map → chunk-Y2EEAOMZ.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as _semiont_react_ui from '@semiont/react-ui';
|
|
2
|
-
import { Annotation, ResourceId, Selector, components, ResourceDescriptor, ValidationResult, EventMap, AnnotationId, StoredEventLike, ConnectionState, GatheredContext, BackendDownload, ProgressEvent, AccessToken } from '@semiont/core';
|
|
2
|
+
import { Annotation, ResourceId, Selector, components, ResourceDescriptor, ValidationResult, EventMap, AnnotationId, AnchorStrategy, AnchorConfidence, StoredEventLike, ConnectionState, GatheredContext, BackendDownload, ProgressEvent, AccessToken } from '@semiont/core';
|
|
3
3
|
export { Annotation } from '@semiont/core';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ComponentType, ReactNode, KeyboardEvent as KeyboardEvent$1, Component, ErrorInfo, Ref } from 'react';
|
|
6
6
|
import * as _codemirror_state from '@codemirror/state';
|
|
7
7
|
import { HighlightStyle } from '@codemirror/language';
|
|
8
8
|
import { WidgetType } from '@codemirror/view';
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
export { BeckonStateUnit, GatherStateUnit, GenerateDocumentOptions, HOVER_DELAY_MS, HoverHandlers, MarkStateUnit, MatchStateUnit, PendingAnnotation, SearchPipeline, SearchPipelineOptions, SearchState, YieldStateUnit, createBeckonStateUnit, createGatherStateUnit, createHoverHandlers, createMarkStateUnit, createMatchStateUnit, createSearchPipeline, createYieldStateUnit } from '@semiont/sdk';
|
|
9
|
+
import { StateUnit, SemiontBrowser, SessionStorage, SessionFactory, SemiontSession, OpenResource, TagSchema, UploadProgress, SemiontClient, BeckonStateUnit, MarkStateUnit, GatherStateUnit, YieldStateUnit, ReferencedByEntry } from '@semiont/sdk';
|
|
10
|
+
export { BeckonStateUnit, GatherStateUnit, GenerateDocumentOptions, HOVER_DELAY_MS, HoverHandlers, MarkStateUnit, MatchStateUnit, PendingAnnotation, SearchPipeline, SearchPipelineOptions, SearchState, TagSchema, YieldStateUnit, createBeckonStateUnit, createGatherStateUnit, createHoverHandlers, createMarkStateUnit, createMatchStateUnit, createSearchPipeline, createYieldStateUnit } from '@semiont/sdk';
|
|
12
11
|
import { Observable } from 'rxjs';
|
|
13
12
|
|
|
14
13
|
/**
|
|
@@ -215,7 +214,7 @@ interface TranslationManager {
|
|
|
215
214
|
* Type definitions for resource viewer feature
|
|
216
215
|
*/
|
|
217
216
|
|
|
218
|
-
type SemiontResource$
|
|
217
|
+
type SemiontResource$1 = ResourceDescriptor;
|
|
219
218
|
type Motivation$8 = components['schemas']['Motivation'];
|
|
220
219
|
/**
|
|
221
220
|
* Selection for creating annotations
|
|
@@ -379,7 +378,7 @@ interface AnnotateToolbarProps {
|
|
|
379
378
|
* @emits mark:shape-changed - Drawing shape changed. Payload: { shape: ShapeType }
|
|
380
379
|
* @emits mark:mode-toggled - View mode toggled between browse and annotate. Payload: undefined
|
|
381
380
|
*/
|
|
382
|
-
declare function AnnotateToolbar({ selectedMotivation, selectedClick, showSelectionGroup, showDeleteButton, showShapeGroup, selectedShape, mediaType, annotateMode, annotators }: AnnotateToolbarProps):
|
|
381
|
+
declare function AnnotateToolbar({ selectedMotivation, selectedClick, showSelectionGroup, showDeleteButton, showShapeGroup, selectedShape, mediaType, annotateMode, annotators }: AnnotateToolbarProps): React__default.JSX.Element;
|
|
383
382
|
|
|
384
383
|
/**
|
|
385
384
|
* Media Type Shape Support
|
|
@@ -507,17 +506,21 @@ declare function toOverlayAnnotations(annotations: Annotation[]): OverlayAnnotat
|
|
|
507
506
|
* Shared helper functions for resource display and metadata
|
|
508
507
|
*/
|
|
509
508
|
/**
|
|
510
|
-
* Get icon emoji based on media type
|
|
509
|
+
* Get icon emoji based on media type.
|
|
510
|
+
*
|
|
511
|
+
* The icon is a pure file-kind UI concern — there is no icon field in the
|
|
512
|
+
* core registry, and it intentionally does NOT track render capability:
|
|
513
|
+
* every image gets the image glyph whether or not we can preview it. Only
|
|
514
|
+
* the base type matters, normalized via the registry's `baseMediaType`.
|
|
511
515
|
*/
|
|
512
516
|
declare function getResourceIcon(mediaType: string | undefined): string;
|
|
513
517
|
/**
|
|
514
|
-
* Check if a resource supports text-based AI detection features
|
|
518
|
+
* Check if a resource supports text-based AI detection features.
|
|
515
519
|
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
* - Checking for specific text format requirements
|
|
520
|
+
* Detection anchors on character-offset text selectors, so the gate is the
|
|
521
|
+
* registry's anchoring model: true exactly for the text-selector types
|
|
522
|
+
* (markdown, plain, html, json). Registry misses (imported foreign types)
|
|
523
|
+
* are not offered detection in the UI.
|
|
521
524
|
*
|
|
522
525
|
* @param mediaType - The media type string (e.g., 'text/plain', 'text/markdown')
|
|
523
526
|
* @returns true if the resource supports AI detection features
|
|
@@ -528,7 +531,7 @@ declare function supportsDetection(mediaType: string | undefined): boolean;
|
|
|
528
531
|
* Frontend-specific validation utilities
|
|
529
532
|
*
|
|
530
533
|
* Browser and Next.js specific validation with security checks.
|
|
531
|
-
* For generic validation utilities, see @semiont/
|
|
534
|
+
* For generic validation utilities, see @semiont/http-transport/utils/validation
|
|
532
535
|
*/
|
|
533
536
|
|
|
534
537
|
/**
|
|
@@ -785,7 +788,7 @@ interface ThemeContextValue {
|
|
|
785
788
|
}
|
|
786
789
|
declare function ThemeProvider({ children }: {
|
|
787
790
|
children: ReactNode;
|
|
788
|
-
}):
|
|
791
|
+
}): React$1.JSX.Element;
|
|
789
792
|
declare function useTheme(): ThemeContextValue;
|
|
790
793
|
|
|
791
794
|
/**
|
|
@@ -827,7 +830,7 @@ interface SemiontProviderProps {
|
|
|
827
830
|
sessionFactory?: SessionFactory;
|
|
828
831
|
children: ReactNode;
|
|
829
832
|
}
|
|
830
|
-
declare function SemiontProvider({ browser, storage, sessionFactory, children }: SemiontProviderProps):
|
|
833
|
+
declare function SemiontProvider({ browser, storage, sessionFactory, children }: SemiontProviderProps): React$1.JSX.Element;
|
|
831
834
|
declare function useSemiont(): SemiontBrowser;
|
|
832
835
|
|
|
833
836
|
/**
|
|
@@ -884,7 +887,7 @@ interface AnnotationProviderProps {
|
|
|
884
887
|
* </AnnotationProvider>
|
|
885
888
|
* ```
|
|
886
889
|
*/
|
|
887
|
-
declare function AnnotationProvider({ annotationManager, children }: AnnotationProviderProps):
|
|
890
|
+
declare function AnnotationProvider({ annotationManager, children }: AnnotationProviderProps): React__default.JSX.Element;
|
|
888
891
|
/**
|
|
889
892
|
* Hook to access the AnnotationManager
|
|
890
893
|
*
|
|
@@ -941,7 +944,7 @@ interface ResourceAnnotationsContextType {
|
|
|
941
944
|
}
|
|
942
945
|
declare function ResourceAnnotationsProvider({ children }: {
|
|
943
946
|
children: React__default.ReactNode;
|
|
944
|
-
}):
|
|
947
|
+
}): React__default.JSX.Element;
|
|
945
948
|
declare function useResourceAnnotations(): ResourceAnnotationsContextType;
|
|
946
949
|
|
|
947
950
|
/**
|
|
@@ -1029,7 +1032,7 @@ interface TranslationProviderProps {
|
|
|
1029
1032
|
* 2. With locale prop: Dynamically loads translations for that locale
|
|
1030
1033
|
* 3. With translationManager: Use custom translation implementation
|
|
1031
1034
|
*/
|
|
1032
|
-
declare function TranslationProvider({ translationManager, locale, loadingComponent, children, }: TranslationProviderProps):
|
|
1035
|
+
declare function TranslationProvider({ translationManager, locale, loadingComponent, children, }: TranslationProviderProps): React$1.JSX.Element;
|
|
1033
1036
|
/**
|
|
1034
1037
|
* Hook to access translations within a namespace
|
|
1035
1038
|
*
|
|
@@ -1063,6 +1066,13 @@ interface TextSegment {
|
|
|
1063
1066
|
annotation?: Annotation;
|
|
1064
1067
|
start: number;
|
|
1065
1068
|
end: number;
|
|
1069
|
+
/** How `segmentTextWithAnnotations` resolved the anchor. Present only on
|
|
1070
|
+
* annotated segments — background text has no strategy. */
|
|
1071
|
+
strategy?: AnchorStrategy;
|
|
1072
|
+
/** Confidence of the anchor classification. `'high'` is the no-ambiguity
|
|
1073
|
+
* path; `'medium'` / `'low'` warrant the visual affordance and a one-
|
|
1074
|
+
* shot warning log. */
|
|
1075
|
+
confidence?: AnchorConfidence;
|
|
1066
1076
|
}
|
|
1067
1077
|
|
|
1068
1078
|
interface Props$b {
|
|
@@ -1085,7 +1095,7 @@ interface Props$b {
|
|
|
1085
1095
|
generatingReferenceId?: string | null;
|
|
1086
1096
|
hoverDelayMs: number;
|
|
1087
1097
|
}
|
|
1088
|
-
declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, session, getTargetResourceName, generatingReferenceId, hoverDelayMs }: Props$b):
|
|
1098
|
+
declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, session, getTargetResourceName, generatingReferenceId, hoverDelayMs }: Props$b): React$1.JSX.Element;
|
|
1089
1099
|
|
|
1090
1100
|
type Motivation$6 = components['schemas']['Motivation'];
|
|
1091
1101
|
type JobProgress$7 = components['schemas']['JobProgress'];
|
|
@@ -1098,7 +1108,7 @@ interface AnnotateReferencesProgressWidgetProps {
|
|
|
1098
1108
|
*
|
|
1099
1109
|
* @emits job:cancel-requested - User requested to cancel annotation job. Payload: { jobType: string }
|
|
1100
1110
|
*/
|
|
1101
|
-
declare function AnnotateReferencesProgressWidget({ progress, annotationType }: AnnotateReferencesProgressWidgetProps):
|
|
1111
|
+
declare function AnnotateReferencesProgressWidget({ progress, annotationType }: AnnotateReferencesProgressWidgetProps): React$1.JSX.Element | null;
|
|
1102
1112
|
|
|
1103
1113
|
interface Props$a {
|
|
1104
1114
|
children: ReactNode;
|
|
@@ -1108,7 +1118,6 @@ interface Props$a {
|
|
|
1108
1118
|
interface State {
|
|
1109
1119
|
hasError: boolean;
|
|
1110
1120
|
error: Error | null;
|
|
1111
|
-
errorInfo: ErrorInfo | null;
|
|
1112
1121
|
}
|
|
1113
1122
|
/**
|
|
1114
1123
|
* Generic Error Boundary component that catches JavaScript errors
|
|
@@ -1119,14 +1128,14 @@ declare class ErrorBoundary extends Component<Props$a, State> {
|
|
|
1119
1128
|
static getDerivedStateFromError(error: Error): State;
|
|
1120
1129
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
1121
1130
|
handleReset: () => void;
|
|
1122
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
1131
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | React$1.JSX.Element | null | undefined;
|
|
1123
1132
|
}
|
|
1124
1133
|
/**
|
|
1125
1134
|
* Specialized error boundary for async components
|
|
1126
1135
|
*/
|
|
1127
1136
|
declare function AsyncErrorBoundary({ children }: {
|
|
1128
1137
|
children: ReactNode;
|
|
1129
|
-
}):
|
|
1138
|
+
}): React$1.JSX.Element;
|
|
1130
1139
|
|
|
1131
1140
|
interface ProtectedErrorBoundaryProps {
|
|
1132
1141
|
children: React__default.ReactNode;
|
|
@@ -1151,7 +1160,7 @@ interface ProtectedErrorBoundaryProps {
|
|
|
1151
1160
|
* The optional `resetKeys` prop lets callers wire automatic recovery on
|
|
1152
1161
|
* navigation (e.g. `resetKeys={[location.pathname]}`).
|
|
1153
1162
|
*/
|
|
1154
|
-
declare function ProtectedErrorBoundary({ children, resetKeys, }: ProtectedErrorBoundaryProps):
|
|
1163
|
+
declare function ProtectedErrorBoundary({ children, resetKeys, }: ProtectedErrorBoundaryProps): React__default.JSX.Element;
|
|
1155
1164
|
|
|
1156
1165
|
interface LiveRegionContextType {
|
|
1157
1166
|
announce: (message: string, priority?: 'polite' | 'assertive') => void;
|
|
@@ -1160,7 +1169,7 @@ declare function useLiveRegion(): LiveRegionContextType;
|
|
|
1160
1169
|
interface LiveRegionProviderProps {
|
|
1161
1170
|
children: React__default.ReactNode;
|
|
1162
1171
|
}
|
|
1163
|
-
declare function LiveRegionProvider({ children }: LiveRegionProviderProps):
|
|
1172
|
+
declare function LiveRegionProvider({ children }: LiveRegionProviderProps): React__default.JSX.Element;
|
|
1164
1173
|
declare function useSearchAnnouncements(): {
|
|
1165
1174
|
announceSearchResults: (count: number, query: string) => void;
|
|
1166
1175
|
announceSearching: () => void;
|
|
@@ -1225,7 +1234,7 @@ interface ResizeHandleProps {
|
|
|
1225
1234
|
* </div>
|
|
1226
1235
|
* ```
|
|
1227
1236
|
*/
|
|
1228
|
-
declare function ResizeHandle({ onResize, minWidth, maxWidth, position, ariaLabel }: ResizeHandleProps):
|
|
1237
|
+
declare function ResizeHandle({ onResize, minWidth, maxWidth, position, ariaLabel }: ResizeHandleProps): React__default.JSX.Element;
|
|
1229
1238
|
|
|
1230
1239
|
interface ResourceTagsInlineProps {
|
|
1231
1240
|
resourceId: string;
|
|
@@ -1234,7 +1243,7 @@ interface ResourceTagsInlineProps {
|
|
|
1234
1243
|
onUpdate: (tags: string[]) => Promise<void>;
|
|
1235
1244
|
disabled?: boolean;
|
|
1236
1245
|
}
|
|
1237
|
-
declare function ResourceTagsInline({ tags }: ResourceTagsInlineProps):
|
|
1246
|
+
declare function ResourceTagsInline({ tags }: ResourceTagsInlineProps): React$1.JSX.Element | null;
|
|
1238
1247
|
|
|
1239
1248
|
type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
1240
1249
|
interface ToastMessage {
|
|
@@ -1257,7 +1266,7 @@ interface ToastContextType {
|
|
|
1257
1266
|
}
|
|
1258
1267
|
declare function ToastProvider({ children }: {
|
|
1259
1268
|
children: React__default.ReactNode;
|
|
1260
|
-
}):
|
|
1269
|
+
}): React__default.JSX.Element;
|
|
1261
1270
|
declare function useToast(): ToastContextType;
|
|
1262
1271
|
|
|
1263
1272
|
type ToolbarContext = 'document' | 'simple';
|
|
@@ -1271,7 +1280,7 @@ interface Props$9<T extends string = string> {
|
|
|
1271
1280
|
*
|
|
1272
1281
|
* @emits panel:toggle - Toggle panel visibility. Payload: { panel: string }
|
|
1273
1282
|
*/
|
|
1274
|
-
declare function Toolbar<T extends string = string>({ context, activePanel, isArchived }: Props$9<T>):
|
|
1283
|
+
declare function Toolbar<T extends string = string>({ context, activePanel, isArchived }: Props$9<T>): React$1.JSX.Element;
|
|
1275
1284
|
|
|
1276
1285
|
interface SettingsPanelProps {
|
|
1277
1286
|
showLineNumbers: boolean;
|
|
@@ -1288,28 +1297,28 @@ interface SettingsPanelProps {
|
|
|
1288
1297
|
* @emits settings:theme-changed - Theme changed by user. Payload: { theme: 'light' | 'dark' | 'system' }
|
|
1289
1298
|
* @emits settings:hover-delay-changed - Hover delay changed by user. Payload: { hoverDelayMs: number }
|
|
1290
1299
|
*/
|
|
1291
|
-
declare function SettingsPanel({ showLineNumbers, theme, locale, isPendingLocaleChange, hoverDelayMs }: SettingsPanelProps):
|
|
1300
|
+
declare function SettingsPanel({ showLineNumbers, theme, locale, isPendingLocaleChange, hoverDelayMs }: SettingsPanelProps): React__default.JSX.Element;
|
|
1292
1301
|
|
|
1293
1302
|
interface JsonLdViewProps {
|
|
1294
1303
|
annotation: Annotation;
|
|
1295
1304
|
onBack: () => void;
|
|
1296
1305
|
}
|
|
1297
|
-
declare function JsonLdView({ annotation, onBack }: JsonLdViewProps):
|
|
1306
|
+
declare function JsonLdView({ annotation, onBack }: JsonLdViewProps): React$1.JSX.Element;
|
|
1298
1307
|
|
|
1299
1308
|
interface SelectedTextDisplayProps {
|
|
1300
1309
|
exact: string;
|
|
1301
1310
|
}
|
|
1302
|
-
declare function SelectedTextDisplay({ exact }: SelectedTextDisplayProps):
|
|
1311
|
+
declare function SelectedTextDisplay({ exact }: SelectedTextDisplayProps): React__default.JSX.Element;
|
|
1303
1312
|
interface EntityTypeBadgesProps {
|
|
1304
1313
|
entityTypes: string;
|
|
1305
1314
|
}
|
|
1306
|
-
declare function EntityTypeBadges({ entityTypes }: EntityTypeBadgesProps):
|
|
1315
|
+
declare function EntityTypeBadges({ entityTypes }: EntityTypeBadgesProps): React__default.JSX.Element | null;
|
|
1307
1316
|
interface PopupHeaderProps {
|
|
1308
1317
|
title: string;
|
|
1309
1318
|
selectedText?: string;
|
|
1310
1319
|
onClose: () => void;
|
|
1311
1320
|
}
|
|
1312
|
-
declare function PopupHeader({ title, selectedText, onClose }: PopupHeaderProps):
|
|
1321
|
+
declare function PopupHeader({ title, selectedText, onClose }: PopupHeaderProps): React__default.JSX.Element;
|
|
1313
1322
|
interface PopupContainerProps {
|
|
1314
1323
|
children: React__default.ReactNode;
|
|
1315
1324
|
position: {
|
|
@@ -1320,7 +1329,7 @@ interface PopupContainerProps {
|
|
|
1320
1329
|
isOpen: boolean;
|
|
1321
1330
|
wide?: boolean;
|
|
1322
1331
|
}
|
|
1323
|
-
declare function PopupContainer({ children, position, onClose, isOpen, wide }: PopupContainerProps):
|
|
1332
|
+
declare function PopupContainer({ children, position, onClose, isOpen, wide }: PopupContainerProps): React__default.JSX.Element;
|
|
1324
1333
|
|
|
1325
1334
|
interface AnnotationOverlayProps {
|
|
1326
1335
|
annotations: Annotation[];
|
|
@@ -1339,7 +1348,7 @@ interface AnnotationOverlayProps {
|
|
|
1339
1348
|
* @emits beckon:hover - Annotation hovered or unhovered. Payload: { annotationId: string | null }
|
|
1340
1349
|
* @emits browse:click - Annotation clicked. Payload: { annotationId: string, motivation: Motivation }
|
|
1341
1350
|
*/
|
|
1342
|
-
declare function AnnotationOverlay({ annotations, imageWidth, imageHeight, displayWidth, displayHeight, session, hoveredAnnotationId, selectedAnnotationId, hoverDelayMs }: AnnotationOverlayProps):
|
|
1351
|
+
declare function AnnotationOverlay({ annotations, imageWidth, imageHeight, displayWidth, displayHeight, session, hoveredAnnotationId, selectedAnnotationId, hoverDelayMs }: AnnotationOverlayProps): React$1.JSX.Element;
|
|
1343
1352
|
|
|
1344
1353
|
type DrawingMode = 'rectangle' | 'polygon' | 'circle' | 'freeform' | null;
|
|
1345
1354
|
interface SvgDrawingCanvasProps {
|
|
@@ -1358,13 +1367,13 @@ interface SvgDrawingCanvasProps {
|
|
|
1358
1367
|
* @emits browse:click - Annotation clicked on canvas. Payload: { annotationId: string, motivation: Motivation }
|
|
1359
1368
|
* @emits mark:requested - New annotation drawn on canvas. Payload: { selector: SvgSelector, motivation: SelectionMotivation }
|
|
1360
1369
|
*/
|
|
1361
|
-
declare function SvgDrawingCanvas({ imageUrl, existingAnnotations, drawingMode, selectedMotivation, session, hoveredAnnotationId, selectedAnnotationId }: SvgDrawingCanvasProps):
|
|
1370
|
+
declare function SvgDrawingCanvas({ imageUrl, existingAnnotations, drawingMode, selectedMotivation, session, hoveredAnnotationId, selectedAnnotationId }: SvgDrawingCanvasProps): React__default.JSX.Element;
|
|
1362
1371
|
|
|
1363
1372
|
interface KeyboardShortcutsHelpModalProps {
|
|
1364
1373
|
isOpen: boolean;
|
|
1365
1374
|
onClose: () => void;
|
|
1366
1375
|
}
|
|
1367
|
-
declare function KeyboardShortcutsHelpModal({ isOpen, onClose }: KeyboardShortcutsHelpModalProps):
|
|
1376
|
+
declare function KeyboardShortcutsHelpModal({ isOpen, onClose }: KeyboardShortcutsHelpModalProps): React__default.JSX.Element;
|
|
1368
1377
|
|
|
1369
1378
|
/**
|
|
1370
1379
|
* Modal that surfaces when a 403 forbidden error is reported via
|
|
@@ -1376,7 +1385,7 @@ declare function KeyboardShortcutsHelpModal({ isOpen, onClose }: KeyboardShortcu
|
|
|
1376
1385
|
* signals (not the session itself) so headless sessions
|
|
1377
1386
|
* (workers/CLIs) don't carry dead observables.
|
|
1378
1387
|
*/
|
|
1379
|
-
declare function PermissionDeniedModal():
|
|
1388
|
+
declare function PermissionDeniedModal(): React$1.JSX.Element;
|
|
1380
1389
|
|
|
1381
1390
|
/**
|
|
1382
1391
|
* Modal that surfaces when the active KB's session expires (a 401
|
|
@@ -1388,7 +1397,7 @@ declare function PermissionDeniedModal(): react_jsx_runtime.JSX.Element;
|
|
|
1388
1397
|
* flag. Modal state lives on signals (not the session itself) so
|
|
1389
1398
|
* headless sessions (workers/CLIs) don't carry dead observables.
|
|
1390
1399
|
*/
|
|
1391
|
-
declare function SessionExpiredModal():
|
|
1400
|
+
declare function SessionExpiredModal(): React$1.JSX.Element;
|
|
1392
1401
|
|
|
1393
1402
|
interface Props$8 {
|
|
1394
1403
|
content: string;
|
|
@@ -1414,7 +1423,7 @@ interface Props$8 {
|
|
|
1414
1423
|
* @subscribes mark:shape-changed - Toolbar shape changed. Payload: { shape: string }
|
|
1415
1424
|
* @subscribes beckon:hover - Annotation hovered. Payload: { annotationId: string | null }
|
|
1416
1425
|
*/
|
|
1417
|
-
declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetResourceName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8):
|
|
1426
|
+
declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetResourceName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8): React$1.JSX.Element;
|
|
1418
1427
|
|
|
1419
1428
|
interface Props$7 {
|
|
1420
1429
|
rUri: ResourceId;
|
|
@@ -1424,7 +1433,7 @@ interface Props$7 {
|
|
|
1424
1433
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
1425
1434
|
routes: RouteBuilder;
|
|
1426
1435
|
}
|
|
1427
|
-
declare function AnnotationHistory({ rUri, hoveredAnnotationId, onEventHover, onEventClick, Link, routes }: Props$7):
|
|
1436
|
+
declare function AnnotationHistory({ rUri, hoveredAnnotationId, onEventHover, onEventClick, Link, routes }: Props$7): React__default.JSX.Element | null;
|
|
1428
1437
|
|
|
1429
1438
|
interface Props$6 {
|
|
1430
1439
|
content: string;
|
|
@@ -1449,7 +1458,7 @@ interface Props$6 {
|
|
|
1449
1458
|
* @subscribes beckon:hover - Highlight annotation on hover. Payload: { annotationId: string | null }
|
|
1450
1459
|
* @subscribes beckon:focus - Scroll to and highlight annotation. Payload: { annotationId: string }
|
|
1451
1460
|
*/
|
|
1452
|
-
declare const BrowseView: React$1.MemoExoticComponent<({ content, mimeType, resourceUri, annotations, selectedClick, annotateMode, hoverDelayMs }: Props$6) =>
|
|
1461
|
+
declare const BrowseView: React$1.MemoExoticComponent<({ content, mimeType, resourceUri, annotations, selectedClick, annotateMode, hoverDelayMs }: Props$6) => React$1.JSX.Element>;
|
|
1453
1462
|
|
|
1454
1463
|
type TranslateFn$4 = (key: string, params?: Record<string, string | number>) => string;
|
|
1455
1464
|
interface Props$5 {
|
|
@@ -1464,7 +1473,7 @@ interface Props$5 {
|
|
|
1464
1473
|
onEventClick?: (annotationId: string | null) => void;
|
|
1465
1474
|
onEventHover?: (annotationId: string | null) => void;
|
|
1466
1475
|
}
|
|
1467
|
-
declare function HistoryEvent({ event, annotations, allEvents, isRelated, t, Link, routes, onEventRef, onEventClick, onEventHover }: Props$5):
|
|
1476
|
+
declare function HistoryEvent({ event, annotations, allEvents, isRelated, t, Link, routes, onEventRef, onEventClick, onEventHover }: Props$5): React__default.JSX.Element;
|
|
1468
1477
|
|
|
1469
1478
|
/**
|
|
1470
1479
|
* ResourceViewer - Display and interact with resource content and annotations
|
|
@@ -1507,7 +1516,7 @@ interface Props$4 {
|
|
|
1507
1516
|
* @subscribes mark:shape-changed - Drawing shape changed. Payload: { shape: string }
|
|
1508
1517
|
* @subscribes browse:click - User clicked on annotation. Payload: { annotationId: string }
|
|
1509
1518
|
*/
|
|
1510
|
-
declare function ResourceViewer({ resource, annotations, generatingReferenceId, showLineNumbers, hoverDelayMs, hoveredAnnotationId: hoveredAnnotationIdProp }: Props$4):
|
|
1519
|
+
declare function ResourceViewer({ resource, annotations, generatingReferenceId, showLineNumbers, hoverDelayMs, hoveredAnnotationId: hoveredAnnotationIdProp }: Props$4): React__default.JSX.Element;
|
|
1511
1520
|
|
|
1512
1521
|
interface AssessmentEntryProps {
|
|
1513
1522
|
assessment: Annotation;
|
|
@@ -1515,7 +1524,7 @@ interface AssessmentEntryProps {
|
|
|
1515
1524
|
isHovered?: boolean;
|
|
1516
1525
|
ref?: Ref<HTMLDivElement>;
|
|
1517
1526
|
}
|
|
1518
|
-
declare function AssessmentEntry({ assessment, isFocused, isHovered, ref, }: AssessmentEntryProps):
|
|
1527
|
+
declare function AssessmentEntry({ assessment, isFocused, isHovered, ref, }: AssessmentEntryProps): React$1.JSX.Element;
|
|
1519
1528
|
|
|
1520
1529
|
type Motivation$5 = components['schemas']['Motivation'];
|
|
1521
1530
|
type JobProgress$6 = components['schemas']['JobProgress'];
|
|
@@ -1543,12 +1552,12 @@ interface AssessmentPanelProps {
|
|
|
1543
1552
|
* @emits mark:cancel-pending - Cancel pending assessment annotation. Payload: undefined
|
|
1544
1553
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
1545
1554
|
*/
|
|
1546
|
-
declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, locale, sourceLanguage, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps):
|
|
1555
|
+
declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, locale, sourceLanguage, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): React$1.JSX.Element;
|
|
1547
1556
|
|
|
1548
1557
|
interface Props$3 {
|
|
1549
1558
|
/**
|
|
1550
1559
|
* Connection state from `client.actor.state$`. See
|
|
1551
|
-
* `packages/
|
|
1560
|
+
* `packages/http-transport/src/state/domain/actor-state-unit.ts`.
|
|
1552
1561
|
*
|
|
1553
1562
|
* UI mapping:
|
|
1554
1563
|
* `open` | `reconnecting` | `initial` | `connecting`
|
|
@@ -1568,7 +1577,7 @@ interface Props$3 {
|
|
|
1568
1577
|
lastEventTimestamp?: string;
|
|
1569
1578
|
knowledgeBaseName?: string;
|
|
1570
1579
|
}
|
|
1571
|
-
declare function CollaborationPanel({ state, eventCount, lastEventTimestamp, knowledgeBaseName }: Props$3):
|
|
1580
|
+
declare function CollaborationPanel({ state, eventCount, lastEventTimestamp, knowledgeBaseName }: Props$3): React$1.JSX.Element;
|
|
1572
1581
|
|
|
1573
1582
|
interface CommentEntryProps {
|
|
1574
1583
|
comment: Annotation;
|
|
@@ -1577,7 +1586,7 @@ interface CommentEntryProps {
|
|
|
1577
1586
|
annotateMode?: boolean;
|
|
1578
1587
|
ref?: Ref<HTMLDivElement>;
|
|
1579
1588
|
}
|
|
1580
|
-
declare function CommentEntry({ comment, isFocused, isHovered, annotateMode, ref, }: CommentEntryProps):
|
|
1589
|
+
declare function CommentEntry({ comment, isFocused, isHovered, annotateMode, ref, }: CommentEntryProps): React$1.JSX.Element;
|
|
1581
1590
|
|
|
1582
1591
|
type Motivation$4 = components['schemas']['Motivation'];
|
|
1583
1592
|
type JobProgress$5 = components['schemas']['JobProgress'];
|
|
@@ -1605,7 +1614,7 @@ interface CommentsPanelProps {
|
|
|
1605
1614
|
* @emits mark:cancel-pending - Cancel pending comment annotation. Payload: undefined
|
|
1606
1615
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
1607
1616
|
*/
|
|
1608
|
-
declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, locale, sourceLanguage, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps):
|
|
1617
|
+
declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, locale, sourceLanguage, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): React$1.JSX.Element;
|
|
1609
1618
|
|
|
1610
1619
|
type JobProgress$4 = components['schemas']['JobProgress'];
|
|
1611
1620
|
interface AssistSectionProps {
|
|
@@ -1629,7 +1638,7 @@ interface AssistSectionProps {
|
|
|
1629
1638
|
* @emits mark:assist-request - Start assist for annotation type. Payload: { motivation: Motivation, options: { instructions?: string, tone?: string, density?: number } }
|
|
1630
1639
|
* @emits mark:progress-dismiss - Dismiss the annotation progress display
|
|
1631
1640
|
*/
|
|
1632
|
-
declare function AssistSection({ annotationType, isAssisting, locale, sourceLanguage, progress, }: AssistSectionProps):
|
|
1641
|
+
declare function AssistSection({ annotationType, isAssisting, locale, sourceLanguage, progress, }: AssistSectionProps): React$1.JSX.Element;
|
|
1633
1642
|
|
|
1634
1643
|
interface HighlightEntryProps {
|
|
1635
1644
|
highlight: Annotation;
|
|
@@ -1637,7 +1646,7 @@ interface HighlightEntryProps {
|
|
|
1637
1646
|
isHovered?: boolean;
|
|
1638
1647
|
ref?: Ref<HTMLDivElement>;
|
|
1639
1648
|
}
|
|
1640
|
-
declare function HighlightEntry({ highlight, isFocused, isHovered, ref, }: HighlightEntryProps):
|
|
1649
|
+
declare function HighlightEntry({ highlight, isFocused, isHovered, ref, }: HighlightEntryProps): React$1.JSX.Element;
|
|
1641
1650
|
|
|
1642
1651
|
type Motivation$3 = components['schemas']['Motivation'];
|
|
1643
1652
|
type JobProgress$3 = components['schemas']['JobProgress'];
|
|
@@ -1663,13 +1672,20 @@ interface HighlightPanelProps {
|
|
|
1663
1672
|
* @emits mark:create - Create new highlight annotation (auto-triggered). Payload: { motivation: 'highlighting', selector: Selector | Selector[], body: Body[] }
|
|
1664
1673
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
1665
1674
|
*/
|
|
1666
|
-
declare function HighlightPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, sourceLanguage, }: HighlightPanelProps):
|
|
1675
|
+
declare function HighlightPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, sourceLanguage, }: HighlightPanelProps): React$1.JSX.Element;
|
|
1667
1676
|
|
|
1668
|
-
type SemiontResource$1 = components['schemas']['ResourceDescriptor'];
|
|
1669
1677
|
interface Props$2 {
|
|
1670
|
-
|
|
1678
|
+
resourceId: ResourceId;
|
|
1671
1679
|
}
|
|
1672
|
-
|
|
1680
|
+
/**
|
|
1681
|
+
* Dereferences the resource's LD face (`GET /resources/:id/jsonld` via
|
|
1682
|
+
* `browse.resourceGraph`) and pretty-prints the full graph — descriptor +
|
|
1683
|
+
* annotations + inbound entity references — read-only. This is exactly what
|
|
1684
|
+
* an external linked-data client gets when dereferencing the resource's
|
|
1685
|
+
* `describedby` URI, so the panel doubles as a living end-to-end test of the
|
|
1686
|
+
* LD face. See `.plans/SIMPLER-JSON-LD.md` §5.
|
|
1687
|
+
*/
|
|
1688
|
+
declare function JsonLdPanel({ resourceId }: Props$2): React$1.JSX.Element;
|
|
1673
1689
|
|
|
1674
1690
|
interface PanelHeaderProps {
|
|
1675
1691
|
annotationType: 'highlight' | 'reference' | 'assessment' | 'comment' | 'tag';
|
|
@@ -1681,7 +1697,7 @@ interface PanelHeaderProps {
|
|
|
1681
1697
|
*
|
|
1682
1698
|
* Displays the annotation icon, translated title, and count in a consistent format
|
|
1683
1699
|
*/
|
|
1684
|
-
declare function PanelHeader({ count, title }: PanelHeaderProps):
|
|
1700
|
+
declare function PanelHeader({ count, title }: PanelHeaderProps): React$1.JSX.Element;
|
|
1685
1701
|
|
|
1686
1702
|
interface ReferenceEntryProps {
|
|
1687
1703
|
reference: Annotation;
|
|
@@ -1692,7 +1708,7 @@ interface ReferenceEntryProps {
|
|
|
1692
1708
|
isGenerating?: boolean;
|
|
1693
1709
|
ref?: Ref<HTMLDivElement>;
|
|
1694
1710
|
}
|
|
1695
|
-
declare function ReferenceEntry({ reference, isFocused, isHovered, routes, annotateMode, isGenerating, ref, }: ReferenceEntryProps):
|
|
1711
|
+
declare function ReferenceEntry({ reference, isFocused, isHovered, routes, annotateMode, isGenerating, ref, }: ReferenceEntryProps): React$1.JSX.Element;
|
|
1696
1712
|
|
|
1697
1713
|
type JobProgress$2 = components['schemas']['JobProgress'];
|
|
1698
1714
|
|
|
@@ -1730,7 +1746,7 @@ interface Props$1 {
|
|
|
1730
1746
|
* @emits mark:cancel-pending - Cancel pending reference annotation. Payload: undefined
|
|
1731
1747
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
1732
1748
|
*/
|
|
1733
|
-
declare function ReferencesPanel({ annotations, isAssisting, progress, annotateMode, Link, routes, allEntityTypes, generatingReferenceId, referencedBy, referencedByLoading, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, locale, sourceLanguage, }: Props$1):
|
|
1749
|
+
declare function ReferencesPanel({ annotations, isAssisting, progress, annotateMode, Link, routes, allEntityTypes, generatingReferenceId, referencedBy, referencedByLoading, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, locale, sourceLanguage, }: Props$1): React__default.JSX.Element;
|
|
1734
1750
|
|
|
1735
1751
|
type Agent = components['schemas']['Agent'];
|
|
1736
1752
|
interface Props {
|
|
@@ -1754,7 +1770,7 @@ interface Props {
|
|
|
1754
1770
|
* @emits mark:unarchive - Unarchive this resource
|
|
1755
1771
|
* @emits mark:archive - Archive this resource
|
|
1756
1772
|
*/
|
|
1757
|
-
declare function ResourceInfoPanel({ resourceId, documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, storageUri, isArchived, dateCreated, dateModified, wasAttributedTo, wasDerivedFrom, generator, }: Props):
|
|
1773
|
+
declare function ResourceInfoPanel({ resourceId, documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, storageUri, isArchived, dateCreated, dateModified, wasAttributedTo, wasDerivedFrom, generator, }: Props): React$1.JSX.Element;
|
|
1758
1774
|
|
|
1759
1775
|
interface StatisticsPanelProps {
|
|
1760
1776
|
highlights: Annotation[];
|
|
@@ -1763,7 +1779,7 @@ interface StatisticsPanelProps {
|
|
|
1763
1779
|
references: Annotation[];
|
|
1764
1780
|
tags: Annotation[];
|
|
1765
1781
|
}
|
|
1766
|
-
declare function StatisticsPanel({ highlights, comments, assessments, references, tags }: StatisticsPanelProps):
|
|
1782
|
+
declare function StatisticsPanel({ highlights, comments, assessments, references, tags }: StatisticsPanelProps): React$1.JSX.Element;
|
|
1767
1783
|
|
|
1768
1784
|
interface TagEntryProps {
|
|
1769
1785
|
tag: Annotation;
|
|
@@ -1771,7 +1787,7 @@ interface TagEntryProps {
|
|
|
1771
1787
|
isHovered?: boolean;
|
|
1772
1788
|
ref?: Ref<HTMLDivElement>;
|
|
1773
1789
|
}
|
|
1774
|
-
declare function TagEntry({ tag, isFocused, isHovered, ref, }: TagEntryProps):
|
|
1790
|
+
declare function TagEntry({ tag, isFocused, isHovered, ref, }: TagEntryProps): React$1.JSX.Element;
|
|
1775
1791
|
|
|
1776
1792
|
type Motivation$1 = components['schemas']['Motivation'];
|
|
1777
1793
|
type JobProgress$1 = components['schemas']['JobProgress'];
|
|
@@ -1801,7 +1817,7 @@ interface TaggingPanelProps {
|
|
|
1801
1817
|
* @emits mark:create - Create new tag annotation. Payload: { motivation: 'tagging', selector: Selector | Selector[], body: Body[] }
|
|
1802
1818
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
1803
1819
|
*/
|
|
1804
|
-
declare function TaggingPanel({ annotations, annotateMode, isAssisting, progress, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, locale, sourceLanguage, }: TaggingPanelProps):
|
|
1820
|
+
declare function TaggingPanel({ annotations, annotateMode, isAssisting, progress, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, locale, sourceLanguage, }: TaggingPanelProps): React$1.JSX.Element;
|
|
1805
1821
|
|
|
1806
1822
|
type JobProgress = components['schemas']['JobProgress'];
|
|
1807
1823
|
|
|
@@ -1847,14 +1863,14 @@ interface UnifiedAnnotationsPanelProps {
|
|
|
1847
1863
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
1848
1864
|
routes: RouteBuilder;
|
|
1849
1865
|
}
|
|
1850
|
-
declare function UnifiedAnnotationsPanel(props: UnifiedAnnotationsPanelProps):
|
|
1866
|
+
declare function UnifiedAnnotationsPanel(props: UnifiedAnnotationsPanelProps): React__default.JSX.Element;
|
|
1851
1867
|
|
|
1852
1868
|
interface ImageViewerProps {
|
|
1853
1869
|
imageUrl: string;
|
|
1854
1870
|
mimeType: string;
|
|
1855
1871
|
alt?: string;
|
|
1856
1872
|
}
|
|
1857
|
-
declare function ImageViewer({ imageUrl, alt }: ImageViewerProps):
|
|
1873
|
+
declare function ImageViewer({ imageUrl, alt }: ImageViewerProps): React$1.JSX.Element;
|
|
1858
1874
|
|
|
1859
1875
|
type TranslateFn$3 = (key: string, params?: Record<string, any>) => string;
|
|
1860
1876
|
interface FooterProps {
|
|
@@ -1870,12 +1886,12 @@ interface FooterProps {
|
|
|
1870
1886
|
/** Show About, Privacy Policy, Terms of Service, Cookie Preferences links. False for desktop apps. */
|
|
1871
1887
|
showPolicyLinks?: boolean;
|
|
1872
1888
|
}
|
|
1873
|
-
declare function Footer({ Link, routes, t, CookiePreferences, onOpenKeyboardHelp, sourceCodeUrl, showPolicyLinks, }: FooterProps):
|
|
1889
|
+
declare function Footer({ Link, routes, t, CookiePreferences, onOpenKeyboardHelp, sourceCodeUrl, showPolicyLinks, }: FooterProps): React__default.JSX.Element;
|
|
1874
1890
|
|
|
1875
1891
|
type TranslateFn$2 = (key: string, params?: Record<string, any>) => string;
|
|
1876
1892
|
interface NavigationMenuProps {
|
|
1877
1893
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
1878
|
-
routes: RouteBuilder
|
|
1894
|
+
routes: Partial<RouteBuilder>;
|
|
1879
1895
|
t: TranslateFn$2;
|
|
1880
1896
|
isAdmin?: boolean;
|
|
1881
1897
|
isModerator?: boolean;
|
|
@@ -1884,7 +1900,7 @@ interface NavigationMenuProps {
|
|
|
1884
1900
|
className?: string;
|
|
1885
1901
|
currentPath?: string;
|
|
1886
1902
|
}
|
|
1887
|
-
declare function NavigationMenu({ Link, routes, t, isAdmin, isModerator, onItemClick, className, currentPath }: NavigationMenuProps):
|
|
1903
|
+
declare function NavigationMenu({ Link, routes, t, isAdmin, isModerator, onItemClick, className, currentPath }: NavigationMenuProps): React__default.JSX.Element;
|
|
1888
1904
|
|
|
1889
1905
|
/**
|
|
1890
1906
|
* Props for ObservableLink component
|
|
@@ -1935,7 +1951,7 @@ interface ObservableLinkProps extends React__default.AnchorHTMLAttributes<HTMLAn
|
|
|
1935
1951
|
*
|
|
1936
1952
|
* @emits nav:link-clicked - Link clicked by user. Payload: { href: string, label?: string }
|
|
1937
1953
|
*/
|
|
1938
|
-
declare function ObservableLink({ href, label, onClick, children, ...anchorProps }: ObservableLinkProps):
|
|
1954
|
+
declare function ObservableLink({ href, label, onClick, children, ...anchorProps }: ObservableLinkProps): React__default.JSX.Element;
|
|
1939
1955
|
|
|
1940
1956
|
interface SimpleNavigationItem$1 {
|
|
1941
1957
|
name: string;
|
|
@@ -1969,7 +1985,7 @@ interface SimpleNavigationProps$1 {
|
|
|
1969
1985
|
*
|
|
1970
1986
|
* @emits shell:sidebar-toggle - Toggle sidebar collapsed/expanded state. Payload: undefined
|
|
1971
1987
|
*/
|
|
1972
|
-
declare function SimpleNavigation({ title, items, currentPath, LinkComponent, dropdownContent, isCollapsed, icons, collapseSidebarLabel, expandSidebarLabel }: SimpleNavigationProps$1):
|
|
1988
|
+
declare function SimpleNavigation({ title, items, currentPath, LinkComponent, dropdownContent, isCollapsed, icons, collapseSidebarLabel, expandSidebarLabel }: SimpleNavigationProps$1): React__default.JSX.Element;
|
|
1973
1989
|
|
|
1974
1990
|
/**
|
|
1975
1991
|
* Props for the sortable resource tab component
|
|
@@ -2037,13 +2053,13 @@ interface CollapsibleResourceNavigationProps {
|
|
|
2037
2053
|
* @emits tabs:close - Resource tab closed. Payload: { resourceId: string }
|
|
2038
2054
|
* @emits shell:sidebar-toggle - Toggle sidebar collapsed/expanded state. Payload: undefined
|
|
2039
2055
|
*/
|
|
2040
|
-
declare function CollapsibleResourceNavigation({ fixedItems, resources, isCollapsed, currentPath, LinkComponent, onNavigate, getResourceHref, className, translations, icons, navigationMenu }: CollapsibleResourceNavigationProps):
|
|
2056
|
+
declare function CollapsibleResourceNavigation({ fixedItems, resources, isCollapsed, currentPath, LinkComponent, onNavigate, getResourceHref, className, translations, icons, navigationMenu }: CollapsibleResourceNavigationProps): React__default.JSX.Element;
|
|
2041
2057
|
|
|
2042
2058
|
/**
|
|
2043
2059
|
* A sortable tab for an open resource in the navigation sidebar.
|
|
2044
2060
|
* Supports drag and drop when expanded, and compact icon-only view when collapsed.
|
|
2045
2061
|
*/
|
|
2046
|
-
declare function SortableResourceTab({ resource, isCollapsed, isActive, href, onClose, onReorder, index, totalCount, LinkComponent, translations, isDragging }: SortableResourceTabProps):
|
|
2062
|
+
declare function SortableResourceTab({ resource, isCollapsed, isActive, href, onClose, onReorder, index, totalCount, LinkComponent, translations, isDragging }: SortableResourceTabProps): React__default.JSX.Element;
|
|
2047
2063
|
|
|
2048
2064
|
interface SimpleNavigationItem {
|
|
2049
2065
|
name: string;
|
|
@@ -2129,7 +2145,7 @@ interface ReferenceWizardModalProps {
|
|
|
2129
2145
|
semanticScoringHelp: string;
|
|
2130
2146
|
};
|
|
2131
2147
|
}
|
|
2132
|
-
declare function ReferenceWizardModal({ isOpen, onClose, annotationId, resourceId, defaultTitle, entityTypes, locale, context, contextLoading, contextError, onGenerateSubmit, onLinkResource, onComposeNavigate, translations: t, }: ReferenceWizardModalProps):
|
|
2148
|
+
declare function ReferenceWizardModal({ isOpen, onClose, annotationId, resourceId, defaultTitle, entityTypes, locale, context, contextLoading, contextError, onGenerateSubmit, onLinkResource, onComposeNavigate, translations: t, }: ReferenceWizardModalProps): React$1.JSX.Element;
|
|
2133
2149
|
|
|
2134
2150
|
interface SearchModalProps$1 {
|
|
2135
2151
|
isOpen: boolean;
|
|
@@ -2147,7 +2163,7 @@ interface SearchModalProps$1 {
|
|
|
2147
2163
|
esc?: string;
|
|
2148
2164
|
};
|
|
2149
2165
|
}
|
|
2150
|
-
declare function SearchModal({ isOpen, onClose, onNavigate, translations }: SearchModalProps$1):
|
|
2166
|
+
declare function SearchModal({ isOpen, onClose, onNavigate, translations }: SearchModalProps$1): React__default.JSX.Element;
|
|
2151
2167
|
|
|
2152
2168
|
interface ResourceSearchModalProps$1 {
|
|
2153
2169
|
isOpen: boolean;
|
|
@@ -2162,7 +2178,7 @@ interface ResourceSearchModalProps$1 {
|
|
|
2162
2178
|
close?: string;
|
|
2163
2179
|
};
|
|
2164
2180
|
}
|
|
2165
|
-
declare function ResourceSearchModal({ isOpen, onClose, onSelect, searchTerm, translations }: ResourceSearchModalProps$1):
|
|
2181
|
+
declare function ResourceSearchModal({ isOpen, onClose, onSelect, searchTerm, translations }: ResourceSearchModalProps$1): React$1.JSX.Element;
|
|
2166
2182
|
|
|
2167
2183
|
/**
|
|
2168
2184
|
* Base modal props that all modals share
|
|
@@ -2219,20 +2235,20 @@ interface ResourceSearchModalProps extends BaseModalProps {
|
|
|
2219
2235
|
* These links are visually hidden but become visible when focused
|
|
2220
2236
|
* They allow keyboard users to quickly jump to main content areas
|
|
2221
2237
|
*/
|
|
2222
|
-
declare function SkipLinks():
|
|
2238
|
+
declare function SkipLinks(): React$1.JSX.Element;
|
|
2223
2239
|
|
|
2224
2240
|
interface StatusDisplayProps {
|
|
2225
2241
|
isFullyAuthenticated?: boolean;
|
|
2226
2242
|
isAuthenticated?: boolean;
|
|
2227
2243
|
hasValidBackendToken?: boolean;
|
|
2228
2244
|
}
|
|
2229
|
-
declare function StatusDisplay({ isFullyAuthenticated, isAuthenticated, hasValidBackendToken }: StatusDisplayProps):
|
|
2245
|
+
declare function StatusDisplay({ isFullyAuthenticated, isAuthenticated, hasValidBackendToken }: StatusDisplayProps): React$1.JSX.Element;
|
|
2230
2246
|
|
|
2231
|
-
declare function SessionTimer():
|
|
2247
|
+
declare function SessionTimer(): React$1.JSX.Element | null;
|
|
2232
2248
|
|
|
2233
|
-
declare function SessionExpiryBanner():
|
|
2249
|
+
declare function SessionExpiryBanner(): React$1.JSX.Element | null;
|
|
2234
2250
|
|
|
2235
|
-
declare function UserMenuSkeleton():
|
|
2251
|
+
declare function UserMenuSkeleton(): React$1.JSX.Element;
|
|
2236
2252
|
|
|
2237
2253
|
type TranslateFn$1 = (key: string) => string;
|
|
2238
2254
|
interface SemiontBrandingProps {
|
|
@@ -2243,7 +2259,7 @@ interface SemiontBrandingProps {
|
|
|
2243
2259
|
animated?: boolean;
|
|
2244
2260
|
compactTagline?: boolean;
|
|
2245
2261
|
}
|
|
2246
|
-
declare function SemiontBranding({ t, className, size, showTagline, animated, compactTagline }: SemiontBrandingProps):
|
|
2262
|
+
declare function SemiontBranding({ t, className, size, showTagline, animated, compactTagline }: SemiontBrandingProps): React$1.JSX.Element;
|
|
2247
2263
|
|
|
2248
2264
|
/**
|
|
2249
2265
|
* Translation function type for framework-agnostic components
|
|
@@ -2264,7 +2280,7 @@ interface UnifiedHeaderProps {
|
|
|
2264
2280
|
isModerator?: boolean;
|
|
2265
2281
|
currentPath?: string;
|
|
2266
2282
|
}
|
|
2267
|
-
declare function UnifiedHeader({ Link, routes, t, tHome, showBranding, brandingLink, variant, isAuthenticated, isAdmin, isModerator, currentPath }: UnifiedHeaderProps):
|
|
2283
|
+
declare function UnifiedHeader({ Link, routes, t, tHome, showBranding, brandingLink, variant, isAuthenticated, isAdmin, isModerator, currentPath }: UnifiedHeaderProps): React__default.JSX.Element;
|
|
2268
2284
|
|
|
2269
2285
|
interface NavigationMenuHelper {
|
|
2270
2286
|
(onClose: () => void): React__default.ReactNode;
|
|
@@ -2283,7 +2299,7 @@ interface LeftSidebarProps {
|
|
|
2283
2299
|
isModerator?: boolean;
|
|
2284
2300
|
currentPath?: string;
|
|
2285
2301
|
}
|
|
2286
|
-
declare function LeftSidebar({ Link, routes, t, tHome, children, brandingLink, collapsible, storageKey, isAdmin, isModerator, currentPath }: LeftSidebarProps):
|
|
2302
|
+
declare function LeftSidebar({ Link, routes, t, tHome, children, brandingLink, collapsible, storageKey, isAdmin, isModerator, currentPath }: LeftSidebarProps): React__default.JSX.Element;
|
|
2287
2303
|
|
|
2288
2304
|
interface PageLayoutProps {
|
|
2289
2305
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
@@ -2300,7 +2316,7 @@ interface PageLayoutProps {
|
|
|
2300
2316
|
}>;
|
|
2301
2317
|
onOpenKeyboardHelp?: () => void;
|
|
2302
2318
|
}
|
|
2303
|
-
declare function PageLayout({ Link, routes, t, tNav, tHome, children, className, showAuthLinks, CookiePreferences, onOpenKeyboardHelp }: PageLayoutProps):
|
|
2319
|
+
declare function PageLayout({ Link, routes, t, tNav, tHome, children, className, showAuthLinks, CookiePreferences, onOpenKeyboardHelp }: PageLayoutProps): React__default.JSX.Element;
|
|
2304
2320
|
|
|
2305
2321
|
interface SemiontFaviconProps {
|
|
2306
2322
|
size?: number;
|
|
@@ -2308,7 +2324,7 @@ interface SemiontFaviconProps {
|
|
|
2308
2324
|
variant?: 'gradient' | 'solid' | 'outline';
|
|
2309
2325
|
background?: boolean;
|
|
2310
2326
|
}
|
|
2311
|
-
declare function SemiontFavicon({ size, className, variant, background }: SemiontFaviconProps):
|
|
2327
|
+
declare function SemiontFavicon({ size, className, variant, background }: SemiontFaviconProps): React$1.JSX.Element;
|
|
2312
2328
|
|
|
2313
2329
|
declare const faviconPaths: {
|
|
2314
2330
|
readonly ico: "/favicons/favicon.ico";
|
|
@@ -2321,6 +2337,13 @@ declare const faviconPaths: {
|
|
|
2321
2337
|
readonly manifest: "/favicons/site.webmanifest";
|
|
2322
2338
|
};
|
|
2323
2339
|
|
|
2340
|
+
/**
|
|
2341
|
+
* CSS-Agnostic Button Component
|
|
2342
|
+
*
|
|
2343
|
+
* This button uses data attributes instead of hardcoded Tailwind classes,
|
|
2344
|
+
* allowing users to style it with any CSS solution.
|
|
2345
|
+
*/
|
|
2346
|
+
|
|
2324
2347
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2325
2348
|
/**
|
|
2326
2349
|
* Ref forwarded to the underlying button element
|
|
@@ -2359,7 +2382,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
2359
2382
|
*/
|
|
2360
2383
|
active?: boolean;
|
|
2361
2384
|
}
|
|
2362
|
-
declare function Button({ variant, size, fullWidth, loading, leftIcon, rightIcon, iconOnly, active, className, disabled, children, type, ref, ...props }: ButtonProps):
|
|
2385
|
+
declare function Button({ variant, size, fullWidth, loading, leftIcon, rightIcon, iconOnly, active, className, disabled, children, type, ref, ...props }: ButtonProps): React__default.JSX.Element;
|
|
2363
2386
|
/**
|
|
2364
2387
|
* Button Group Component
|
|
2365
2388
|
*
|
|
@@ -2569,14 +2592,14 @@ type TransitionToken = keyof typeof tokens.transitions;
|
|
|
2569
2592
|
interface ComposeLoadingStateProps {
|
|
2570
2593
|
message: string;
|
|
2571
2594
|
}
|
|
2572
|
-
declare function ComposeLoadingState({ message }: ComposeLoadingStateProps):
|
|
2595
|
+
declare function ComposeLoadingState({ message }: ComposeLoadingStateProps): React$1.JSX.Element;
|
|
2573
2596
|
|
|
2574
2597
|
/**
|
|
2575
2598
|
* ResourceLoadingState - Loading state component for resource viewer
|
|
2576
2599
|
*
|
|
2577
2600
|
* Pure React component - no Next.js dependencies.
|
|
2578
2601
|
*/
|
|
2579
|
-
declare function ResourceLoadingState():
|
|
2602
|
+
declare function ResourceLoadingState(): React$1.JSX.Element;
|
|
2580
2603
|
|
|
2581
2604
|
/**
|
|
2582
2605
|
* ResourceErrorState - Error state component for resource viewer
|
|
@@ -2587,7 +2610,14 @@ interface ResourceErrorStateProps {
|
|
|
2587
2610
|
error: unknown;
|
|
2588
2611
|
onRetry: () => void;
|
|
2589
2612
|
}
|
|
2590
|
-
declare function ResourceErrorState({ error, onRetry }: ResourceErrorStateProps):
|
|
2613
|
+
declare function ResourceErrorState({ error, onRetry }: ResourceErrorStateProps): React$1.JSX.Element;
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* AdminDevOpsPage Component
|
|
2617
|
+
*
|
|
2618
|
+
* Pure React component for the admin devops page.
|
|
2619
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
2620
|
+
*/
|
|
2591
2621
|
|
|
2592
2622
|
interface DevOpsFeature {
|
|
2593
2623
|
title: string;
|
|
@@ -2613,7 +2643,7 @@ interface AdminDevOpsPageProps {
|
|
|
2613
2643
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
2614
2644
|
Toolbar: React__default.ComponentType<any>;
|
|
2615
2645
|
}
|
|
2616
|
-
declare function AdminDevOpsPage({ suggestedFeatures, theme, showLineNumbers, activePanel, translations: t, StatusDisplay, ToolbarPanels, Toolbar, }: AdminDevOpsPageProps):
|
|
2646
|
+
declare function AdminDevOpsPage({ suggestedFeatures, theme, showLineNumbers, activePanel, translations: t, StatusDisplay, ToolbarPanels, Toolbar, }: AdminDevOpsPageProps): React__default.JSX.Element;
|
|
2617
2647
|
|
|
2618
2648
|
/**
|
|
2619
2649
|
* ExportCard — Backup trigger
|
|
@@ -2631,7 +2661,7 @@ interface ExportCardProps {
|
|
|
2631
2661
|
isExporting: boolean;
|
|
2632
2662
|
translations: ExportCardTranslations;
|
|
2633
2663
|
}
|
|
2634
|
-
declare function ExportCard({ onExport, isExporting, translations: t }: ExportCardProps):
|
|
2664
|
+
declare function ExportCard({ onExport, isExporting, translations: t }: ExportCardProps): React$1.JSX.Element;
|
|
2635
2665
|
|
|
2636
2666
|
/**
|
|
2637
2667
|
* ShellStateUnit — app-shell state: which toolbar panel is open, tab-bar
|
|
@@ -2691,6 +2721,12 @@ declare function createExchangeStateUnit(browse: ShellStateUnit, exportFn: (para
|
|
|
2691
2721
|
includeArchived?: boolean;
|
|
2692
2722
|
}) => Promise<BackendDownload>, importFn: (file: File) => Observable<ProgressEvent>): ExchangeStateUnit;
|
|
2693
2723
|
|
|
2724
|
+
/**
|
|
2725
|
+
* ImportCard — File drop zone, preview, and import trigger
|
|
2726
|
+
*
|
|
2727
|
+
* Pure React component. All state and handlers passed as props.
|
|
2728
|
+
*/
|
|
2729
|
+
|
|
2694
2730
|
interface ImportCardTranslations {
|
|
2695
2731
|
title: string;
|
|
2696
2732
|
description: string;
|
|
@@ -2714,7 +2750,7 @@ interface ImportCardProps {
|
|
|
2714
2750
|
isImporting: boolean;
|
|
2715
2751
|
translations: ImportCardTranslations;
|
|
2716
2752
|
}
|
|
2717
|
-
declare function ImportCard({ onFileSelected, onImport, onCancel, selectedFile, preview, isImporting, translations: t, }: ImportCardProps):
|
|
2753
|
+
declare function ImportCard({ onFileSelected, onImport, onCancel, selectedFile, preview, isImporting, translations: t, }: ImportCardProps): React__default.JSX.Element;
|
|
2718
2754
|
|
|
2719
2755
|
/**
|
|
2720
2756
|
* ImportProgress — Shows SSE-driven progress during restore
|
|
@@ -2723,16 +2759,12 @@ declare function ImportCard({ onFileSelected, onImport, onCancel, selectedFile,
|
|
|
2723
2759
|
*/
|
|
2724
2760
|
interface ImportProgressTranslations {
|
|
2725
2761
|
phaseStarted: string;
|
|
2726
|
-
phaseEntityTypes: string;
|
|
2727
|
-
phaseResources: string;
|
|
2728
|
-
phaseAnnotations: string;
|
|
2729
2762
|
phaseComplete: string;
|
|
2730
2763
|
phaseError: string;
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
blobs: string;
|
|
2764
|
+
statsEventsReplayed: string;
|
|
2765
|
+
statsResourcesCreated: string;
|
|
2766
|
+
statsAnnotationsCreated: string;
|
|
2767
|
+
statsEntityTypesAdded: string;
|
|
2736
2768
|
}
|
|
2737
2769
|
interface ImportProgressProps {
|
|
2738
2770
|
phase: string;
|
|
@@ -2740,7 +2772,13 @@ interface ImportProgressProps {
|
|
|
2740
2772
|
result?: Record<string, unknown>;
|
|
2741
2773
|
translations: ImportProgressTranslations;
|
|
2742
2774
|
}
|
|
2743
|
-
declare function ImportProgress({ phase, message, result, translations: t }: ImportProgressProps):
|
|
2775
|
+
declare function ImportProgress({ phase, message, result, translations: t }: ImportProgressProps): React$1.JSX.Element;
|
|
2776
|
+
|
|
2777
|
+
/**
|
|
2778
|
+
* AdminExchangePage — Backup/Restore admin page
|
|
2779
|
+
*
|
|
2780
|
+
* Pure React component. All state and handlers passed as props.
|
|
2781
|
+
*/
|
|
2744
2782
|
|
|
2745
2783
|
interface AdminExchangePageTranslations {
|
|
2746
2784
|
title: string;
|
|
@@ -2768,7 +2806,14 @@ interface AdminExchangePageProps {
|
|
|
2768
2806
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
2769
2807
|
Toolbar: React__default.ComponentType<any>;
|
|
2770
2808
|
}
|
|
2771
|
-
declare function AdminExchangePage({ onExport, isExporting, onFileSelected, onImport, onCancelImport, selectedFile, preview, isImporting, importPhase, importMessage, importResult, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminExchangePageProps):
|
|
2809
|
+
declare function AdminExchangePage({ onExport, isExporting, onFileSelected, onImport, onCancelImport, selectedFile, preview, isImporting, importPhase, importMessage, importResult, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminExchangePageProps): React__default.JSX.Element;
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* AdminSecurityPage Component
|
|
2813
|
+
*
|
|
2814
|
+
* Pure React component for the admin security configuration page.
|
|
2815
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
2816
|
+
*/
|
|
2772
2817
|
|
|
2773
2818
|
interface OAuthProvider {
|
|
2774
2819
|
name: string;
|
|
@@ -2803,7 +2848,14 @@ interface AdminSecurityPageProps {
|
|
|
2803
2848
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
2804
2849
|
Toolbar: React__default.ComponentType<any>;
|
|
2805
2850
|
}
|
|
2806
|
-
declare function AdminSecurityPage({ providers, allowedDomains, isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminSecurityPageProps):
|
|
2851
|
+
declare function AdminSecurityPage({ providers, allowedDomains, isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminSecurityPageProps): React__default.JSX.Element;
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* LinkedDataPage — JSON-LD Export/Import moderation page
|
|
2855
|
+
*
|
|
2856
|
+
* Pure React component. All state and handlers passed as props.
|
|
2857
|
+
* Reuses ExportCard, ImportCard, and ImportProgress from admin-exchange.
|
|
2858
|
+
*/
|
|
2807
2859
|
|
|
2808
2860
|
interface LinkedDataPageTranslations {
|
|
2809
2861
|
title: string;
|
|
@@ -2831,7 +2883,14 @@ interface LinkedDataPageProps {
|
|
|
2831
2883
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
2832
2884
|
Toolbar: React__default.ComponentType<any>;
|
|
2833
2885
|
}
|
|
2834
|
-
declare function LinkedDataPage({ onExport, isExporting, onFileSelected, onImport, onCancelImport, selectedFile, preview, isImporting, importPhase, importMessage, importResult, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: LinkedDataPageProps):
|
|
2886
|
+
declare function LinkedDataPage({ onExport, isExporting, onFileSelected, onImport, onCancelImport, selectedFile, preview, isImporting, importPhase, importMessage, importResult, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: LinkedDataPageProps): React__default.JSX.Element;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* AdminUsersPage Component
|
|
2890
|
+
*
|
|
2891
|
+
* Pure React component for the admin users management page.
|
|
2892
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
2893
|
+
*/
|
|
2835
2894
|
|
|
2836
2895
|
interface AdminUser {
|
|
2837
2896
|
id: string;
|
|
@@ -2912,7 +2971,17 @@ interface AdminUsersPageProps {
|
|
|
2912
2971
|
};
|
|
2913
2972
|
};
|
|
2914
2973
|
}
|
|
2915
|
-
declare function AdminUsersPage({ users, userStats, isLoadingUsers, isLoadingStats, onUpdateUser, onDeleteUser, onAddUser, onExportUsers, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, buttonStyles, }: AdminUsersPageProps):
|
|
2974
|
+
declare function AdminUsersPage({ users, userStats, isLoadingUsers, isLoadingStats, onUpdateUser, onDeleteUser, onAddUser, onExportUsers, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, buttonStyles, }: AdminUsersPageProps): React__default.JSX.Element;
|
|
2975
|
+
|
|
2976
|
+
/**
|
|
2977
|
+
* SignInForm - Pure React component for authentication
|
|
2978
|
+
*
|
|
2979
|
+
* Supports both Google OAuth and email/password credentials.
|
|
2980
|
+
* No Next.js dependencies - all data via props.
|
|
2981
|
+
*
|
|
2982
|
+
* When backendUrl is provided it is shown as a locked read-only field.
|
|
2983
|
+
* When backendUrl is omitted the user must enter a backend URL to connect to.
|
|
2984
|
+
*/
|
|
2916
2985
|
|
|
2917
2986
|
interface SignInFormProps {
|
|
2918
2987
|
/**
|
|
@@ -2981,7 +3050,14 @@ interface SignInFormProps {
|
|
|
2981
3050
|
* When backendUrl is provided (re-auth to known workspace) the URL field is locked.
|
|
2982
3051
|
* When backendUrl is omitted (new connection) the user enters the URL themselves.
|
|
2983
3052
|
*/
|
|
2984
|
-
declare function SignInForm({ onGoogleSignIn, onCredentialsSignIn, backendUrl, error, showCredentialsAuth, isLoading, translations: t, }: SignInFormProps):
|
|
3053
|
+
declare function SignInForm({ onGoogleSignIn, onCredentialsSignIn, backendUrl, error, showCredentialsAuth, isLoading, translations: t, }: SignInFormProps): React__default.JSX.Element;
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* SignUpForm - Pure React component for Google OAuth sign-up
|
|
3057
|
+
*
|
|
3058
|
+
* This component is extracted from the page to enable easy testing.
|
|
3059
|
+
* It has no Next.js dependencies and receives all data via props.
|
|
3060
|
+
*/
|
|
2985
3061
|
|
|
2986
3062
|
interface SignUpFormProps {
|
|
2987
3063
|
/**
|
|
@@ -3013,7 +3089,13 @@ interface SignUpFormProps {
|
|
|
3013
3089
|
* Renders the sign-up form with Google OAuth button.
|
|
3014
3090
|
* Manages loading state internally.
|
|
3015
3091
|
*/
|
|
3016
|
-
declare function SignUpForm({ onSignUp, Link, translations: t }: SignUpFormProps):
|
|
3092
|
+
declare function SignUpForm({ onSignUp, Link, translations: t }: SignUpFormProps): React__default.JSX.Element;
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* AuthErrorDisplay - Pure React component for displaying authentication errors
|
|
3096
|
+
*
|
|
3097
|
+
* No Next.js dependencies - receives error type and translations via props.
|
|
3098
|
+
*/
|
|
3017
3099
|
|
|
3018
3100
|
interface AuthErrorDisplayProps {
|
|
3019
3101
|
/**
|
|
@@ -3041,7 +3123,14 @@ interface AuthErrorDisplayProps {
|
|
|
3041
3123
|
*
|
|
3042
3124
|
* Displays authentication error messages with a link to try again.
|
|
3043
3125
|
*/
|
|
3044
|
-
declare function AuthErrorDisplay({ errorType, Link, translations: t }: AuthErrorDisplayProps):
|
|
3126
|
+
declare function AuthErrorDisplay({ errorType, Link, translations: t }: AuthErrorDisplayProps): React__default.JSX.Element;
|
|
3127
|
+
|
|
3128
|
+
/**
|
|
3129
|
+
* WelcomePage Component
|
|
3130
|
+
*
|
|
3131
|
+
* Pure React component for the welcome/terms acceptance page.
|
|
3132
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
3133
|
+
*/
|
|
3045
3134
|
|
|
3046
3135
|
interface WelcomePageProps {
|
|
3047
3136
|
userName?: string;
|
|
@@ -3096,7 +3185,14 @@ interface WelcomePageProps {
|
|
|
3096
3185
|
PageLayout: React__default.ComponentType<any>;
|
|
3097
3186
|
Link: React__default.ComponentType<any>;
|
|
3098
3187
|
}
|
|
3099
|
-
declare function WelcomePage({ userName, status, isProcessing, onAccept, onDecline, translations: t, PageLayout, Link, }: WelcomePageProps):
|
|
3188
|
+
declare function WelcomePage({ userName, status, isProcessing, onAccept, onDecline, translations: t, PageLayout, Link, }: WelcomePageProps): React__default.JSX.Element;
|
|
3189
|
+
|
|
3190
|
+
/**
|
|
3191
|
+
* EntityTagsPage Component
|
|
3192
|
+
*
|
|
3193
|
+
* Pure React component for managing entity tags.
|
|
3194
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
3195
|
+
*/
|
|
3100
3196
|
|
|
3101
3197
|
interface EntityTagsPageProps {
|
|
3102
3198
|
entityTypes: string[];
|
|
@@ -3121,7 +3217,14 @@ interface EntityTagsPageProps {
|
|
|
3121
3217
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
3122
3218
|
Toolbar: React__default.ComponentType<any>;
|
|
3123
3219
|
}
|
|
3124
|
-
declare function EntityTagsPage({ entityTypes, error, newTag, onNewTagChange, onAddTag, isAddingTag, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: EntityTagsPageProps):
|
|
3220
|
+
declare function EntityTagsPage({ entityTypes, error, newTag, onNewTagChange, onAddTag, isAddingTag, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: EntityTagsPageProps): React__default.JSX.Element;
|
|
3221
|
+
|
|
3222
|
+
/**
|
|
3223
|
+
* RecentDocumentsPage Component
|
|
3224
|
+
*
|
|
3225
|
+
* Pure React component for viewing recent documents.
|
|
3226
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
3227
|
+
*/
|
|
3125
3228
|
|
|
3126
3229
|
interface RecentDocumentsPageProps {
|
|
3127
3230
|
hasDocuments: boolean;
|
|
@@ -3141,7 +3244,14 @@ interface RecentDocumentsPageProps {
|
|
|
3141
3244
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
3142
3245
|
Toolbar: React__default.ComponentType<any>;
|
|
3143
3246
|
}
|
|
3144
|
-
declare function RecentDocumentsPage({ isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: RecentDocumentsPageProps):
|
|
3247
|
+
declare function RecentDocumentsPage({ isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: RecentDocumentsPageProps): React__default.JSX.Element;
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* TagSchemasPage Component
|
|
3251
|
+
*
|
|
3252
|
+
* Pure React component for viewing tag schemas.
|
|
3253
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
3254
|
+
*/
|
|
3145
3255
|
|
|
3146
3256
|
interface TagSchemasPageProps {
|
|
3147
3257
|
schemas: TagSchema[];
|
|
@@ -3158,7 +3268,7 @@ interface TagSchemasPageProps {
|
|
|
3158
3268
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
3159
3269
|
Toolbar: React__default.ComponentType<any>;
|
|
3160
3270
|
}
|
|
3161
|
-
declare function TagSchemasPage({ schemas, isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: TagSchemasPageProps):
|
|
3271
|
+
declare function TagSchemasPage({ schemas, isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: TagSchemasPageProps): React__default.JSX.Element;
|
|
3162
3272
|
|
|
3163
3273
|
type ComposeMode = 'new' | 'clone' | 'reference';
|
|
3164
3274
|
interface ComposeParams {
|
|
@@ -3213,6 +3323,14 @@ interface ComposePageStateUnit extends StateUnit {
|
|
|
3213
3323
|
}
|
|
3214
3324
|
declare function createComposePageStateUnit(client: SemiontClient, browse: ShellStateUnit, params: ComposeParams, auth?: AccessToken): ComposePageStateUnit;
|
|
3215
3325
|
|
|
3326
|
+
/**
|
|
3327
|
+
* ResourceComposePage Component
|
|
3328
|
+
*
|
|
3329
|
+
* Pure React component for creating and editing resources.
|
|
3330
|
+
* Supports three modes: new resource, clone, and reference completion.
|
|
3331
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
3332
|
+
*/
|
|
3333
|
+
|
|
3216
3334
|
interface ResourceComposePageProps {
|
|
3217
3335
|
mode: 'new' | 'clone' | 'reference';
|
|
3218
3336
|
cloneData?: CloneData | null;
|
|
@@ -3283,7 +3401,7 @@ interface SaveResourceParams {
|
|
|
3283
3401
|
annotationUri?: string;
|
|
3284
3402
|
sourceDocumentId?: string;
|
|
3285
3403
|
}
|
|
3286
|
-
declare function ResourceComposePage({ mode, cloneData, referenceData, gatheredContext, availableEntityTypes, initialLocale, theme, showLineNumbers, hoverDelayMs, activePanel, onSaveResource, onCancel, uploadProgress, translations: t, ToolbarPanels, Toolbar, }: ResourceComposePageProps):
|
|
3404
|
+
declare function ResourceComposePage({ mode, cloneData, referenceData, gatheredContext, availableEntityTypes, initialLocale, theme, showLineNumbers, hoverDelayMs, activePanel, onSaveResource, onCancel, uploadProgress, translations: t, ToolbarPanels, Toolbar, }: ResourceComposePageProps): React__default.JSX.Element;
|
|
3287
3405
|
|
|
3288
3406
|
/**
|
|
3289
3407
|
* Inline upload-progress affordance for the compose page.
|
|
@@ -3307,6 +3425,13 @@ interface UploadProgressBarProps {
|
|
|
3307
3425
|
}
|
|
3308
3426
|
declare function UploadProgressBar({ progress, label }: UploadProgressBarProps): React__default.ReactElement | null;
|
|
3309
3427
|
|
|
3428
|
+
/**
|
|
3429
|
+
* ResourceDiscoveryPage Component
|
|
3430
|
+
*
|
|
3431
|
+
* Pure React component for resource discovery and search.
|
|
3432
|
+
* All dependencies passed as props - no Next.js hooks!
|
|
3433
|
+
*/
|
|
3434
|
+
|
|
3310
3435
|
interface ResourceDiscoveryPageProps {
|
|
3311
3436
|
recentDocuments: ResourceDescriptor[];
|
|
3312
3437
|
searchDocuments: ResourceDescriptor[];
|
|
@@ -3315,6 +3440,8 @@ interface ResourceDiscoveryPageProps {
|
|
|
3315
3440
|
isSearching: boolean;
|
|
3316
3441
|
searchQuery: string;
|
|
3317
3442
|
onSearchQueryChange: (query: string) => void;
|
|
3443
|
+
selectedEntityType: string;
|
|
3444
|
+
onSelectedEntityTypeChange: (entityType: string) => void;
|
|
3318
3445
|
theme: 'light' | 'dark';
|
|
3319
3446
|
showLineNumbers: boolean;
|
|
3320
3447
|
activePanel: string | null;
|
|
@@ -3340,7 +3467,14 @@ interface ResourceDiscoveryPageProps {
|
|
|
3340
3467
|
};
|
|
3341
3468
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
3342
3469
|
}
|
|
3343
|
-
declare function ResourceDiscoveryPage({ recentDocuments, searchDocuments, entityTypes, isLoadingRecent, isSearching, searchQuery, onSearchQueryChange, theme, showLineNumbers, activePanel, onNavigateToResource, onNavigateToCompose, translations: t, ToolbarPanels, }: ResourceDiscoveryPageProps):
|
|
3470
|
+
declare function ResourceDiscoveryPage({ recentDocuments, searchDocuments, entityTypes, isLoadingRecent, isSearching, searchQuery, onSearchQueryChange, selectedEntityType, onSelectedEntityTypeChange, theme, showLineNumbers, activePanel, onNavigateToResource, onNavigateToCompose, translations: t, ToolbarPanels, }: ResourceDiscoveryPageProps): React__default.JSX.Element;
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* ResourceCard Component
|
|
3474
|
+
*
|
|
3475
|
+
* Pure component for displaying a single resource in the discovery grid.
|
|
3476
|
+
* Handles keyboard navigation and accessibility.
|
|
3477
|
+
*/
|
|
3344
3478
|
|
|
3345
3479
|
interface ResourceCardProps {
|
|
3346
3480
|
resource: ResourceDescriptor;
|
|
@@ -3349,7 +3483,14 @@ interface ResourceCardProps {
|
|
|
3349
3483
|
archivedLabel: string;
|
|
3350
3484
|
createdLabel: string;
|
|
3351
3485
|
}
|
|
3352
|
-
declare const ResourceCard: React__default.MemoExoticComponent<({ resource, onOpen, tabIndex, archivedLabel, createdLabel }: ResourceCardProps) =>
|
|
3486
|
+
declare const ResourceCard: React__default.MemoExoticComponent<({ resource, onOpen, tabIndex, archivedLabel, createdLabel }: ResourceCardProps) => React__default.JSX.Element>;
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* ResourceViewerPage - Self-contained resource viewer component
|
|
3490
|
+
*
|
|
3491
|
+
* Handles all data loading, event subscriptions, and side effects internally.
|
|
3492
|
+
* Only requires minimal props from the framework layer (routing, modals).
|
|
3493
|
+
*/
|
|
3353
3494
|
|
|
3354
3495
|
type SemiontResource = ResourceDescriptor;
|
|
3355
3496
|
interface ResourceViewerPageProps {
|
|
@@ -3419,7 +3560,7 @@ interface ResourceViewerPageProps {
|
|
|
3419
3560
|
* @subscribes browse:reference-navigate - Navigate to a referenced document
|
|
3420
3561
|
* @subscribes browse:entity-type-clicked - Navigate filtered by entity type
|
|
3421
3562
|
*/
|
|
3422
|
-
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels, refetchDocument, streamStatus, knowledgeBaseName, }: ResourceViewerPageProps):
|
|
3563
|
+
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels, refetchDocument, streamStatus, knowledgeBaseName, }: ResourceViewerPageProps): React__default.JSX.Element;
|
|
3423
3564
|
|
|
3424
3565
|
interface HoverEmitterProps {
|
|
3425
3566
|
onMouseEnter: () => void;
|
|
@@ -3506,12 +3647,22 @@ interface WelcomeStateUnit extends StateUnit {
|
|
|
3506
3647
|
}
|
|
3507
3648
|
declare function createWelcomeStateUnit(client: SemiontClient): WelcomeStateUnit;
|
|
3508
3649
|
|
|
3650
|
+
interface DiscoverSearchPipeline {
|
|
3651
|
+
query$: Observable<string>;
|
|
3652
|
+
state$: Observable<{
|
|
3653
|
+
results: ResourceDescriptor[];
|
|
3654
|
+
isSearching: boolean;
|
|
3655
|
+
}>;
|
|
3656
|
+
setQuery(value: string): void;
|
|
3657
|
+
}
|
|
3509
3658
|
interface DiscoverStateUnit extends StateUnit {
|
|
3510
3659
|
browse: ShellStateUnit;
|
|
3511
|
-
search:
|
|
3660
|
+
search: DiscoverSearchPipeline;
|
|
3512
3661
|
recentResources$: Observable<ResourceDescriptor[]>;
|
|
3513
3662
|
entityTypes$: Observable<string[]>;
|
|
3514
3663
|
isLoadingRecent$: Observable<boolean>;
|
|
3664
|
+
selectedEntityType$: Observable<string>;
|
|
3665
|
+
setSelectedEntityType(value: string): void;
|
|
3515
3666
|
}
|
|
3516
3667
|
declare function createDiscoverStateUnit(client: SemiontClient, browse: ShellStateUnit): DiscoverStateUnit;
|
|
3517
3668
|
|
|
@@ -3558,4 +3709,4 @@ declare function useShellStateUnit(): ShellStateUnit;
|
|
|
3558
3709
|
declare function useObservable<T>(obs$: Observable<T> | null | undefined): T | undefined;
|
|
3559
3710
|
|
|
3560
3711
|
export { ANNOTATORS, AVAILABLE_LOCALES, AdminDevOpsPage, AdminExchangePage, AdminSecurityPage, AdminUsersPage, AnnotateReferencesProgressWidget, AnnotateToolbar, AnnotateView, AnnotationHistory, AnnotationOverlay, AnnotationProvider, AssessmentEntry, AssessmentPanel, AssistSection, AsyncErrorBoundary, AuthErrorDisplay, BrowseView, Button, ButtonGroup, COMMON_PANELS, CodeMirrorRenderer, CollaborationPanel, CollapsibleResourceNavigation, CommentEntry, CommentsPanel, ComposeLoadingState, EntityTagsPage, EntityTypeBadges, ErrorBoundary, ExportCard, Footer, HighlightEntry, HighlightPanel, HistoryEvent, ImageURLSchema, ImageViewer, ImportCard, ImportProgress, JsonLdPanel, JsonLdView, KeyboardShortcutsHelpModal, LeftSidebar, LinkedDataPage, LiveRegionProvider, NavigationMenu, OAuthUserSchema, ObservableLink, PageLayout, PanelHeader, PermissionDeniedModal, PopupContainer, PopupHeader, ProtectedErrorBoundary, RESOURCE_PANELS, RecentDocumentsPage, ReferenceEntry, ReferenceResolutionWidget, ReferenceWizardModal, ReferencesPanel, ResizeHandle, ResourceAnnotationsProvider, ResourceCard, ResourceComposePage, ResourceDiscoveryPage, ResourceErrorState, ResourceInfoPanel, ResourceLoadingState, ResourceSearchModal, ResourceTagsInline, ResourceViewer, ResourceViewerPage, SearchModal, SelectedTextDisplay, SemiontBranding, SemiontFavicon, SemiontProvider, SessionExpiredModal, SessionExpiryBanner, SessionTimer, SettingsPanel, SignInForm, SignUpForm, SimpleNavigation, SkipLinks, SortableResourceTab, StatisticsPanel, StatusDisplay, SvgDrawingCanvas, TagEntry, TagSchemasPage, TaggingPanel, ThemeProvider, ToastContainer, ToastProvider, Toolbar, TranslationProvider, UnifiedAnnotationsPanel, UnifiedHeader, UploadProgressBar, UserMenuSkeleton, WebBrowserStorage, WelcomePage, applyHighlights, buildSourceToRenderedMap, buildTextNodeIndex, buttonStyles, clearHighlights, createAdminSecurityStateUnit, createAdminUsersStateUnit, createComposePageStateUnit, createDiscoverStateUnit, createEntityTagsStateUnit, createExchangeStateUnit, createResourceLoaderStateUnit, createResourceViewerPageStateUnit, createSessionStateUnit, createShellStateUnit, createWelcomeStateUnit, cssVariables, faviconPaths, formatTime, generateCSSVariables, getResourceIcon, getSelectedShapeForSelectorType, getSelectorType, getShortcutDisplay, getSupportedShapes, hideWidgetPreview, isShapeSupported, jsonLightHighlightStyle, jsonLightTheme, resolveAnnotationRanges, sanitizeImageURL, saveSelectedShapeForSelectorType, showWidgetPreview, supportsDetection, toOverlayAnnotations, tokens, useAnnotationManager, useDebounce, useDebouncedCallback, useDocumentAnnouncements, useDoubleKeyPress, useDropdown, useEventSubscription, useEventSubscriptions, useFormAnnouncements, useHoverDelay, useHoverEmitter, useIsTyping, useKeyboardShortcuts, useLanguageChangeAnnouncements, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useObservable, useObservableExternalNavigation, useObservableRouter, usePanelWidth, usePreloadTranslations, useResourceAnnotations, useResourceContent, useResourceLoadingAnnouncements, useRovingTabIndex, useSearchAnnouncements, useSemiont, useSessionExpiry, useShellStateUnit, useStateUnit, useTheme, useToast, useTranslations };
|
|
3561
|
-
export type { AdminDevOpsPageProps, AdminExchangePageProps, AdminExchangePageTranslations, AdminSecurityPageProps, AdminSecurityStateUnit, AdminUser, AdminUserStats, AdminUsersPageProps, AdminUsersStateUnit, AnnotationConfig, AnnotationCreationHandler, AnnotationGroups, AnnotationHandlers, AnnotationManager, AnnotationProviderProps, AnnotationUIState, AnnotationsCollection, Annotator, AuthErrorDisplayProps, AvailableLocale, BorderRadiusToken, ButtonGroupProps, ButtonProps, ClickAction, CloneData, CollapsibleResourceNavigationProps, ColorToken, ComposeLoadingStateProps, ComposeMode, ComposePageStateUnit, ComposeParams, CreateAnnotationParams, CreateConfig, DeleteAnnotationParams, DetectionConfig, DevOpsFeature, DiscoverStateUnit, DrawingMode, EntityTagsPageProps, EntityTagsStateUnit, ExchangeStateUnit, ExportCardProps, ExportCardTranslations, HoverEmitterProps, ImportCardProps, ImportCardTranslations, ImportPreview, ImportProgressProps, ImportProgressTranslations, KeyboardShortcut, LinkComponentProps, LinkedDataPageProps, LinkedDataPageTranslations, Motivation$8 as Motivation, NavigationItem, NavigationMenuHelper, NavigationProps, OAuthProvider, OAuthUser, ObservableLinkProps, OverlayAnnotation, RecentDocumentsPageProps, ReferenceData, ReferenceWizardModalProps, ResolvedTheme, ResourceCardProps, ResourceComposePageProps, ResourceDiscoveryPageProps, ResourceErrorStateProps, ResourceLoaderStateUnit, ResourceSearchModalProps, ResourceViewerPageProps, ResourceViewerPageStateUnit, RouteBuilder, SaveResourceParams$1 as SaveResourceParams, SearchModalProps, SelectionMotivation, SelectorType, SemiontProviderProps, SemiontResource$
|
|
3712
|
+
export type { AdminDevOpsPageProps, AdminExchangePageProps, AdminExchangePageTranslations, AdminSecurityPageProps, AdminSecurityStateUnit, AdminUser, AdminUserStats, AdminUsersPageProps, AdminUsersStateUnit, AnnotationConfig, AnnotationCreationHandler, AnnotationGroups, AnnotationHandlers, AnnotationManager, AnnotationProviderProps, AnnotationUIState, AnnotationsCollection, Annotator, AuthErrorDisplayProps, AvailableLocale, BorderRadiusToken, ButtonGroupProps, ButtonProps, ClickAction, CloneData, CollapsibleResourceNavigationProps, ColorToken, ComposeLoadingStateProps, ComposeMode, ComposePageStateUnit, ComposeParams, CreateAnnotationParams, CreateConfig, DeleteAnnotationParams, DetectionConfig, DevOpsFeature, DiscoverStateUnit, DrawingMode, EntityTagsPageProps, EntityTagsStateUnit, ExchangeStateUnit, ExportCardProps, ExportCardTranslations, HoverEmitterProps, ImportCardProps, ImportCardTranslations, ImportPreview, ImportProgressProps, ImportProgressTranslations, KeyboardShortcut, LinkComponentProps, LinkedDataPageProps, LinkedDataPageTranslations, Motivation$8 as Motivation, NavigationItem, NavigationMenuHelper, NavigationProps, OAuthProvider, OAuthUser, ObservableLinkProps, OverlayAnnotation, RecentDocumentsPageProps, ReferenceData, ReferenceWizardModalProps, ResolvedTheme, ResourceCardProps, ResourceComposePageProps, ResourceDiscoveryPageProps, ResourceErrorStateProps, ResourceLoaderStateUnit, ResourceSearchModalProps, ResourceViewerPageProps, ResourceViewerPageStateUnit, RouteBuilder, SaveResourceParams$1 as SaveResourceParams, SearchModalProps, SelectionMotivation, SelectorType, SemiontProviderProps, SemiontResource$1 as SemiontResource, SessionStateUnit, ShadowToken, ShapeType, ShellStateUnit, ShellStateUnitOptions, SignInFormProps, SignUpFormProps, SimpleNavigationItem, SimpleNavigationProps, SortableResourceTabProps, SpacingToken, TagSchemasPageProps, TextSegment, TextSelection, Theme, ToastMessage, ToastType, ToolbarPanelType, TransitionToken, TranslationManager, TranslationProviderProps, TypographyToken, UICreateAnnotationParams, UploadProgressBarProps, UseResourceContentResult, WelcomePageProps, WelcomeStateUnit, WizardState };
|