@semiont/react-ui 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PdfAnnotationCanvas.client-PVTVPDBQ.mjs → PdfAnnotationCanvas.client-LF6DDTCV.mjs} +3 -3
- package/dist/{ar-5REA6P4J.mjs → ar-RJLR7NDD.mjs} +13 -11
- package/dist/ar-RJLR7NDD.mjs.map +1 -0
- package/dist/{bn-YHRYHHPD.mjs → bn-4NU2UAZ7.mjs} +13 -11
- package/dist/bn-4NU2UAZ7.mjs.map +1 -0
- package/dist/{chunk-VVCCMJS7.mjs → chunk-2VWLGQIO.mjs} +13 -11
- package/dist/chunk-2VWLGQIO.mjs.map +1 -0
- package/dist/chunk-5JZFKRLW.mjs +62 -0
- package/dist/chunk-5JZFKRLW.mjs.map +1 -0
- package/dist/{chunk-PFQYNPQJ.mjs → chunk-EKQMINCV.mjs} +61 -92
- package/dist/chunk-EKQMINCV.mjs.map +1 -0
- package/dist/{chunk-ZPV43WN2.mjs → chunk-XMCUHQ2Y.mjs} +72 -3
- package/dist/chunk-XMCUHQ2Y.mjs.map +1 -0
- package/dist/{cs-JTJXTX2T.mjs → cs-6UJZFF55.mjs} +13 -11
- package/dist/cs-6UJZFF55.mjs.map +1 -0
- package/dist/{da-MK37SJB6.mjs → da-CFFBBOH3.mjs} +13 -11
- package/dist/da-CFFBBOH3.mjs.map +1 -0
- package/dist/{de-LGBCWERA.mjs → de-2KAG6KMX.mjs} +13 -11
- package/dist/de-2KAG6KMX.mjs.map +1 -0
- package/dist/{el-FKJMFCWY.mjs → el-KVPQ7VNF.mjs} +13 -11
- package/dist/el-KVPQ7VNF.mjs.map +1 -0
- package/dist/{en-AOSMPC2M.mjs → en-ZW4UKTVX.mjs} +2 -2
- package/dist/{es-LVDPIXWU.mjs → es-ZU2ECPVG.mjs} +13 -11
- package/dist/es-ZU2ECPVG.mjs.map +1 -0
- package/dist/{fa-3VA2PIUD.mjs → fa-CBIVKDIQ.mjs} +13 -11
- package/dist/fa-CBIVKDIQ.mjs.map +1 -0
- package/dist/{fi-3WM75ZLR.mjs → fi-5HUVT7IK.mjs} +13 -11
- package/dist/fi-5HUVT7IK.mjs.map +1 -0
- package/dist/{fr-NK4A72WA.mjs → fr-O5WU2US2.mjs} +13 -11
- package/dist/fr-O5WU2US2.mjs.map +1 -0
- package/dist/{he-IACZDZMB.mjs → he-WP4C2SNJ.mjs} +13 -11
- package/dist/he-WP4C2SNJ.mjs.map +1 -0
- package/dist/{hi-JZ7MGMMS.mjs → hi-HLQXNRWI.mjs} +13 -11
- package/dist/hi-HLQXNRWI.mjs.map +1 -0
- package/dist/{id-P3KDQGNK.mjs → id-DTJT2ZA6.mjs} +13 -11
- package/dist/id-DTJT2ZA6.mjs.map +1 -0
- package/dist/index.css +213 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +48 -50
- package/dist/index.mjs +1492 -1474
- package/dist/index.mjs.map +1 -1
- package/dist/{it-LQS33SUY.mjs → it-2DK57IMT.mjs} +13 -11
- package/dist/it-2DK57IMT.mjs.map +1 -0
- package/dist/{ja-G4FKZPWD.mjs → ja-52ZNY72Y.mjs} +13 -11
- package/dist/ja-52ZNY72Y.mjs.map +1 -0
- package/dist/{ko-2XWKQ7BA.mjs → ko-4Z2IMYZO.mjs} +13 -11
- package/dist/ko-4Z2IMYZO.mjs.map +1 -0
- package/dist/{ms-2SNONIUD.mjs → ms-HKU73KEX.mjs} +13 -11
- package/dist/ms-HKU73KEX.mjs.map +1 -0
- package/dist/{nl-BMZUAJ7J.mjs → nl-HPHQMXPT.mjs} +13 -11
- package/dist/nl-HPHQMXPT.mjs.map +1 -0
- package/dist/{no-6J3WIZ6L.mjs → no-Q7G4PVFT.mjs} +13 -11
- package/dist/no-Q7G4PVFT.mjs.map +1 -0
- package/dist/{pl-QQ7DAUVK.mjs → pl-D43C2CE3.mjs} +13 -11
- package/dist/pl-D43C2CE3.mjs.map +1 -0
- package/dist/{pt-MU3GN7MW.mjs → pt-V3GFSY7B.mjs} +13 -11
- package/dist/pt-V3GFSY7B.mjs.map +1 -0
- package/dist/{ro-6GBE72QK.mjs → ro-3UIRV3OA.mjs} +13 -11
- package/dist/ro-3UIRV3OA.mjs.map +1 -0
- package/dist/{sv-NQIL7PEM.mjs → sv-BMW26A7M.mjs} +13 -11
- package/dist/sv-BMW26A7M.mjs.map +1 -0
- package/dist/test-utils.mjs +4 -4
- package/dist/{th-6OCNZQBE.mjs → th-CMND2QET.mjs} +13 -11
- package/dist/th-CMND2QET.mjs.map +1 -0
- package/dist/{tr-XWJ5P3SC.mjs → tr-P3AD7MYA.mjs} +13 -11
- package/dist/tr-P3AD7MYA.mjs.map +1 -0
- package/dist/{uk-AKSN6DGW.mjs → uk-QPONRQ5O.mjs} +13 -11
- package/dist/uk-QPONRQ5O.mjs.map +1 -0
- package/dist/{vi-23GHQ45M.mjs → vi-G2OMVMCI.mjs} +13 -11
- package/dist/vi-G2OMVMCI.mjs.map +1 -0
- package/dist/{zh-ITT4QBSN.mjs → zh-HTDN4LKE.mjs} +13 -11
- package/dist/zh-HTDN4LKE.mjs.map +1 -0
- package/package.json +3 -5
- package/src/components/CodeMirrorRenderer.tsx +9 -9
- package/src/components/ResourceTagsInline.tsx +1 -1
- package/src/components/__tests__/ResourceTagsInline.test.tsx +3 -3
- package/src/components/modals/ContextSummary.tsx +56 -165
- package/src/components/modals/GatherContextStep.tsx +124 -42
- package/src/components/modals/ReferenceWizardModal.tsx +8 -25
- package/src/components/modals/SearchModal.css +241 -0
- package/src/components/resource/AnnotateView.tsx +3 -3
- package/src/components/resource/BrowseView.tsx +2 -2
- package/src/components/resource/ResourceViewer.tsx +4 -4
- package/src/components/resource/__tests__/annotation-interactions.test.tsx +1 -1
- package/src/components/resource/panels/AssessmentPanel.tsx +3 -0
- package/src/components/resource/panels/AssistSection.tsx +4 -1
- package/src/components/resource/panels/CommentsPanel.tsx +3 -0
- package/src/components/resource/panels/ResourceInfoPanel.tsx +82 -0
- package/src/components/resource/panels/UnifiedAnnotationsPanel.tsx +4 -0
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +94 -0
- package/src/features/resource-viewer/__tests__/AnnotationCreationPending.test.tsx +6 -6
- package/src/features/resource-viewer/__tests__/AnnotationProgressDismissal.test.tsx +4 -4
- package/src/features/resource-viewer/__tests__/BindFlowIntegration.test.tsx +23 -17
- package/src/features/resource-viewer/__tests__/DetectionFlowBug.test.tsx +4 -4
- package/src/features/resource-viewer/__tests__/DetectionFlowIntegration.test.tsx +14 -14
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.test.tsx +2 -2
- package/src/features/resource-viewer/__tests__/YieldFlowIntegration.test.tsx +2 -2
- package/src/features/resource-viewer/__tests__/annotation-progress-flow.test.tsx +4 -4
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +12 -10
- package/translations/ar.json +12 -10
- package/translations/bn.json +12 -10
- package/translations/cs.json +12 -10
- package/translations/da.json +12 -10
- package/translations/de.json +12 -10
- package/translations/el.json +12 -10
- package/translations/en.json +13 -11
- package/translations/es.json +12 -10
- package/translations/fa.json +12 -10
- package/translations/fi.json +12 -10
- package/translations/fr.json +12 -10
- package/translations/he.json +12 -10
- package/translations/hi.json +12 -10
- package/translations/id.json +12 -10
- package/translations/it.json +12 -10
- package/translations/ja.json +12 -10
- package/translations/ko.json +12 -10
- package/translations/ms.json +12 -10
- package/translations/nl.json +12 -10
- package/translations/no.json +12 -10
- package/translations/pl.json +12 -10
- package/translations/pt.json +12 -10
- package/translations/ro.json +12 -10
- package/translations/sv.json +12 -10
- package/translations/th.json +12 -10
- package/translations/tr.json +12 -10
- package/translations/uk.json +12 -10
- package/translations/vi.json +12 -10
- package/translations/zh.json +12 -10
- package/dist/ar-5REA6P4J.mjs.map +0 -1
- package/dist/bn-YHRYHHPD.mjs.map +0 -1
- package/dist/chunk-2HGWOLVN.mjs +0 -31
- package/dist/chunk-2HGWOLVN.mjs.map +0 -1
- package/dist/chunk-PFQYNPQJ.mjs.map +0 -1
- package/dist/chunk-VVCCMJS7.mjs.map +0 -1
- package/dist/chunk-ZPV43WN2.mjs.map +0 -1
- package/dist/cs-JTJXTX2T.mjs.map +0 -1
- package/dist/da-MK37SJB6.mjs.map +0 -1
- package/dist/de-LGBCWERA.mjs.map +0 -1
- package/dist/el-FKJMFCWY.mjs.map +0 -1
- package/dist/es-LVDPIXWU.mjs.map +0 -1
- package/dist/fa-3VA2PIUD.mjs.map +0 -1
- package/dist/fi-3WM75ZLR.mjs.map +0 -1
- package/dist/fr-NK4A72WA.mjs.map +0 -1
- package/dist/he-IACZDZMB.mjs.map +0 -1
- package/dist/hi-JZ7MGMMS.mjs.map +0 -1
- package/dist/id-P3KDQGNK.mjs.map +0 -1
- package/dist/it-LQS33SUY.mjs.map +0 -1
- package/dist/ja-G4FKZPWD.mjs.map +0 -1
- package/dist/ko-2XWKQ7BA.mjs.map +0 -1
- package/dist/ms-2SNONIUD.mjs.map +0 -1
- package/dist/nl-BMZUAJ7J.mjs.map +0 -1
- package/dist/no-6J3WIZ6L.mjs.map +0 -1
- package/dist/pl-QQ7DAUVK.mjs.map +0 -1
- package/dist/pt-MU3GN7MW.mjs.map +0 -1
- package/dist/ro-6GBE72QK.mjs.map +0 -1
- package/dist/sv-NQIL7PEM.mjs.map +0 -1
- package/dist/th-6OCNZQBE.mjs.map +0 -1
- package/dist/tr-XWJ5P3SC.mjs.map +0 -1
- package/dist/uk-AKSN6DGW.mjs.map +0 -1
- package/dist/vi-23GHQ45M.mjs.map +0 -1
- package/dist/zh-ITT4QBSN.mjs.map +0 -1
- /package/dist/{PdfAnnotationCanvas.client-PVTVPDBQ.mjs.map → PdfAnnotationCanvas.client-LF6DDTCV.mjs.map} +0 -0
- /package/dist/{en-AOSMPC2M.mjs.map → en-ZW4UKTVX.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -144,7 +144,7 @@ interface DeleteAnnotationParams {
|
|
|
144
144
|
* const deleteMutation = useAnnotations().delete.useMutation();
|
|
145
145
|
*
|
|
146
146
|
* return {
|
|
147
|
-
*
|
|
147
|
+
* markAnnotation: async (params) => {
|
|
148
148
|
* const result = await createMutation.mutateAsync({...});
|
|
149
149
|
* return result.annotation;
|
|
150
150
|
* },
|
|
@@ -161,7 +161,7 @@ interface AnnotationManager {
|
|
|
161
161
|
* @param params - Creation parameters (rUri, motivation, selector, body)
|
|
162
162
|
* @returns Promise resolving to the created annotation, or undefined if creation fails
|
|
163
163
|
*/
|
|
164
|
-
|
|
164
|
+
markAnnotation: (params: CreateAnnotationParams) => Promise<Annotation$l | undefined>;
|
|
165
165
|
/**
|
|
166
166
|
* Delete an annotation
|
|
167
167
|
* @param params - Deletion parameters (annotationId, rUri)
|
|
@@ -438,7 +438,7 @@ declare function useAnnotations(): {
|
|
|
438
438
|
get: {
|
|
439
439
|
useQuery: (id: AnnotationId) => _tanstack_react_query.UseQueryResult<never, Error>;
|
|
440
440
|
};
|
|
441
|
-
|
|
441
|
+
browseAnnotation: {
|
|
442
442
|
useQuery: (resourceId: ResourceId, annotationId: AnnotationId) => _tanstack_react_query.UseQueryResult<{
|
|
443
443
|
annotation: _semiont_core.components["schemas"]["Annotation"];
|
|
444
444
|
resource: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
|
|
@@ -502,7 +502,7 @@ declare function useAnnotations(): {
|
|
|
502
502
|
annotationId: string;
|
|
503
503
|
}, Error, {
|
|
504
504
|
resourceId: ResourceId;
|
|
505
|
-
data: Parameters<SemiontApiClient["
|
|
505
|
+
data: Parameters<SemiontApiClient["markAnnotation"]>[1];
|
|
506
506
|
}, unknown>;
|
|
507
507
|
};
|
|
508
508
|
delete: {
|
|
@@ -515,34 +515,9 @@ declare function useAnnotations(): {
|
|
|
515
515
|
useMutation: () => _tanstack_react_query.UseMutationResult<void, Error, {
|
|
516
516
|
resourceId: ResourceId;
|
|
517
517
|
annotationId: AnnotationId;
|
|
518
|
-
data: Parameters<SemiontApiClient["
|
|
518
|
+
data: Parameters<SemiontApiClient["bindAnnotation"]>[2];
|
|
519
519
|
}, unknown>;
|
|
520
520
|
};
|
|
521
|
-
llmContext: {
|
|
522
|
-
useQuery: (resourceId: ResourceId, annotationId: AnnotationId, options?: {
|
|
523
|
-
contextWindow?: number;
|
|
524
|
-
}) => _tanstack_react_query.UseQueryResult<{
|
|
525
|
-
annotation: _semiont_core.components["schemas"]["Annotation"];
|
|
526
|
-
sourceResource: _semiont_core.components["schemas"]["ResourceDescriptor"];
|
|
527
|
-
targetResource?: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
|
|
528
|
-
context?: _semiont_core.components["schemas"]["GatheredContext"];
|
|
529
|
-
sourceContext?: {
|
|
530
|
-
before: string;
|
|
531
|
-
selected: string;
|
|
532
|
-
after: string;
|
|
533
|
-
};
|
|
534
|
-
targetContext?: {
|
|
535
|
-
content: string;
|
|
536
|
-
summary?: string;
|
|
537
|
-
};
|
|
538
|
-
suggestedResolution?: {
|
|
539
|
-
resourceId: string;
|
|
540
|
-
resourceName: string;
|
|
541
|
-
confidence: number;
|
|
542
|
-
reasoning: string;
|
|
543
|
-
};
|
|
544
|
-
}, Error>;
|
|
545
|
-
};
|
|
546
521
|
};
|
|
547
522
|
/**
|
|
548
523
|
* Entity type operations
|
|
@@ -966,7 +941,6 @@ declare const QUERY_KEYS: {
|
|
|
966
941
|
annotations: {
|
|
967
942
|
detail: (id: AnnotationId) => readonly ["annotations", AnnotationId];
|
|
968
943
|
history: (resourceId: ResourceId, annotationId: AnnotationId) => readonly ["annotations", ResourceId, AnnotationId, "history"];
|
|
969
|
-
llmContext: (resourceId: ResourceId, annotationId: AnnotationId) => readonly ["annotations", "llm-context", ResourceId, AnnotationId];
|
|
970
944
|
};
|
|
971
945
|
entityTypes: {
|
|
972
946
|
all: () => readonly ["entity-types"];
|
|
@@ -1473,7 +1447,7 @@ interface AnnotationProviderProps {
|
|
|
1473
1447
|
* const deleteMutation = annotations.delete.useMutation();
|
|
1474
1448
|
*
|
|
1475
1449
|
* return {
|
|
1476
|
-
*
|
|
1450
|
+
* markAnnotation: async (params) => {
|
|
1477
1451
|
* const result = await createMutation.mutateAsync({
|
|
1478
1452
|
* rUri: params.rUri,
|
|
1479
1453
|
* data: { motivation: params.motivation, target: { source: params.rUri, selector: params.selector }, body: params.body }
|
|
@@ -1640,7 +1614,7 @@ declare function useOpenResources(): OpenResourcesManager;
|
|
|
1640
1614
|
|
|
1641
1615
|
interface ResourceAnnotationsContextType {
|
|
1642
1616
|
newAnnotationIds: Set<string>;
|
|
1643
|
-
|
|
1617
|
+
markAnnotation: (rUri: ResourceId, motivation: 'highlighting' | 'linking' | 'assessing' | 'commenting' | 'tagging', selector: Selector | Selector[], body?: any[]) => Promise<string | undefined>;
|
|
1644
1618
|
clearNewAnnotationId: (id: AnnotationId) => void;
|
|
1645
1619
|
triggerSparkleAnimation: (annotationId: string) => void;
|
|
1646
1620
|
}
|
|
@@ -1814,11 +1788,11 @@ interface Props$b {
|
|
|
1814
1788
|
showLineNumbers?: boolean;
|
|
1815
1789
|
enableWidgets?: boolean;
|
|
1816
1790
|
eventBus?: EventBus;
|
|
1817
|
-
|
|
1791
|
+
getTargetResourceName?: (resourceId: string) => string | undefined;
|
|
1818
1792
|
generatingReferenceId?: string | null;
|
|
1819
1793
|
hoverDelayMs: number;
|
|
1820
1794
|
}
|
|
1821
|
-
declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, eventBus,
|
|
1795
|
+
declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, eventBus, getTargetResourceName, generatingReferenceId, hoverDelayMs }: Props$b): react_jsx_runtime.JSX.Element;
|
|
1822
1796
|
|
|
1823
1797
|
type Motivation$6 = components['schemas']['Motivation'];
|
|
1824
1798
|
interface AnnotateReferencesProgressWidgetProps {
|
|
@@ -1936,7 +1910,7 @@ interface ResizeHandleProps {
|
|
|
1936
1910
|
declare function ResizeHandle({ onResize, minWidth, maxWidth, position, ariaLabel }: ResizeHandleProps): react_jsx_runtime.JSX.Element;
|
|
1937
1911
|
|
|
1938
1912
|
interface ResourceTagsInlineProps {
|
|
1939
|
-
|
|
1913
|
+
resourceId: string;
|
|
1940
1914
|
tags: string[];
|
|
1941
1915
|
isEditing: boolean;
|
|
1942
1916
|
onUpdate: (tags: string[]) => Promise<void>;
|
|
@@ -2093,7 +2067,7 @@ interface Props$8 {
|
|
|
2093
2067
|
onUIStateChange?: (state: Partial<AnnotationUIState>) => void;
|
|
2094
2068
|
editable?: boolean;
|
|
2095
2069
|
enableWidgets?: boolean;
|
|
2096
|
-
|
|
2070
|
+
getTargetResourceName?: (resourceId: string) => string | undefined;
|
|
2097
2071
|
generatingReferenceId?: string | null;
|
|
2098
2072
|
showLineNumbers?: boolean;
|
|
2099
2073
|
hoverDelayMs?: number;
|
|
@@ -2108,7 +2082,7 @@ interface Props$8 {
|
|
|
2108
2082
|
* @subscribes mark:shape-changed - Toolbar shape changed. Payload: { shape: string }
|
|
2109
2083
|
* @subscribes beckon:hover - Annotation hovered. Payload: { annotationId: string | null }
|
|
2110
2084
|
*/
|
|
2111
|
-
declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets,
|
|
2085
|
+
declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetResourceName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8): react_jsx_runtime.JSX.Element;
|
|
2112
2086
|
|
|
2113
2087
|
interface Props$7 {
|
|
2114
2088
|
rUri: ResourceId;
|
|
@@ -2228,6 +2202,7 @@ interface AssessmentPanelProps {
|
|
|
2228
2202
|
percentage?: number;
|
|
2229
2203
|
message?: string;
|
|
2230
2204
|
} | null;
|
|
2205
|
+
locale?: string;
|
|
2231
2206
|
annotateMode?: boolean;
|
|
2232
2207
|
scrollToAnnotationId?: string | null;
|
|
2233
2208
|
onScrollCompleted?: () => void;
|
|
@@ -2240,7 +2215,7 @@ interface AssessmentPanelProps {
|
|
|
2240
2215
|
* @emits mark:cancel-pending - Cancel pending assessment annotation. Payload: undefined
|
|
2241
2216
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2242
2217
|
*/
|
|
2243
|
-
declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): react_jsx_runtime.JSX.Element;
|
|
2218
|
+
declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, locale, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): react_jsx_runtime.JSX.Element;
|
|
2244
2219
|
|
|
2245
2220
|
interface Props$3 {
|
|
2246
2221
|
isConnected: boolean;
|
|
@@ -2275,6 +2250,7 @@ interface CommentsPanelProps {
|
|
|
2275
2250
|
percentage?: number;
|
|
2276
2251
|
message?: string;
|
|
2277
2252
|
} | null;
|
|
2253
|
+
locale?: string;
|
|
2278
2254
|
scrollToAnnotationId?: string | null;
|
|
2279
2255
|
onScrollCompleted?: () => void;
|
|
2280
2256
|
hoveredAnnotationId?: string | null;
|
|
@@ -2286,11 +2262,12 @@ interface CommentsPanelProps {
|
|
|
2286
2262
|
* @emits mark:cancel-pending - Cancel pending comment annotation. Payload: undefined
|
|
2287
2263
|
* @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
|
|
2288
2264
|
*/
|
|
2289
|
-
declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): react_jsx_runtime.JSX.Element;
|
|
2265
|
+
declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, locale, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): react_jsx_runtime.JSX.Element;
|
|
2290
2266
|
|
|
2291
2267
|
interface AssistSectionProps {
|
|
2292
2268
|
annotationType: 'highlight' | 'assessment' | 'comment';
|
|
2293
2269
|
isAssisting: boolean;
|
|
2270
|
+
locale?: string;
|
|
2294
2271
|
progress?: {
|
|
2295
2272
|
status: string;
|
|
2296
2273
|
percentage?: number;
|
|
@@ -2313,7 +2290,7 @@ interface AssistSectionProps {
|
|
|
2313
2290
|
* @emits mark:assist-request - Start assist for annotation type. Payload: { motivation: Motivation, options: { instructions?: string, tone?: string, density?: number } }
|
|
2314
2291
|
* @emits mark:progress-dismiss - Dismiss the annotation progress display
|
|
2315
2292
|
*/
|
|
2316
|
-
declare function AssistSection({ annotationType, isAssisting, progress, }: AssistSectionProps): react_jsx_runtime.JSX.Element;
|
|
2293
|
+
declare function AssistSection({ annotationType, isAssisting, locale, progress, }: AssistSectionProps): react_jsx_runtime.JSX.Element;
|
|
2317
2294
|
|
|
2318
2295
|
type Annotation$7 = components['schemas']['Annotation'];
|
|
2319
2296
|
interface HighlightEntryProps {
|
|
@@ -2424,12 +2401,19 @@ interface Props$1 {
|
|
|
2424
2401
|
*/
|
|
2425
2402
|
declare function ReferencesPanel({ annotations, isAssisting, progress, annotateMode, Link, routes, allEntityTypes, generatingReferenceId, referencedBy, referencedByLoading, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
2426
2403
|
|
|
2404
|
+
type Agent = components['schemas']['Agent'];
|
|
2427
2405
|
interface Props {
|
|
2428
2406
|
documentEntityTypes: string[];
|
|
2429
2407
|
documentLocale?: string | undefined;
|
|
2430
2408
|
primaryMediaType?: string | undefined;
|
|
2431
2409
|
primaryByteSize?: number | undefined;
|
|
2432
2410
|
isArchived?: boolean;
|
|
2411
|
+
dateCreated?: string | undefined;
|
|
2412
|
+
dateModified?: string | undefined;
|
|
2413
|
+
creationMethod?: string | undefined;
|
|
2414
|
+
wasAttributedTo?: Agent | Agent[] | undefined;
|
|
2415
|
+
wasDerivedFrom?: string | string[] | undefined;
|
|
2416
|
+
generator?: Agent | Agent[] | undefined;
|
|
2433
2417
|
}
|
|
2434
2418
|
/**
|
|
2435
2419
|
* Panel for displaying resource metadata and management actions
|
|
@@ -2438,7 +2422,7 @@ interface Props {
|
|
|
2438
2422
|
* @emits mark:unarchive - Unarchive this resource. Payload: undefined
|
|
2439
2423
|
* @emits mark:archive - Archive this resource. Payload: undefined
|
|
2440
2424
|
*/
|
|
2441
|
-
declare function ResourceInfoPanel({ documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, isArchived, }: Props): react_jsx_runtime.JSX.Element;
|
|
2425
|
+
declare function ResourceInfoPanel({ documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, isArchived, dateCreated, dateModified, creationMethod, wasAttributedTo, wasDerivedFrom, generator, }: Props): react_jsx_runtime.JSX.Element;
|
|
2442
2426
|
|
|
2443
2427
|
type Annotation$3 = components['schemas']['Annotation'];
|
|
2444
2428
|
interface StatisticsPanelProps {
|
|
@@ -2529,6 +2513,7 @@ interface UnifiedAnnotationsPanelProps {
|
|
|
2529
2513
|
scrollToAnnotationId?: string | null;
|
|
2530
2514
|
onScrollCompleted?: () => void;
|
|
2531
2515
|
hoveredAnnotationId?: string | null;
|
|
2516
|
+
locale?: string;
|
|
2532
2517
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
2533
2518
|
routes: RouteBuilder;
|
|
2534
2519
|
}
|
|
@@ -2782,15 +2767,9 @@ interface ReferenceWizardModalProps {
|
|
|
2782
2767
|
configureGenerationTitle: string;
|
|
2783
2768
|
configureSearchTitle: string;
|
|
2784
2769
|
searchResultsTitle: string;
|
|
2785
|
-
annotationLabel: string;
|
|
2786
|
-
sourceResourceLabel: string;
|
|
2787
|
-
motivationLabel: string;
|
|
2788
2770
|
sourceContextLabel: string;
|
|
2789
|
-
entityTypesLabel: string;
|
|
2790
|
-
graphContextLabel: string;
|
|
2791
2771
|
connectionsLabel: string;
|
|
2792
2772
|
citedByLabel: string;
|
|
2793
|
-
siblingTypesLabel: string;
|
|
2794
2773
|
userHintLabel: string;
|
|
2795
2774
|
userHintPlaceholder: string;
|
|
2796
2775
|
loadingContext: string;
|
|
@@ -2800,6 +2779,7 @@ interface ReferenceWizardModalProps {
|
|
|
2800
2779
|
searching: string;
|
|
2801
2780
|
generate: string;
|
|
2802
2781
|
compose: string;
|
|
2782
|
+
resolutionStrategyLabel: string;
|
|
2803
2783
|
back: string;
|
|
2804
2784
|
link: string;
|
|
2805
2785
|
score: string;
|
|
@@ -3987,6 +3967,7 @@ declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, Tool
|
|
|
3987
3967
|
* @emits beckon:sparkle
|
|
3988
3968
|
* @emits beckon:focus
|
|
3989
3969
|
*/
|
|
3970
|
+
|
|
3990
3971
|
interface BeckonFlowState {
|
|
3991
3972
|
hoveredAnnotationId: string | null;
|
|
3992
3973
|
}
|
|
@@ -4020,6 +4001,22 @@ interface HoverEmitterProps {
|
|
|
4020
4001
|
* @param hoverDelayMs - Hover delay in milliseconds (defaults to HOVER_DELAY_MS for panel entries)
|
|
4021
4002
|
*/
|
|
4022
4003
|
declare function useHoverEmitter(annotationId: string, hoverDelayMs?: number): HoverEmitterProps;
|
|
4004
|
+
/**
|
|
4005
|
+
* Opens a participant-scoped SSE connection to receive cross-participant
|
|
4006
|
+
* beckon signals. Each incoming signal is emitted as beckon:focus on the
|
|
4007
|
+
* EventBus — the existing scroll/highlight machinery handles it automatically.
|
|
4008
|
+
*
|
|
4009
|
+
* Signals are ephemeral: delivered if connected, silently dropped if not.
|
|
4010
|
+
*
|
|
4011
|
+
* @example
|
|
4012
|
+
* ```tsx
|
|
4013
|
+
* // In your layout (render-nothing connector):
|
|
4014
|
+
* useAttentionStream();
|
|
4015
|
+
* ```
|
|
4016
|
+
*/
|
|
4017
|
+
declare function useAttentionStream(): {
|
|
4018
|
+
status: StreamStatus;
|
|
4019
|
+
};
|
|
4023
4020
|
|
|
4024
4021
|
/**
|
|
4025
4022
|
* useMarkFlow - Annotation state management hook
|
|
@@ -4156,7 +4153,7 @@ interface YieldFlowState {
|
|
|
4156
4153
|
* @param resourceId - Resource ID for generation
|
|
4157
4154
|
* @param clearNewAnnotationId - Clear animation callback
|
|
4158
4155
|
* @emits yield:request - Start document generation
|
|
4159
|
-
* @subscribes yield:request - Triggers SSE call to
|
|
4156
|
+
* @subscribes yield:request - Triggers SSE call to yieldResource
|
|
4160
4157
|
* @subscribes job:cancel-requested - Cancels in-flight generation stream
|
|
4161
4158
|
* @subscribes yield:progress - SSE progress chunks
|
|
4162
4159
|
* @subscribes yield:finished - Generation completed successfully
|
|
@@ -4207,10 +4204,11 @@ declare function useContextGatherFlow(eventBus: EventBus, config: ContextGatherF
|
|
|
4207
4204
|
* the downstream API calls after the wizard emits bind:update-body.
|
|
4208
4205
|
*
|
|
4209
4206
|
* @subscribes bind:update-body - Update annotation body via API
|
|
4207
|
+
* @subscribes match:search-requested - Bridge to backend Matcher via SSE; results emit as match:search-results
|
|
4210
4208
|
* @emits bind:body-updated - Annotation body successfully updated
|
|
4211
4209
|
* @emits bind:body-update-failed - Annotation body update failed
|
|
4212
4210
|
*/
|
|
4213
4211
|
|
|
4214
4212
|
declare function useBindFlow(rUri: ResourceId): void;
|
|
4215
4213
|
|
|
4216
|
-
export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminExchangePage, type AdminExchangePageProps, type AdminExchangePageTranslations, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateReferencesProgressWidget, AnnotateToolbar, AnnotateView, type Annotation$k 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 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, ExportCard, type ExportCardProps, type ExportCardTranslations, Footer, HOVER_DELAY_MS, HighlightEntry, HighlightPanel, HistoryEvent, type HoverEmitterProps, type HoverHandlers, ImageURLSchema, ImageViewer, ImportCard, type ImportCardProps, type ImportCardTranslations, type ImportPreview, ImportProgress, type ImportProgressProps, type ImportProgressTranslations, JsonLdPanel, JsonLdView, type KeyboardShortcut, KeyboardShortcutsHelpModal, LeftSidebar, type LinkComponentProps, LinkedDataPage, type LinkedDataPageProps, type LinkedDataPageTranslations, LiveRegionProvider, type MarkFlowState, type Motivation$8 as Motivation, type NavigationItem, NavigationMenu, type NavigationMenuHelper, type NavigationProps, type OAuthProvider, type OAuthUser, OAuthUserSchema, ObservableLink, type ObservableLinkProps, OpenResource, OpenResourcesManager, OpenResourcesProvider, type OverlayAnnotation, PageLayout, type PanelBrowseState, PanelHeader, PopupContainer, PopupHeader, ProposeEntitiesModal, QUERY_KEYS, RESOURCE_PANELS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferenceWizardModal, type ReferenceWizardModalProps, 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, useGlobalEvents, useHealth, useHoverDelay, useHoverEmitter, useIsTyping, useKeyboardShortcuts, useLanguageChangeAnnouncements, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useMarkFlow, useModeration, useObservableExternalNavigation, useObservableRouter, useOpenResources, usePanelBrowse, usePanelWidth, usePreloadTranslations, useResourceAnnotations, useResourceContent, useResourceEvents, useResourceLoadingAnnouncements, useResources, useRovingTabIndex, useSearchAnnouncements, useSessionContext, useSessionExpiry, useTheme, useToast, useTranslations, useYieldFlow };
|
|
4214
|
+
export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminExchangePage, type AdminExchangePageProps, type AdminExchangePageTranslations, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateReferencesProgressWidget, AnnotateToolbar, AnnotateView, type Annotation$k 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 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, ExportCard, type ExportCardProps, type ExportCardTranslations, Footer, HOVER_DELAY_MS, HighlightEntry, HighlightPanel, HistoryEvent, type HoverEmitterProps, type HoverHandlers, ImageURLSchema, ImageViewer, ImportCard, type ImportCardProps, type ImportCardTranslations, type ImportPreview, ImportProgress, type ImportProgressProps, type ImportProgressTranslations, JsonLdPanel, JsonLdView, type KeyboardShortcut, KeyboardShortcutsHelpModal, LeftSidebar, type LinkComponentProps, LinkedDataPage, type LinkedDataPageProps, type LinkedDataPageTranslations, LiveRegionProvider, type MarkFlowState, type Motivation$8 as Motivation, type NavigationItem, NavigationMenu, type NavigationMenuHelper, type NavigationProps, type OAuthProvider, type OAuthUser, OAuthUserSchema, ObservableLink, type ObservableLinkProps, OpenResource, OpenResourcesManager, OpenResourcesProvider, type OverlayAnnotation, PageLayout, type PanelBrowseState, PanelHeader, PopupContainer, PopupHeader, ProposeEntitiesModal, QUERY_KEYS, RESOURCE_PANELS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferenceWizardModal, type ReferenceWizardModalProps, 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, useAttentionStream, useAuthApi, useAuthToken, useBeckonFlow, useBindFlow, useCacheManager, useContextGatherFlow, useDebounce, useDebouncedCallback, useDocumentAnnouncements, useDoubleKeyPress, useDropdown, useEntityTypes, useEventSubscription, useEventSubscriptions, useFormAnnouncements, useGlobalEvents, useHealth, useHoverDelay, useHoverEmitter, useIsTyping, useKeyboardShortcuts, useLanguageChangeAnnouncements, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useMarkFlow, useModeration, useObservableExternalNavigation, useObservableRouter, useOpenResources, usePanelBrowse, usePanelWidth, usePreloadTranslations, useResourceAnnotations, useResourceContent, useResourceEvents, useResourceLoadingAnnouncements, useResources, useRovingTabIndex, useSearchAnnouncements, useSessionContext, useSessionExpiry, useTheme, useToast, useTranslations, useYieldFlow };
|