@semiont/react-ui 0.2.35-build.99 → 0.2.36
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 +1 -0
- package/dist/{EventBusContext-DMI4uwYk.d.mts → EventBusContext-CLnb2LmB.d.mts} +5 -5
- package/dist/{PdfAnnotationCanvas.client-HNYRKFDS.mjs → PdfAnnotationCanvas.client-COQREPXU.mjs} +7 -7
- package/dist/PdfAnnotationCanvas.client-COQREPXU.mjs.map +1 -0
- package/dist/ar-7SUXNE34.mjs +376 -0
- package/dist/ar-7SUXNE34.mjs.map +1 -0
- package/dist/bn-XOET3DOI.mjs +376 -0
- package/dist/bn-XOET3DOI.mjs.map +1 -0
- package/dist/{chunk-YI5IX5ZA.mjs → chunk-2HGWOLVN.mjs} +1 -1
- package/dist/{chunk-YI5IX5ZA.mjs.map → chunk-2HGWOLVN.mjs.map} +1 -1
- package/dist/{chunk-3FIQXKQF.mjs → chunk-Q2KV6Y2J.mjs} +28 -28
- package/dist/{chunk-MWQ5CNKW.mjs → chunk-ZPV43WN2.mjs} +11 -11
- package/dist/chunk-ZPV43WN2.mjs.map +1 -0
- package/dist/cs-X63DXX7L.mjs +376 -0
- package/dist/cs-X63DXX7L.mjs.map +1 -0
- package/dist/da-OWTCV57A.mjs +376 -0
- package/dist/da-OWTCV57A.mjs.map +1 -0
- package/dist/de-77BMFDVF.mjs +376 -0
- package/dist/de-77BMFDVF.mjs.map +1 -0
- package/dist/el-FIBNLH2V.mjs +376 -0
- package/dist/el-FIBNLH2V.mjs.map +1 -0
- package/dist/fa-3N4CIWE6.mjs +376 -0
- package/dist/fa-3N4CIWE6.mjs.map +1 -0
- package/dist/fi-JOM3M7Z4.mjs +376 -0
- package/dist/fi-JOM3M7Z4.mjs.map +1 -0
- package/dist/fr-56QSXS7E.mjs +376 -0
- package/dist/fr-56QSXS7E.mjs.map +1 -0
- package/dist/he-SNAXPJEK.mjs +376 -0
- package/dist/he-SNAXPJEK.mjs.map +1 -0
- package/dist/hi-CRBRD5TB.mjs +376 -0
- package/dist/hi-CRBRD5TB.mjs.map +1 -0
- package/dist/id-BRCVLICF.mjs +376 -0
- package/dist/id-BRCVLICF.mjs.map +1 -0
- package/dist/index.d.mts +169 -165
- package/dist/index.mjs +317 -313
- package/dist/index.mjs.map +1 -1
- package/dist/it-M2Z27BNB.mjs +376 -0
- package/dist/it-M2Z27BNB.mjs.map +1 -0
- package/dist/ja-TZUKW7HD.mjs +376 -0
- package/dist/ja-TZUKW7HD.mjs.map +1 -0
- package/dist/ko-NKBGGOL6.mjs +376 -0
- package/dist/ko-NKBGGOL6.mjs.map +1 -0
- package/dist/ms-XFXPN6RX.mjs +376 -0
- package/dist/ms-XFXPN6RX.mjs.map +1 -0
- package/dist/nl-MVYXAS5C.mjs +379 -0
- package/dist/nl-MVYXAS5C.mjs.map +1 -0
- package/dist/no-XOLO4JPV.mjs +376 -0
- package/dist/no-XOLO4JPV.mjs.map +1 -0
- package/dist/pl-TRWLMMC4.mjs +376 -0
- package/dist/pl-TRWLMMC4.mjs.map +1 -0
- package/dist/pt-M3TE24UI.mjs +376 -0
- package/dist/pt-M3TE24UI.mjs.map +1 -0
- package/dist/ro-QBFG2T64.mjs +376 -0
- package/dist/ro-QBFG2T64.mjs.map +1 -0
- package/dist/sv-IUECBXWX.mjs +376 -0
- package/dist/sv-IUECBXWX.mjs.map +1 -0
- package/dist/test-utils.d.mts +2 -2
- package/dist/test-utils.mjs +2 -2
- package/dist/th-US7KIN5Q.mjs +376 -0
- package/dist/th-US7KIN5Q.mjs.map +1 -0
- package/dist/tr-DWJ2FFUK.mjs +376 -0
- package/dist/tr-DWJ2FFUK.mjs.map +1 -0
- package/dist/uk-M4ZE4DPZ.mjs +376 -0
- package/dist/uk-M4ZE4DPZ.mjs.map +1 -0
- package/dist/vi-FERZNPSH.mjs +376 -0
- package/dist/vi-FERZNPSH.mjs.map +1 -0
- package/dist/zh-3J2I3WYK.mjs +376 -0
- package/dist/zh-3J2I3WYK.mjs.map +1 -0
- package/package.json +3 -3
- package/src/components/AnnotateReferencesProgressWidget.tsx +5 -5
- package/src/components/CodeMirrorRenderer.tsx +5 -5
- package/src/components/Toolbar.tsx +2 -2
- package/src/components/annotation/AnnotateToolbar.tsx +9 -9
- package/src/components/annotation/__tests__/AnnotateToolbar.test.tsx +17 -17
- package/src/components/image-annotation/AnnotationOverlay.tsx +10 -10
- package/src/components/image-annotation/SvgDrawingCanvas.tsx +4 -4
- package/src/components/navigation/CollapsibleResourceNavigation.tsx +7 -7
- package/src/components/navigation/ObservableLink.tsx +3 -3
- package/src/components/navigation/SimpleNavigation.tsx +2 -2
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +8 -8
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +2 -0
- package/src/components/resource/AnnotateView.tsx +12 -12
- package/src/components/resource/BrowseView.tsx +9 -9
- package/src/components/resource/ResourceViewer.tsx +23 -23
- package/src/components/resource/__tests__/BrowseView.test.tsx +27 -27
- package/src/components/resource/__tests__/ResourceViewer.mode-switch.test.tsx +1 -1
- package/src/components/resource/panels/AssessmentEntry.tsx +2 -2
- package/src/components/resource/panels/AssessmentPanel.tsx +7 -7
- package/src/components/resource/panels/AssistSection.tsx +5 -5
- package/src/components/resource/panels/CommentEntry.tsx +2 -2
- package/src/components/resource/panels/CommentsPanel.tsx +7 -7
- package/src/components/resource/panels/HighlightEntry.tsx +2 -2
- package/src/components/resource/panels/HighlightPanel.tsx +5 -5
- package/src/components/resource/panels/ReferenceEntry.tsx +8 -8
- package/src/components/resource/panels/ReferencesPanel.tsx +10 -10
- package/src/components/resource/panels/ResourceInfoPanel.tsx +6 -6
- package/src/components/resource/panels/TagEntry.tsx +2 -2
- package/src/components/resource/panels/TaggingPanel.tsx +8 -8
- package/src/components/resource/panels/UnifiedAnnotationsPanel.tsx +2 -2
- package/src/components/resource/panels/__tests__/AssessmentPanel.test.tsx +4 -4
- package/src/components/resource/panels/__tests__/AssistSection.test.tsx +4 -4
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +8 -8
- package/src/components/resource/panels/__tests__/CommentsPanel.test.tsx +3 -3
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +1 -1
- package/src/components/resource/panels/__tests__/ReferencesPanel.test.tsx +3 -3
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +9 -9
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +5 -5
- package/src/features/admin-devops/components/AdminDevOpsPage.tsx +2 -1
- package/src/features/admin-security/components/AdminSecurityPage.tsx +2 -1
- package/src/features/admin-users/components/AdminUsersPage.tsx +2 -1
- package/src/features/moderate-entity-tags/components/EntityTagsPage.tsx +2 -1
- package/src/features/moderate-recent/components/RecentDocumentsPage.tsx +2 -1
- package/src/features/moderate-tag-schemas/components/TagSchemasPage.tsx +2 -1
- package/src/features/resource-compose/components/ResourceComposePage.tsx +2 -1
- package/src/features/resource-discovery/components/ResourceDiscoveryPage.tsx +2 -1
- package/src/features/resource-viewer/__tests__/AnnotationCreationPending.test.tsx +26 -26
- package/src/features/resource-viewer/__tests__/AnnotationDeletionIntegration.test.tsx +21 -21
- package/src/features/resource-viewer/__tests__/AnnotationProgressDismissal.test.tsx +23 -23
- package/src/features/resource-viewer/__tests__/{ResolutionFlowIntegration.test.tsx → BindFlowIntegration.test.tsx} +49 -49
- package/src/features/resource-viewer/__tests__/DetectionFlowBug.test.tsx +18 -18
- package/src/features/resource-viewer/__tests__/DetectionFlowIntegration.test.tsx +19 -19
- package/src/features/resource-viewer/__tests__/ResourceMutations.test.tsx +19 -19
- package/src/features/resource-viewer/__tests__/ToastNotifications.test.tsx +13 -13
- package/src/features/resource-viewer/__tests__/{GenerationFlowIntegration.test.tsx → YieldFlowIntegration.test.tsx} +34 -34
- package/src/features/resource-viewer/__tests__/annotation-progress-flow.test.tsx +11 -11
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +55 -55
- package/translations/ar.json +298 -298
- package/translations/bn.json +298 -298
- package/translations/cs.json +295 -295
- package/translations/da.json +282 -282
- package/translations/de.json +281 -281
- package/translations/el.json +298 -298
- package/translations/fa.json +298 -298
- package/translations/fi.json +298 -298
- package/translations/fr.json +279 -279
- package/translations/he.json +298 -298
- package/translations/hi.json +298 -298
- package/translations/id.json +295 -295
- package/translations/it.json +299 -299
- package/translations/ja.json +298 -298
- package/translations/ko.json +298 -298
- package/translations/ms.json +296 -296
- package/translations/nl.json +299 -296
- package/translations/no.json +292 -292
- package/translations/pl.json +297 -297
- package/translations/pt.json +294 -294
- package/translations/ro.json +298 -298
- package/translations/sv.json +293 -293
- package/translations/th.json +298 -298
- package/translations/tr.json +298 -298
- package/translations/uk.json +298 -298
- package/translations/vi.json +298 -298
- package/translations/zh.json +298 -298
- package/dist/PdfAnnotationCanvas.client-HNYRKFDS.mjs.map +0 -1
- package/dist/ar-MDB7HC5S.mjs +0 -376
- package/dist/ar-MDB7HC5S.mjs.map +0 -1
- package/dist/bn-3SAV2ZEM.mjs +0 -376
- package/dist/bn-3SAV2ZEM.mjs.map +0 -1
- package/dist/chunk-MWQ5CNKW.mjs.map +0 -1
- package/dist/cs-AWCETEUV.mjs +0 -376
- package/dist/cs-AWCETEUV.mjs.map +0 -1
- package/dist/da-UZZHXYLC.mjs +0 -376
- package/dist/da-UZZHXYLC.mjs.map +0 -1
- package/dist/de-LQFWN6S5.mjs +0 -376
- package/dist/de-LQFWN6S5.mjs.map +0 -1
- package/dist/el-IWOETBJ7.mjs +0 -376
- package/dist/el-IWOETBJ7.mjs.map +0 -1
- package/dist/fa-BVEJZT5S.mjs +0 -376
- package/dist/fa-BVEJZT5S.mjs.map +0 -1
- package/dist/fi-JBNCGGA6.mjs +0 -376
- package/dist/fi-JBNCGGA6.mjs.map +0 -1
- package/dist/fr-OLH7PNGI.mjs +0 -376
- package/dist/fr-OLH7PNGI.mjs.map +0 -1
- package/dist/he-KOJQ4HMA.mjs +0 -376
- package/dist/he-KOJQ4HMA.mjs.map +0 -1
- package/dist/hi-BKJFZXAY.mjs +0 -376
- package/dist/hi-BKJFZXAY.mjs.map +0 -1
- package/dist/id-DPLHJVNP.mjs +0 -376
- package/dist/id-DPLHJVNP.mjs.map +0 -1
- package/dist/it-JXHAM7NL.mjs +0 -376
- package/dist/it-JXHAM7NL.mjs.map +0 -1
- package/dist/ja-DQRAO3PU.mjs +0 -376
- package/dist/ja-DQRAO3PU.mjs.map +0 -1
- package/dist/ko-6IFCOP6F.mjs +0 -376
- package/dist/ko-6IFCOP6F.mjs.map +0 -1
- package/dist/ms-KF5S2TLL.mjs +0 -376
- package/dist/ms-KF5S2TLL.mjs.map +0 -1
- package/dist/nl-2GUUZLQM.mjs +0 -376
- package/dist/nl-2GUUZLQM.mjs.map +0 -1
- package/dist/no-2IBCZGEF.mjs +0 -376
- package/dist/no-2IBCZGEF.mjs.map +0 -1
- package/dist/pl-ZEUBJ7YU.mjs +0 -376
- package/dist/pl-ZEUBJ7YU.mjs.map +0 -1
- package/dist/pt-WLAFIZWQ.mjs +0 -376
- package/dist/pt-WLAFIZWQ.mjs.map +0 -1
- package/dist/ro-K56IXFGU.mjs +0 -376
- package/dist/ro-K56IXFGU.mjs.map +0 -1
- package/dist/sv-VFJLMJRY.mjs +0 -376
- package/dist/sv-VFJLMJRY.mjs.map +0 -1
- package/dist/th-RICLQ2GW.mjs +0 -376
- package/dist/th-RICLQ2GW.mjs.map +0 -1
- package/dist/tr-SALXWE2M.mjs +0 -376
- package/dist/tr-SALXWE2M.mjs.map +0 -1
- package/dist/uk-3U3T3O2E.mjs +0 -376
- package/dist/uk-3U3T3O2E.mjs.map +0 -1
- package/dist/vi-LIVNZXOB.mjs +0 -376
- package/dist/vi-LIVNZXOB.mjs.map +0 -1
- package/dist/zh-KDUAZPX3.mjs +0 -376
- package/dist/zh-KDUAZPX3.mjs.map +0 -1
- /package/dist/{chunk-3FIQXKQF.mjs.map → chunk-Q2KV6Y2J.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _semiont_core from '@semiont/core';
|
|
2
|
-
import { components, ResourceUri, Selector, AnnotationUri, ResourceAnnotationUri, ResourceEvent, EventMap, EventBus,
|
|
2
|
+
import { components, ResourceUri, Selector, AnnotationUri, ResourceAnnotationUri, ResourceEvent, EventMap, EventBus, MarkProgress, StoredEvent, paths, Motivation as Motivation$9, YieldProgress, YieldContext } from '@semiont/core';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ComponentType, ReactNode, KeyboardEvent as KeyboardEvent$1, Component, ErrorInfo } from 'react';
|
|
6
|
-
import { O as OpenResourcesManager, S as SessionManager, T as TranslationManager } from './EventBusContext-
|
|
7
|
-
export {
|
|
6
|
+
import { O as OpenResourcesManager, S as SessionManager, T as TranslationManager } from './EventBusContext-CLnb2LmB.mjs';
|
|
7
|
+
export { E as EventBusProvider, a as EventBusProviderProps, b as OpenResourceFromManager, c as SessionState, r as resetEventBusForTesting, u as useEventBus } from './EventBusContext-CLnb2LmB.mjs';
|
|
8
8
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
9
9
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
10
10
|
import { SemiontApiClient, ValidationResult } from '@semiont/api-client';
|
|
@@ -531,7 +531,7 @@ declare function useAnnotations(): {
|
|
|
531
531
|
annotation: _semiont_core.components["schemas"]["Annotation"];
|
|
532
532
|
sourceResource: _semiont_core.components["schemas"]["ResourceDescriptor"];
|
|
533
533
|
targetResource?: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
|
|
534
|
-
context?: _semiont_core.components["schemas"]["
|
|
534
|
+
context?: _semiont_core.components["schemas"]["YieldContext"];
|
|
535
535
|
sourceContext?: {
|
|
536
536
|
before: string;
|
|
537
537
|
selected: string;
|
|
@@ -836,10 +836,10 @@ interface AnnotateToolbarProps {
|
|
|
836
836
|
/**
|
|
837
837
|
* Toolbar for annotation controls with mode, selection, click, and shape options
|
|
838
838
|
*
|
|
839
|
-
* @emits
|
|
840
|
-
* @emits
|
|
841
|
-
* @emits
|
|
842
|
-
* @emits
|
|
839
|
+
* @emits mark:selection-changed - Selection motivation changed. Payload: { motivation: SelectionMotivation | null }
|
|
840
|
+
* @emits mark:click-changed - Click action mode changed. Payload: { action: ClickAction }
|
|
841
|
+
* @emits mark:shape-changed - Drawing shape changed. Payload: { shape: ShapeType }
|
|
842
|
+
* @emits mark:mode-toggled - View mode toggled between browse and annotate. Payload: undefined
|
|
843
843
|
*/
|
|
844
844
|
declare function AnnotateToolbar({ selectedMotivation, selectedClick, showSelectionGroup, showDeleteButton, showShapeGroup, selectedShape, mediaType, annotateMode, annotators }: AnnotateToolbarProps): react_jsx_runtime.JSX.Element;
|
|
845
845
|
|
|
@@ -1174,7 +1174,7 @@ interface Router {
|
|
|
1174
1174
|
* Use this to wrap your router (Next.js, React Router, etc.) when you want
|
|
1175
1175
|
* navigation actions to be observable through the NavigationEventBus.
|
|
1176
1176
|
*
|
|
1177
|
-
* @emits
|
|
1177
|
+
* @emits browse:router-push - Router navigation requested. Payload: { path: string, reason?: string }
|
|
1178
1178
|
*
|
|
1179
1179
|
* @example
|
|
1180
1180
|
* ```typescript
|
|
@@ -1196,13 +1196,13 @@ declare function useObservableRouter<T extends Router>(baseRouter: T): T;
|
|
|
1196
1196
|
* Request navigation with event emission
|
|
1197
1197
|
*
|
|
1198
1198
|
* This hook emits a navigation request event. The app must subscribe to
|
|
1199
|
-
* '
|
|
1199
|
+
* 'browse:external-navigate' and perform the actual navigation using
|
|
1200
1200
|
* its router (Next.js, React Router, etc.) to enable client-side routing.
|
|
1201
1201
|
*
|
|
1202
1202
|
* If no subscriber handles the event, falls back to window.location.href
|
|
1203
1203
|
* after a brief delay to allow for event handling.
|
|
1204
1204
|
*
|
|
1205
|
-
* @emits
|
|
1205
|
+
* @emits browse:external-navigate - External navigation requested. Payload: { url: string, resourceId?: string, cancelFallback: () => void }
|
|
1206
1206
|
*
|
|
1207
1207
|
* The payload includes a `cancelFallback` function that subscribers must call to
|
|
1208
1208
|
* prevent the window.location fallback from firing. Subscribers that handle the
|
|
@@ -1217,7 +1217,7 @@ declare function useObservableRouter<T extends Router>(baseRouter: T): T;
|
|
|
1217
1217
|
* // In app (frontend package) - subscribe, cancel fallback, and handle with Next.js router
|
|
1218
1218
|
* const router = useRouter();
|
|
1219
1219
|
* useEventSubscriptions({
|
|
1220
|
-
* '
|
|
1220
|
+
* 'browse:external-navigate': ({ url, cancelFallback }) => {
|
|
1221
1221
|
* cancelFallback(); // Prevent window.location fallback
|
|
1222
1222
|
* router.push(url); // Client-side navigation
|
|
1223
1223
|
* },
|
|
@@ -1529,7 +1529,7 @@ declare function useCacheManager(): CacheManager;
|
|
|
1529
1529
|
*
|
|
1530
1530
|
* @example
|
|
1531
1531
|
* ```tsx
|
|
1532
|
-
* useEventSubscription('
|
|
1532
|
+
* useEventSubscription('mark:created', ({ annotation }) => {
|
|
1533
1533
|
* // This always uses the latest props/state
|
|
1534
1534
|
* triggerSparkleAnimation(annotation.id);
|
|
1535
1535
|
* });
|
|
@@ -1542,8 +1542,8 @@ declare function useEventSubscription<K extends keyof EventMap>(eventName: K, ha
|
|
|
1542
1542
|
* @example
|
|
1543
1543
|
* ```tsx
|
|
1544
1544
|
* useEventSubscriptions({
|
|
1545
|
-
* '
|
|
1546
|
-
* '
|
|
1545
|
+
* 'mark:created': ({ annotation }) => setNewAnnotation(annotation),
|
|
1546
|
+
* 'mark:deleted': ({ annotationId }) => removeAnnotation(annotationId),
|
|
1547
1547
|
* });
|
|
1548
1548
|
* ```
|
|
1549
1549
|
*/
|
|
@@ -1755,7 +1755,7 @@ declare function CodeMirrorRenderer({ content, segments, onChange, editable, new
|
|
|
1755
1755
|
|
|
1756
1756
|
type Motivation$6 = components['schemas']['Motivation'];
|
|
1757
1757
|
interface AnnotateReferencesProgressWidgetProps {
|
|
1758
|
-
progress:
|
|
1758
|
+
progress: MarkProgress | null;
|
|
1759
1759
|
annotationType?: Motivation$6 | 'reference';
|
|
1760
1760
|
}
|
|
1761
1761
|
/**
|
|
@@ -1910,7 +1910,7 @@ interface Props$9<T extends string = string> {
|
|
|
1910
1910
|
/**
|
|
1911
1911
|
* Toolbar component for panel navigation
|
|
1912
1912
|
*
|
|
1913
|
-
* @emits
|
|
1913
|
+
* @emits browse:panel-toggle - Toggle panel visibility. Payload: { panel: string }
|
|
1914
1914
|
*/
|
|
1915
1915
|
declare function Toolbar<T extends string = string>({ context, activePanel, isArchived }: Props$9<T>): react_jsx_runtime.JSX.Element;
|
|
1916
1916
|
|
|
@@ -1979,8 +1979,8 @@ interface AnnotationOverlayProps {
|
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Render annotation overlay - displays existing annotations as SVG shapes
|
|
1981
1981
|
*
|
|
1982
|
-
* @emits
|
|
1983
|
-
* @emits
|
|
1982
|
+
* @emits beckon:hover - Annotation hovered or unhovered. Payload: { annotationId: string | null }
|
|
1983
|
+
* @emits browse:click - Annotation clicked. Payload: { annotationId: string, motivation: Motivation }
|
|
1984
1984
|
*/
|
|
1985
1985
|
declare function AnnotationOverlay({ annotations, imageWidth, imageHeight, displayWidth, displayHeight, eventBus, hoveredAnnotationId, selectedAnnotationId, hoverDelayMs }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
|
|
1986
1986
|
|
|
@@ -1999,8 +1999,8 @@ interface SvgDrawingCanvasProps {
|
|
|
1999
1999
|
/**
|
|
2000
2000
|
* SVG-based drawing canvas for creating image annotations with shapes
|
|
2001
2001
|
*
|
|
2002
|
-
* @emits
|
|
2003
|
-
* @emits
|
|
2002
|
+
* @emits browse:click - Annotation clicked on canvas. Payload: { annotationId: string, motivation: Motivation }
|
|
2003
|
+
* @emits mark:requested - New annotation drawn on canvas. Payload: { selector: SvgSelector, motivation: SelectionMotivation }
|
|
2004
2004
|
*/
|
|
2005
2005
|
declare function SvgDrawingCanvas({ resourceUri, existingAnnotations, drawingMode, selectedMotivation, eventBus, hoveredAnnotationId, selectedAnnotationId }: SvgDrawingCanvasProps): react_jsx_runtime.JSX.Element;
|
|
2006
2006
|
|
|
@@ -2035,11 +2035,11 @@ interface Props$8 {
|
|
|
2035
2035
|
/**
|
|
2036
2036
|
* View component for annotating resources with text selection and drawing
|
|
2037
2037
|
*
|
|
2038
|
-
* @emits
|
|
2039
|
-
* @subscribes
|
|
2040
|
-
* @subscribes
|
|
2041
|
-
* @subscribes
|
|
2042
|
-
* @subscribes
|
|
2038
|
+
* @emits mark:requested - User requested to create annotation. Payload: { selector: Selector | Selector[], motivation: SelectionMotivation }
|
|
2039
|
+
* @subscribes mark:selection-changed - Toolbar selection changed. Payload: { motivation: string | null }
|
|
2040
|
+
* @subscribes mark:click-changed - Toolbar click action changed. Payload: { action: string }
|
|
2041
|
+
* @subscribes mark:shape-changed - Toolbar shape changed. Payload: { shape: string }
|
|
2042
|
+
* @subscribes beckon:hover - Annotation hovered. Payload: { annotationId: string | null }
|
|
2043
2043
|
*/
|
|
2044
2044
|
declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetDocumentName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8): react_jsx_runtime.JSX.Element;
|
|
2045
2045
|
|
|
@@ -2070,11 +2070,11 @@ interface Props$6 {
|
|
|
2070
2070
|
* - Layer 1: Markdown renders once (MemoizedMarkdown, cached by content)
|
|
2071
2071
|
* - Layer 2: Annotation overlay applied via DOM Range API after paint
|
|
2072
2072
|
*
|
|
2073
|
-
* @emits
|
|
2074
|
-
* @emits
|
|
2073
|
+
* @emits browse:click - User clicked on annotation. Payload: { annotationId: string, motivation: Motivation }
|
|
2074
|
+
* @emits beckon:hover - User hovered over annotation. Payload: { annotationId: string | null }
|
|
2075
2075
|
*
|
|
2076
|
-
* @subscribes
|
|
2077
|
-
* @subscribes
|
|
2076
|
+
* @subscribes beckon:hover - Highlight annotation on hover. Payload: { annotationId: string | null }
|
|
2077
|
+
* @subscribes beckon:focus - Scroll to and highlight annotation. Payload: { annotationId: string }
|
|
2078
2078
|
*/
|
|
2079
2079
|
declare const BrowseView: React$1.NamedExoticComponent<Props$6>;
|
|
2080
2080
|
|
|
@@ -2098,7 +2098,7 @@ type SemiontResource$2 = components['schemas']['ResourceDescriptor'];
|
|
|
2098
2098
|
* ResourceViewer - Display and interact with resource content and annotations
|
|
2099
2099
|
*
|
|
2100
2100
|
* This component uses event-driven architecture for real-time updates:
|
|
2101
|
-
* - Subscribes to make-meaning events (
|
|
2101
|
+
* - Subscribes to make-meaning events (mark:added, mark:removed, mark:body-updated)
|
|
2102
2102
|
* - Automatically invalidates cache when annotations change
|
|
2103
2103
|
* - No manual refetch needed - events handle cache invalidation
|
|
2104
2104
|
*
|
|
@@ -2123,17 +2123,17 @@ interface Props$4 {
|
|
|
2123
2123
|
hoveredAnnotationId?: string | null;
|
|
2124
2124
|
}
|
|
2125
2125
|
/**
|
|
2126
|
-
* @emits
|
|
2127
|
-
* @emits
|
|
2126
|
+
* @emits mark:delete - User requested to delete annotation. Payload: { annotationId: string }
|
|
2127
|
+
* @emits browse:panel-open - Request to open panel with annotation. Payload: { panel: string, scrollToAnnotationId?: string, motivation?: Motivation }
|
|
2128
2128
|
*
|
|
2129
|
-
* @subscribes
|
|
2130
|
-
* @subscribes
|
|
2131
|
-
* @subscribes
|
|
2132
|
-
* @subscribes
|
|
2133
|
-
* @subscribes
|
|
2134
|
-
* @subscribes
|
|
2135
|
-
* @subscribes
|
|
2136
|
-
* @subscribes
|
|
2129
|
+
* @subscribes mark:mode-toggled - Toggles between browse and annotate mode. Payload: { mode: 'browse' | 'annotate' }
|
|
2130
|
+
* @subscribes mark:added - New annotation was added. Payload: { annotation: Annotation }
|
|
2131
|
+
* @subscribes mark:removed - Annotation was removed. Payload: { annotationId: string }
|
|
2132
|
+
* @subscribes mark:body-updated - Annotation was updated. Payload: { annotation: Annotation }
|
|
2133
|
+
* @subscribes mark:selection-changed - Text selection tool changed. Payload: { selection: boolean }
|
|
2134
|
+
* @subscribes mark:click-changed - Click annotation tool changed. Payload: { click: 'detail' | 'scroll' | null }
|
|
2135
|
+
* @subscribes mark:shape-changed - Drawing shape changed. Payload: { shape: string }
|
|
2136
|
+
* @subscribes browse:click - User clicked on annotation. Payload: { annotationId: string }
|
|
2137
2137
|
*/
|
|
2138
2138
|
declare function ResourceViewer({ resource, annotations, generatingReferenceId, showLineNumbers, hoverDelayMs, hoveredAnnotationId: hoveredAnnotationIdProp }: Props$4): react_jsx_runtime.JSX.Element;
|
|
2139
2139
|
|
|
@@ -2168,9 +2168,9 @@ interface AssessmentPanelProps {
|
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Panel for managing assessment annotations with text input
|
|
2170
2170
|
*
|
|
2171
|
-
* @emits
|
|
2172
|
-
* @emits
|
|
2173
|
-
* @subscribes
|
|
2171
|
+
* @emits mark:create - Create new assessment annotation. Payload: { motivation: 'assessing', selector: Selector | Selector[], body: Body[] }
|
|
2172
|
+
* @emits mark:cancel-pending - Cancel pending assessment annotation. Payload: undefined
|
|
2173
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2174
2174
|
*/
|
|
2175
2175
|
declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): react_jsx_runtime.JSX.Element;
|
|
2176
2176
|
|
|
@@ -2213,9 +2213,9 @@ interface CommentsPanelProps {
|
|
|
2213
2213
|
/**
|
|
2214
2214
|
* Panel for managing comment annotations with text input
|
|
2215
2215
|
*
|
|
2216
|
-
* @emits
|
|
2217
|
-
* @emits
|
|
2218
|
-
* @subscribes
|
|
2216
|
+
* @emits mark:create - Create new comment annotation. Payload: { motivation: 'commenting', selector: Selector | Selector[], body: Body[] }
|
|
2217
|
+
* @emits mark:cancel-pending - Cancel pending comment annotation. Payload: undefined
|
|
2218
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2219
2219
|
*/
|
|
2220
2220
|
declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): react_jsx_runtime.JSX.Element;
|
|
2221
2221
|
|
|
@@ -2241,8 +2241,8 @@ interface AssistSectionProps {
|
|
|
2241
2241
|
* - Assist button with sparkle animation
|
|
2242
2242
|
* - Progress display during annotation assist
|
|
2243
2243
|
*
|
|
2244
|
-
* @emits
|
|
2245
|
-
* @emits
|
|
2244
|
+
* @emits mark:assist-request - Start assist for annotation type. Payload: { motivation: Motivation, options: { instructions?: string, tone?: string, density?: number } }
|
|
2245
|
+
* @emits mark:progress-dismiss - Dismiss the annotation progress display
|
|
2246
2246
|
*/
|
|
2247
2247
|
declare function AssistSection({ annotationType, isAssisting, progress, }: AssistSectionProps): react_jsx_runtime.JSX.Element;
|
|
2248
2248
|
|
|
@@ -2277,8 +2277,8 @@ interface HighlightPanelProps {
|
|
|
2277
2277
|
/**
|
|
2278
2278
|
* Panel for managing highlight annotations with auto-creation
|
|
2279
2279
|
*
|
|
2280
|
-
* @emits
|
|
2281
|
-
* @subscribes
|
|
2280
|
+
* @emits mark:create - Create new highlight annotation (auto-triggered). Payload: { motivation: 'highlighting', selector: Selector | Selector[], body: Body[] }
|
|
2281
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2282
2282
|
*/
|
|
2283
2283
|
declare function HighlightPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: HighlightPanelProps): react_jsx_runtime.JSX.Element;
|
|
2284
2284
|
|
|
@@ -2330,7 +2330,7 @@ interface PendingAnnotation$3 {
|
|
|
2330
2330
|
interface Props$1 {
|
|
2331
2331
|
annotations?: Annotation$4[];
|
|
2332
2332
|
isAssisting: boolean;
|
|
2333
|
-
progress:
|
|
2333
|
+
progress: MarkProgress | null;
|
|
2334
2334
|
annotateMode?: boolean;
|
|
2335
2335
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
2336
2336
|
routes: RouteBuilder;
|
|
@@ -2347,9 +2347,9 @@ interface Props$1 {
|
|
|
2347
2347
|
* Panel for managing reference annotations with entity type annotation
|
|
2348
2348
|
*
|
|
2349
2349
|
* @emits annotate:detect-request - Start reference annotation. Payload: { motivation: 'linking', options: { entityTypes: string[], includeDescriptiveReferences: boolean } }
|
|
2350
|
-
* @emits
|
|
2351
|
-
* @emits
|
|
2352
|
-
* @subscribes
|
|
2350
|
+
* @emits mark:create - Create new reference annotation. Payload: { motivation: 'linking', selector: Selector | Selector[], body: Body[] }
|
|
2351
|
+
* @emits mark:cancel-pending - Cancel pending reference annotation. Payload: undefined
|
|
2352
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2353
2353
|
*/
|
|
2354
2354
|
declare function ReferencesPanel({ annotations, isAssisting, progress, annotateMode, Link, routes, allEntityTypes, generatingReferenceId, referencedBy, referencedByLoading, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
2355
2355
|
|
|
@@ -2363,9 +2363,9 @@ interface Props {
|
|
|
2363
2363
|
/**
|
|
2364
2364
|
* Panel for displaying resource metadata and management actions
|
|
2365
2365
|
*
|
|
2366
|
-
* @emits
|
|
2367
|
-
* @emits
|
|
2368
|
-
* @emits
|
|
2366
|
+
* @emits yield:clone - Clone this resource. Payload: undefined
|
|
2367
|
+
* @emits mark:unarchive - Unarchive this resource. Payload: undefined
|
|
2368
|
+
* @emits mark:archive - Archive this resource. Payload: undefined
|
|
2369
2369
|
*/
|
|
2370
2370
|
declare function ResourceInfoPanel({ documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, isArchived, }: Props): react_jsx_runtime.JSX.Element;
|
|
2371
2371
|
|
|
@@ -2418,9 +2418,9 @@ interface TaggingPanelProps {
|
|
|
2418
2418
|
* Panel for managing tag annotations with schema-based annotation
|
|
2419
2419
|
*
|
|
2420
2420
|
* @emits annotate:detect-request - Start tag annotation. Payload: { motivation: 'tagging', options: { schemaId: string, categories: string[] } }
|
|
2421
|
-
* @emits
|
|
2422
|
-
* @emits
|
|
2423
|
-
* @subscribes
|
|
2421
|
+
* @emits mark:cancel-pending - Cancel pending tag annotation. Payload: undefined
|
|
2422
|
+
* @emits mark:create - Create new tag annotation. Payload: { motivation: 'tagging', selector: Selector | Selector[], body: Body[] }
|
|
2423
|
+
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2424
2424
|
*/
|
|
2425
2425
|
declare function TaggingPanel({ annotations, annotateMode, isAssisting, progress, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: TaggingPanelProps): react_jsx_runtime.JSX.Element;
|
|
2426
2426
|
|
|
@@ -2445,7 +2445,7 @@ interface UnifiedAnnotationsPanelProps {
|
|
|
2445
2445
|
annotators: Record<string, Annotator>;
|
|
2446
2446
|
annotateMode?: boolean;
|
|
2447
2447
|
assistingMotivation?: Motivation | null;
|
|
2448
|
-
progress?:
|
|
2448
|
+
progress?: MarkProgress | null;
|
|
2449
2449
|
pendingAnnotation: PendingAnnotation$1 | null;
|
|
2450
2450
|
allEntityTypes?: string[];
|
|
2451
2451
|
generatingReferenceId?: string | null;
|
|
@@ -2521,7 +2521,7 @@ interface ObservableLinkProps extends React__default.AnchorHTMLAttributes<HTMLAn
|
|
|
2521
2521
|
* - State coordination before navigation
|
|
2522
2522
|
* - Logging navigation flows
|
|
2523
2523
|
*
|
|
2524
|
-
* The component emits '
|
|
2524
|
+
* The component emits 'browse:link-clicked' event before allowing
|
|
2525
2525
|
* the browser to follow the link.
|
|
2526
2526
|
*
|
|
2527
2527
|
* @example
|
|
@@ -2545,7 +2545,7 @@ interface ObservableLinkProps extends React__default.AnchorHTMLAttributes<HTMLAn
|
|
|
2545
2545
|
* </Link>
|
|
2546
2546
|
* ```
|
|
2547
2547
|
*
|
|
2548
|
-
* @emits
|
|
2548
|
+
* @emits browse:link-clicked - Link clicked by user. Payload: { href: string, label?: string }
|
|
2549
2549
|
*/
|
|
2550
2550
|
declare function ObservableLink({ href, label, onClick, children, ...anchorProps }: ObservableLinkProps): react_jsx_runtime.JSX.Element;
|
|
2551
2551
|
|
|
@@ -2579,7 +2579,7 @@ interface SimpleNavigationProps$1 {
|
|
|
2579
2579
|
* Simple navigation component for Admin and Moderation modes.
|
|
2580
2580
|
* Renders a section header with optional dropdown and static navigation tabs.
|
|
2581
2581
|
*
|
|
2582
|
-
* @emits
|
|
2582
|
+
* @emits browse:sidebar-toggle - Toggle sidebar collapsed/expanded state. Payload: undefined
|
|
2583
2583
|
*/
|
|
2584
2584
|
declare function SimpleNavigation({ title, items, currentPath, LinkComponent, dropdownContent, isCollapsed, icons, collapseSidebarLabel, expandSidebarLabel }: SimpleNavigationProps$1): react_jsx_runtime.JSX.Element;
|
|
2585
2585
|
|
|
@@ -2655,9 +2655,9 @@ interface CollapsibleResourceNavigationProps {
|
|
|
2655
2655
|
* Supports drag and drop for resource reordering when expanded.
|
|
2656
2656
|
* Platform-agnostic design for use across different React environments.
|
|
2657
2657
|
*
|
|
2658
|
-
* @emits
|
|
2659
|
-
* @emits
|
|
2660
|
-
* @emits
|
|
2658
|
+
* @emits browse:resource-reorder - Resource tab reordered. Payload: { oldIndex: number, newIndex: number }
|
|
2659
|
+
* @emits browse:resource-close - Resource tab closed. Payload: { resourceId: string }
|
|
2660
|
+
* @emits browse:sidebar-toggle - Toggle sidebar collapsed/expanded state. Payload: undefined
|
|
2661
2661
|
*/
|
|
2662
2662
|
declare function CollapsibleResourceNavigation({ fixedItems, resources, isCollapsed, currentPath, LinkComponent, onNavigate, getResourceHref, className, translations, icons, navigationMenu }: CollapsibleResourceNavigationProps): react_jsx_runtime.JSX.Element;
|
|
2663
2663
|
|
|
@@ -3680,18 +3680,18 @@ interface ResourceViewerPageProps {
|
|
|
3680
3680
|
*
|
|
3681
3681
|
* Uses hooks directly (NO containers, NO render props, NO ResourceViewerPageContent wrapper)
|
|
3682
3682
|
*
|
|
3683
|
-
* @emits
|
|
3684
|
-
* @emits
|
|
3685
|
-
* @emits
|
|
3686
|
-
* @subscribes
|
|
3687
|
-
* @subscribes
|
|
3688
|
-
* @subscribes
|
|
3689
|
-
* @subscribes
|
|
3690
|
-
* @subscribes
|
|
3691
|
-
* @subscribes
|
|
3692
|
-
* @subscribes
|
|
3693
|
-
* @subscribes
|
|
3694
|
-
* @subscribes
|
|
3683
|
+
* @emits browse:router-push - Navigate to a resource or filtered view
|
|
3684
|
+
* @emits beckon:sparkle - Trigger sparkle animation on an annotation
|
|
3685
|
+
* @emits bind:update-body - Update annotation body content
|
|
3686
|
+
* @subscribes mark:archive - Archive the current resource
|
|
3687
|
+
* @subscribes mark:unarchive - Unarchive the current resource
|
|
3688
|
+
* @subscribes yield:clone - Clone the current resource
|
|
3689
|
+
* @subscribes beckon:sparkle - Trigger sparkle animation
|
|
3690
|
+
* @subscribes mark:added - Annotation was created
|
|
3691
|
+
* @subscribes mark:removed - Annotation was deleted
|
|
3692
|
+
* @subscribes mark:create-failed - Annotation creation failed
|
|
3693
|
+
* @subscribes mark:delete-failed - Annotation deletion failed
|
|
3694
|
+
* @subscribes mark:body-updated - Annotation body was updated
|
|
3695
3695
|
* @subscribes annotate:body-update-failed - Annotation body update failed
|
|
3696
3696
|
* @subscribes settings:theme-changed - UI theme changed
|
|
3697
3697
|
* @subscribes settings:line-numbers-toggled - Line numbers display toggled
|
|
@@ -3699,13 +3699,13 @@ interface ResourceViewerPageProps {
|
|
|
3699
3699
|
* @subscribes detection:failed - Detection failed
|
|
3700
3700
|
* @subscribes generation:complete - Generation completed
|
|
3701
3701
|
* @subscribes generation:failed - Generation failed
|
|
3702
|
-
* @subscribes
|
|
3703
|
-
* @subscribes
|
|
3702
|
+
* @subscribes browse:reference-navigate - Navigate to a referenced document
|
|
3703
|
+
* @subscribes browse:entity-type-clicked - Navigate filtered by entity type
|
|
3704
3704
|
*/
|
|
3705
3705
|
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels, SearchResourcesModal, GenerationConfigModal, refetchDocument, }: ResourceViewerPageProps): react_jsx_runtime.JSX.Element;
|
|
3706
3706
|
|
|
3707
3707
|
/**
|
|
3708
|
-
*
|
|
3708
|
+
* useBeckonFlow — Annotation attention / pointer coordination hook
|
|
3709
3709
|
*
|
|
3710
3710
|
* Manages which annotation currently has the user's attention:
|
|
3711
3711
|
* - Hover state (hoveredAnnotationId)
|
|
@@ -3715,20 +3715,20 @@ declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, Tool
|
|
|
3715
3715
|
* Follows react-rxjs-guide.md Layer 2 pattern: Hook bridge that
|
|
3716
3716
|
* subscribes to events and pushes values into React state.
|
|
3717
3717
|
*
|
|
3718
|
-
* Note:
|
|
3719
|
-
* ResourceViewerPage, which subscribes to
|
|
3718
|
+
* Note: beckon:sparkle visual effect (triggerSparkleAnimation) is owned by
|
|
3719
|
+
* ResourceViewerPage, which subscribes to beckon:sparkle and delegates to
|
|
3720
3720
|
* ResourceAnnotationsContext. This hook emits the signal; it does not render the effect.
|
|
3721
3721
|
*
|
|
3722
|
-
* @subscribes
|
|
3723
|
-
* @subscribes
|
|
3724
|
-
* @emits
|
|
3725
|
-
* @emits
|
|
3722
|
+
* @subscribes beckon:hover - Sets hoveredAnnotationId; emits beckon:sparkle
|
|
3723
|
+
* @subscribes browse:click - Emits beckon:focus (attention relay only)
|
|
3724
|
+
* @emits beckon:sparkle
|
|
3725
|
+
* @emits beckon:focus
|
|
3726
3726
|
*/
|
|
3727
|
-
interface
|
|
3727
|
+
interface BeckonFlowState {
|
|
3728
3728
|
hoveredAnnotationId: string | null;
|
|
3729
3729
|
}
|
|
3730
|
-
declare function
|
|
3731
|
-
/** Default milliseconds the mouse must dwell before
|
|
3730
|
+
declare function useBeckonFlow(): BeckonFlowState;
|
|
3731
|
+
/** Default milliseconds the mouse must dwell before beckon:hover is emitted. */
|
|
3732
3732
|
declare const HOVER_DELAY_MS = 150;
|
|
3733
3733
|
type EmitHover = (annotationId: string | null) => void;
|
|
3734
3734
|
interface HoverHandlers {
|
|
@@ -3759,7 +3759,7 @@ interface HoverEmitterProps {
|
|
|
3759
3759
|
declare function useHoverEmitter(annotationId: string, hoverDelayMs?: number): HoverEmitterProps;
|
|
3760
3760
|
|
|
3761
3761
|
/**
|
|
3762
|
-
*
|
|
3762
|
+
* useMarkFlow - Annotation state management hook
|
|
3763
3763
|
*
|
|
3764
3764
|
* Manages all annotation workflows (manual and AI-driven):
|
|
3765
3765
|
* - Pending annotation state (user selected text, waiting for confirmation)
|
|
@@ -3784,45 +3784,45 @@ interface PendingAnnotation {
|
|
|
3784
3784
|
selector: Selector | Selector[];
|
|
3785
3785
|
motivation: Motivation$9;
|
|
3786
3786
|
}
|
|
3787
|
-
interface
|
|
3787
|
+
interface MarkFlowState {
|
|
3788
3788
|
pendingAnnotation: PendingAnnotation | null;
|
|
3789
3789
|
assistingMotivation: Motivation$9 | null;
|
|
3790
|
-
progress:
|
|
3790
|
+
progress: MarkProgress | null;
|
|
3791
3791
|
assistStreamRef: React.MutableRefObject<AbortController | null>;
|
|
3792
3792
|
}
|
|
3793
3793
|
/**
|
|
3794
3794
|
* Hook for annotation flow (manual and AI-driven)
|
|
3795
3795
|
*
|
|
3796
3796
|
* @param rUri - Resource URI being annotated
|
|
3797
|
-
* @emits
|
|
3798
|
-
* @emits
|
|
3799
|
-
* @emits
|
|
3800
|
-
* @emits
|
|
3801
|
-
* @emits
|
|
3802
|
-
* @emits
|
|
3803
|
-
* @emits
|
|
3804
|
-
* @emits
|
|
3805
|
-
* @emits
|
|
3806
|
-
* @subscribes
|
|
3807
|
-
* @subscribes
|
|
3808
|
-
* @subscribes
|
|
3809
|
-
* @subscribes
|
|
3810
|
-
* @subscribes
|
|
3811
|
-
* @subscribes
|
|
3812
|
-
* @subscribes
|
|
3813
|
-
* @subscribes
|
|
3814
|
-
* @subscribes
|
|
3797
|
+
* @emits browse:panel-open - Open the annotations panel when annotation is requested
|
|
3798
|
+
* @emits mark:created - Annotation successfully created
|
|
3799
|
+
* @emits mark:create-failed - Annotation creation failed
|
|
3800
|
+
* @emits mark:deleted - Annotation successfully deleted
|
|
3801
|
+
* @emits mark:delete-failed - Annotation deletion failed
|
|
3802
|
+
* @emits mark:progress - Progress update from SSE stream
|
|
3803
|
+
* @emits mark:assist-finished - SSE assist completed
|
|
3804
|
+
* @emits mark:assist-failed - SSE assist failed
|
|
3805
|
+
* @emits mark:assist-cancelled - SSE assist cancelled
|
|
3806
|
+
* @subscribes mark:requested - User requested a new annotation
|
|
3807
|
+
* @subscribes mark:create - Create annotation via API
|
|
3808
|
+
* @subscribes mark:delete - Delete annotation via API
|
|
3809
|
+
* @subscribes mark:select-comment - User selected text for a comment
|
|
3810
|
+
* @subscribes mark:select-tag - User selected text for a tag
|
|
3811
|
+
* @subscribes mark:select-assessment - User selected text for an assessment
|
|
3812
|
+
* @subscribes mark:select-reference - User selected text for a reference
|
|
3813
|
+
* @subscribes mark:cancel-pending - Cancel pending annotation creation
|
|
3814
|
+
* @subscribes mark:assist-request - Trigger AI-assisted annotation SSE stream
|
|
3815
3815
|
* @subscribes job:cancel-requested - Cancels in-flight assist stream (assist half only)
|
|
3816
|
-
* @subscribes
|
|
3817
|
-
* @subscribes
|
|
3818
|
-
* @subscribes
|
|
3819
|
-
* @subscribes
|
|
3816
|
+
* @subscribes mark:progress - Progress update during assist
|
|
3817
|
+
* @subscribes mark:assist-finished - Assist completed successfully
|
|
3818
|
+
* @subscribes mark:assist-failed - Error during assist
|
|
3819
|
+
* @subscribes mark:progress-dismiss - Manually dismiss progress display
|
|
3820
3820
|
* @returns Annotation flow state
|
|
3821
3821
|
*/
|
|
3822
|
-
declare function
|
|
3822
|
+
declare function useMarkFlow(rUri: ResourceUri): MarkFlowState;
|
|
3823
3823
|
|
|
3824
3824
|
/**
|
|
3825
|
-
*
|
|
3825
|
+
* usePanelBrowse - Panel navigation and scroll coordination hook
|
|
3826
3826
|
*
|
|
3827
3827
|
* Manages sidebar panel state:
|
|
3828
3828
|
* - Active panel tracking (which panel is open)
|
|
@@ -3833,8 +3833,12 @@ declare function useAnnotationFlow(rUri: ResourceUri): AnnotationFlowState;
|
|
|
3833
3833
|
* Follows react-rxjs-guide.md Layer 2 pattern: Hook bridge that
|
|
3834
3834
|
* subscribes to events and pushes values into React state.
|
|
3835
3835
|
*/
|
|
3836
|
-
type ToolbarPanelType = '
|
|
3837
|
-
|
|
3836
|
+
type ToolbarPanelType = 'history' | 'info' | 'annotations' | 'settings' | 'collaboration' | 'user' | 'jsonld';
|
|
3837
|
+
/** Panels available on all pages */
|
|
3838
|
+
declare const COMMON_PANELS: readonly ToolbarPanelType[];
|
|
3839
|
+
/** Panels available only on resource viewer pages */
|
|
3840
|
+
declare const RESOURCE_PANELS: readonly ToolbarPanelType[];
|
|
3841
|
+
interface PanelBrowseState {
|
|
3838
3842
|
activePanel: ToolbarPanelType | null;
|
|
3839
3843
|
scrollToAnnotationId: string | null;
|
|
3840
3844
|
panelInitialTab: {
|
|
@@ -3846,15 +3850,15 @@ interface PanelNavigationState {
|
|
|
3846
3850
|
/**
|
|
3847
3851
|
* Hook for panel navigation state management
|
|
3848
3852
|
*
|
|
3849
|
-
* @subscribes
|
|
3850
|
-
* @subscribes
|
|
3851
|
-
* @subscribes
|
|
3853
|
+
* @subscribes browse:panel-toggle - Toggle a panel open/closed
|
|
3854
|
+
* @subscribes browse:panel-open - Open a panel, optionally scrolling to an annotation
|
|
3855
|
+
* @subscribes browse:panel-close - Close the active panel
|
|
3852
3856
|
* @returns Panel navigation state
|
|
3853
3857
|
*/
|
|
3854
|
-
declare function
|
|
3858
|
+
declare function usePanelBrowse(): PanelBrowseState;
|
|
3855
3859
|
|
|
3856
3860
|
/**
|
|
3857
|
-
*
|
|
3861
|
+
* useYieldFlow - Document generation flow hook
|
|
3858
3862
|
*
|
|
3859
3863
|
* Manages document generation state:
|
|
3860
3864
|
* - Generation progress tracking
|
|
@@ -3866,9 +3870,9 @@ declare function usePanelNavigation(): PanelNavigationState;
|
|
|
3866
3870
|
* subscribes to events and pushes values into React state.
|
|
3867
3871
|
*/
|
|
3868
3872
|
|
|
3869
|
-
interface
|
|
3873
|
+
interface YieldFlowState {
|
|
3870
3874
|
isGenerating: boolean;
|
|
3871
|
-
generationProgress:
|
|
3875
|
+
generationProgress: YieldProgress | null;
|
|
3872
3876
|
generationModalOpen: boolean;
|
|
3873
3877
|
generationReferenceId: string | null;
|
|
3874
3878
|
generationDefaultTitle: string;
|
|
@@ -3878,7 +3882,7 @@ interface GenerationFlowState {
|
|
|
3878
3882
|
language?: string;
|
|
3879
3883
|
temperature?: number;
|
|
3880
3884
|
maxTokens?: number;
|
|
3881
|
-
context?:
|
|
3885
|
+
context?: YieldContext;
|
|
3882
3886
|
}) => void;
|
|
3883
3887
|
onCloseGenerationModal: () => void;
|
|
3884
3888
|
}
|
|
@@ -3888,51 +3892,51 @@ interface GenerationFlowState {
|
|
|
3888
3892
|
* @param locale - Current locale for language defaults
|
|
3889
3893
|
* @param resourceId - Resource ID for generation
|
|
3890
3894
|
* @param clearNewAnnotationId - Clear animation callback
|
|
3891
|
-
* @emits
|
|
3892
|
-
* @emits
|
|
3893
|
-
* @emits
|
|
3894
|
-
* @emits
|
|
3895
|
-
* @subscribes
|
|
3895
|
+
* @emits yield:request - Start document generation (consumed internally by this hook)
|
|
3896
|
+
* @emits yield:progress - SSE progress chunk from generation stream
|
|
3897
|
+
* @emits yield:finished - Generation completed successfully
|
|
3898
|
+
* @emits yield:failed - Error during generation
|
|
3899
|
+
* @subscribes yield:request - Triggers SSE call to yieldResourceFromAnnotation
|
|
3896
3900
|
* @subscribes job:cancel-requested - Cancels in-flight generation stream
|
|
3897
|
-
* @subscribes
|
|
3898
|
-
* @subscribes
|
|
3899
|
-
* @subscribes
|
|
3900
|
-
* @subscribes
|
|
3901
|
+
* @subscribes bind:create-manual - Navigates to compose page for new document reference
|
|
3902
|
+
* @subscribes yield:modal-open - Open the generation config modal; triggers gather:requested
|
|
3903
|
+
* @subscribes yield:finished - Generation completed successfully
|
|
3904
|
+
* @subscribes yield:failed - Error during generation
|
|
3901
3905
|
* @returns Generation flow state
|
|
3902
3906
|
*/
|
|
3903
|
-
declare function
|
|
3907
|
+
declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnotationId: (annotationId: AnnotationUri) => void): YieldFlowState;
|
|
3904
3908
|
|
|
3905
3909
|
/**
|
|
3906
|
-
*
|
|
3910
|
+
* useContextGatherFlow - Context gather capability hook
|
|
3907
3911
|
*
|
|
3908
|
-
*
|
|
3912
|
+
* Gather capability: given a reference annotation, fetch the surrounding
|
|
3909
3913
|
* text context (before/selected/after) from the source document so it can
|
|
3910
|
-
* be
|
|
3914
|
+
* be gathered and used as grounding material for generation.
|
|
3911
3915
|
*
|
|
3912
|
-
* This hook is the single owner of
|
|
3913
|
-
*
|
|
3916
|
+
* This hook is the single owner of gather state. It is triggered by
|
|
3917
|
+
* gather:requested on the event bus, making the capability
|
|
3914
3918
|
* accessible to both human UI flows and agents.
|
|
3915
3919
|
*
|
|
3916
|
-
* @subscribes
|
|
3917
|
-
* @emits
|
|
3918
|
-
* @emits
|
|
3919
|
-
* @returns
|
|
3920
|
+
* @subscribes gather:requested - Fetch LLM context for an annotation
|
|
3921
|
+
* @emits gather:complete - Context successfully fetched
|
|
3922
|
+
* @emits gather:failed - Context fetch failed
|
|
3923
|
+
* @returns Gather state (context, loading, error, which annotation)
|
|
3920
3924
|
*/
|
|
3921
3925
|
|
|
3922
|
-
interface
|
|
3926
|
+
interface ContextGatherFlowConfig {
|
|
3923
3927
|
client: SemiontApiClient;
|
|
3924
3928
|
resourceUri: ResourceUri;
|
|
3925
3929
|
}
|
|
3926
|
-
interface
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
/** The annotationUri for which context was most recently
|
|
3931
|
-
|
|
3930
|
+
interface ContextGatherFlowState {
|
|
3931
|
+
gatherContext: YieldContext | null;
|
|
3932
|
+
gatherLoading: boolean;
|
|
3933
|
+
gatherError: Error | null;
|
|
3934
|
+
/** The annotationUri for which context was most recently gathered */
|
|
3935
|
+
gatherAnnotationUri: string | null;
|
|
3932
3936
|
}
|
|
3933
|
-
declare function
|
|
3937
|
+
declare function useContextGatherFlow(eventBus: EventBus, config: ContextGatherFlowConfig): ContextGatherFlowState;
|
|
3934
3938
|
|
|
3935
|
-
interface
|
|
3939
|
+
interface BindFlowState {
|
|
3936
3940
|
searchModalOpen: boolean;
|
|
3937
3941
|
pendingReferenceId: string | null;
|
|
3938
3942
|
onCloseSearchModal: () => void;
|
|
@@ -3944,13 +3948,13 @@ interface ResolutionFlowState {
|
|
|
3944
3948
|
* @param rUri - Resource URI being viewed
|
|
3945
3949
|
* @returns Resolution flow state (search modal open state and close handler)
|
|
3946
3950
|
*
|
|
3947
|
-
* @emits
|
|
3948
|
-
* @emits
|
|
3949
|
-
* @emits
|
|
3950
|
-
* @subscribes
|
|
3951
|
-
* @subscribes
|
|
3952
|
-
* @subscribes
|
|
3951
|
+
* @emits bind:body-updated - Annotation body successfully updated
|
|
3952
|
+
* @emits bind:body-update-failed - Annotation body update failed
|
|
3953
|
+
* @emits bind:search-requested - Search modal requested
|
|
3954
|
+
* @subscribes bind:update-body - Update annotation body via API
|
|
3955
|
+
* @subscribes bind:link - User clicked "Link Document"; opens search modal
|
|
3956
|
+
* @subscribes bind:search-requested - Opens search modal with pending reference
|
|
3953
3957
|
*/
|
|
3954
|
-
declare function
|
|
3958
|
+
declare function useBindFlow(rUri: ResourceUri): BindFlowState;
|
|
3955
3959
|
|
|
3956
|
-
export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateReferencesProgressWidget, AnnotateToolbar, AnnotateView, type Annotation$l as Annotation, type AnnotationConfig, type AnnotationCreationHandler, type
|
|
3960
|
+
export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateReferencesProgressWidget, AnnotateToolbar, AnnotateView, type Annotation$l as Annotation, type AnnotationConfig, type AnnotationCreationHandler, type AnnotationHandlers, AnnotationHistory, type AnnotationManager, AnnotationOverlay, AnnotationProvider, type AnnotationProviderProps, type AnnotationUIState, type AnnotationsCollection, type Annotator, ApiClientProvider, type ApiClientProviderProps, AssessmentEntry, AssessmentPanel, AssistSection, AsyncErrorBoundary, AuthErrorDisplay, type AuthErrorDisplayProps, type AuthEventDetail, type AuthEventType, AuthTokenProvider, type AuthTokenProviderProps, type AvailableLocale, type BeckonFlowState, type BindFlowState, type BorderRadiusToken, BrowseView, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COMMON_PANELS, type CacheManager, CacheProvider, type CacheProviderProps, type ClickAction, CodeMirrorRenderer, CollaborationPanel, CollapsibleResourceNavigation, type CollapsibleResourceNavigationProps, type ColorToken, CommentEntry, CommentsPanel, ComposeLoadingState, type ComposeLoadingStateProps, type ContextGatherFlowConfig, type ContextGatherFlowState, type CreateAnnotationParams, type CreateConfig, type DeleteAnnotationParams, type DetectionConfig, type DevOpsFeature, type DrawingMode, EntityTagsPage, type EntityTagsPageProps, EntityTypeBadges, ErrorBoundary, Footer, type GenerationOptions, HOVER_DELAY_MS, HighlightEntry, HighlightPanel, HistoryEvent, type HoverEmitterProps, type HoverHandlers, ImageURLSchema, ImageViewer, JsonLdPanel, JsonLdView, type KeyboardShortcut, KeyboardShortcutsHelpModal, LeftSidebar, type LinkComponentProps, LiveRegionProvider, type MarkFlowState, type Motivation$8 as Motivation, type NavigationItem, NavigationMenu, type NavigationMenuHelper, type NavigationProps, type OAuthProvider, type OAuthUser, OAuthUserSchema, ObservableLink, type ObservableLinkProps, type OpenResource, OpenResourcesManager, OpenResourcesProvider, type OverlayAnnotation, PageLayout, type PanelBrowseState, PanelHeader, PopupContainer, PopupHeader, ProposeEntitiesModal, QUERY_KEYS, RESOURCE_PANELS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferencesPanel, ResizeHandle, type ResolvedTheme, ResourceAnnotationsProvider, ResourceCard, type ResourceCardProps, ResourceComposePage, type ResourceComposePageProps, ResourceDiscoveryPage, type ResourceDiscoveryPageProps, ResourceErrorState, type ResourceErrorStateProps, ResourceInfoPanel, ResourceLoadingState, ResourceSearchModal, type ResourceSearchModalProps, ResourceTagsInline, ResourceViewer, ResourceViewerPage, type ResourceViewerPageProps, type RouteBuilder, type SaveResourceParams, SearchModal, type SearchModalProps, SelectedTextDisplay, type SelectionMotivation, type SelectorType, SemiontBranding, SemiontFavicon, type SemiontResource$4 as SemiontResource, SessionExpiryBanner, SessionManager, SessionProvider, SessionTimer, SettingsPanel, type ShadowToken, type ShapeType, SignInForm, type SignInFormProps, SignUpForm, type SignUpFormProps, SimpleNavigation, type SimpleNavigationItem, type SimpleNavigationProps, SkipLinks, SortableResourceTab, type SortableResourceTabProps, type SpacingToken, StatisticsPanel, StatusDisplay, type StreamStatus, SvgDrawingCanvas, TagEntry, TagSchemasPage, type TagSchemasPageProps, TaggingPanel, type TextSegment, type TextSelection, type Theme, ThemeProvider, ToastContainer, type ToastMessage, ToastProvider, type ToastType, Toolbar, type ToolbarPanelType, type TransitionToken, TranslationManager, TranslationProvider, type TranslationProviderProps, type TypographyToken, type UICreateAnnotationParams, UnifiedAnnotationsPanel, UnifiedHeader, type UseResourceContentResult, UserMenuSkeleton, WelcomePage, type WelcomePageProps, type YieldFlowState, applyHighlights, buildSourceToRenderedMap, buildTextNodeIndex, buttonStyles, clearHighlights, createHoverHandlers, cssVariables, dispatch401Error, dispatch403Error, dispatchAuthEvent, faviconPaths, formatTime, generateCSSVariables, getResourceIcon, getSelectedShapeForSelectorType, getSelectorType, getShortcutDisplay, getSupportedShapes, hideWidgetPreview, isShapeSupported, jsonLightHighlightStyle, jsonLightTheme, onAuthEvent, resolveAnnotationRanges, sanitizeImageURL, saveSelectedShapeForSelectorType, showWidgetPreview, supportsDetection, toOverlayAnnotations, tokens, useAdmin, useAnnotationManager, useAnnotations, useApiClient, useAuthApi, useAuthToken, useBeckonFlow, useBindFlow, useCacheManager, useContextGatherFlow, useDebounce, useDebouncedCallback, useDocumentAnnouncements, useDoubleKeyPress, useDropdown, useEntityTypes, useEventSubscription, useEventSubscriptions, useFormAnnouncements, useHealth, useHoverDelay, useHoverEmitter, useIsTyping, useKeyboardShortcuts, useLanguageChangeAnnouncements, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useMarkFlow, useObservableExternalNavigation, useObservableRouter, useOpenResources, usePanelBrowse, usePanelWidth, usePreloadTranslations, useResourceAnnotations, useResourceContent, useResourceEvents, useResourceLoadingAnnouncements, useResources, useRovingTabIndex, useSearchAnnouncements, useSessionContext, useSessionExpiry, useTheme, useToast, useTranslations, useYieldFlow };
|