@semiont/react-ui 0.2.46 → 0.3.0
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-COQREPXU.mjs → PdfAnnotationCanvas.client-PVTVPDBQ.mjs} +3 -4
- package/dist/PdfAnnotationCanvas.client-PVTVPDBQ.mjs.map +1 -0
- package/dist/{ar-7SUXNE34.mjs → ar-APUOG2AP.mjs} +46 -6
- package/dist/ar-APUOG2AP.mjs.map +1 -0
- package/dist/{bn-XOET3DOI.mjs → bn-EFK2LJGK.mjs} +46 -6
- package/dist/bn-EFK2LJGK.mjs.map +1 -0
- package/dist/{chunk-JH7BXE2P.mjs → chunk-7DW2P4UE.mjs} +45 -5
- package/dist/chunk-7DW2P4UE.mjs.map +1 -0
- package/dist/{chunk-Q2KV6Y2J.mjs → chunk-7GEYABC6.mjs} +32 -32
- package/dist/{chunk-3JTO27MH.mjs → chunk-D4GAAQMM.mjs} +2 -9
- package/dist/{cs-X63DXX7L.mjs → cs-A26MEEQE.mjs} +46 -6
- package/dist/cs-A26MEEQE.mjs.map +1 -0
- package/dist/{da-OWTCV57A.mjs → da-U3L2FHSZ.mjs} +46 -6
- package/dist/da-U3L2FHSZ.mjs.map +1 -0
- package/dist/{de-77BMFDVF.mjs → de-Y5BHEBT7.mjs} +46 -6
- package/dist/de-Y5BHEBT7.mjs.map +1 -0
- package/dist/dist-YLEIY3JJ.mjs +547 -0
- package/dist/dist-YLEIY3JJ.mjs.map +1 -0
- package/dist/{el-FIBNLH2V.mjs → el-HU7LAWQY.mjs} +46 -6
- package/dist/el-HU7LAWQY.mjs.map +1 -0
- package/dist/{en-XWEPVTB4.mjs → en-HAKDCFKL.mjs} +5 -3
- package/dist/{es-726NTS53.mjs → es-4BN64QH5.mjs} +46 -6
- package/dist/es-4BN64QH5.mjs.map +1 -0
- package/dist/{fa-3N4CIWE6.mjs → fa-6ELTBARU.mjs} +46 -6
- package/dist/fa-6ELTBARU.mjs.map +1 -0
- package/dist/{fi-JOM3M7Z4.mjs → fi-DJ4WGIFW.mjs} +46 -6
- package/dist/fi-DJ4WGIFW.mjs.map +1 -0
- package/dist/{fr-56QSXS7E.mjs → fr-23XM6H6H.mjs} +46 -6
- package/dist/fr-23XM6H6H.mjs.map +1 -0
- package/dist/{he-SNAXPJEK.mjs → he-JSWJC2XU.mjs} +46 -6
- package/dist/he-JSWJC2XU.mjs.map +1 -0
- package/dist/{hi-CRBRD5TB.mjs → hi-BENHG3OJ.mjs} +46 -6
- package/dist/hi-BENHG3OJ.mjs.map +1 -0
- package/dist/{id-BRCVLICF.mjs → id-4HHQJQNF.mjs} +46 -6
- package/dist/id-4HHQJQNF.mjs.map +1 -0
- package/dist/index.css +108 -12
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +351 -107
- package/dist/index.mjs +3111 -1811
- package/dist/index.mjs.map +1 -1
- package/dist/{it-M2Z27BNB.mjs → it-U6I5PDKU.mjs} +46 -6
- package/dist/it-U6I5PDKU.mjs.map +1 -0
- package/dist/{ja-TZUKW7HD.mjs → ja-K3YBDWDP.mjs} +46 -6
- package/dist/ja-K3YBDWDP.mjs.map +1 -0
- package/dist/{ko-NKBGGOL6.mjs → ko-KC2HXRXG.mjs} +46 -6
- package/dist/ko-KC2HXRXG.mjs.map +1 -0
- package/dist/{magic-string.es-7FJ3LUGB.mjs → magic-string.es-K77I4ZQN.mjs} +2 -2
- package/dist/{ms-XFXPN6RX.mjs → ms-KY5QGBNN.mjs} +46 -6
- package/dist/ms-KY5QGBNN.mjs.map +1 -0
- package/dist/{nl-MVYXAS5C.mjs → nl-6PZFLGY2.mjs} +46 -6
- package/dist/nl-6PZFLGY2.mjs.map +1 -0
- package/dist/{no-XOLO4JPV.mjs → no-5QR7PLVJ.mjs} +46 -6
- package/dist/no-5QR7PLVJ.mjs.map +1 -0
- package/dist/{pl-TRWLMMC4.mjs → pl-4GV2NQXE.mjs} +46 -6
- package/dist/pl-4GV2NQXE.mjs.map +1 -0
- package/dist/{pt-M3TE24UI.mjs → pt-F3F5QD2P.mjs} +46 -6
- package/dist/pt-F3F5QD2P.mjs.map +1 -0
- package/dist/{ro-QBFG2T64.mjs → ro-TFYL2IQB.mjs} +46 -6
- package/dist/ro-TFYL2IQB.mjs.map +1 -0
- package/dist/{sv-IUECBXWX.mjs → sv-PRVF2QLR.mjs} +46 -6
- package/dist/sv-PRVF2QLR.mjs.map +1 -0
- package/dist/test-utils.mjs +16994 -22140
- package/dist/test-utils.mjs.map +1 -1
- package/dist/{th-US7KIN5Q.mjs → th-SUQOQFUZ.mjs} +46 -6
- package/dist/th-SUQOQFUZ.mjs.map +1 -0
- package/dist/{tr-DWJ2FFUK.mjs → tr-AYUJZOFJ.mjs} +46 -6
- package/dist/tr-AYUJZOFJ.mjs.map +1 -0
- package/dist/{uk-M4ZE4DPZ.mjs → uk-YY5WGLBM.mjs} +46 -6
- package/dist/uk-YY5WGLBM.mjs.map +1 -0
- package/dist/{vi-FERZNPSH.mjs → vi-6RO77ITD.mjs} +46 -6
- package/dist/{vi-FERZNPSH.mjs.map → vi-6RO77ITD.mjs.map} +1 -1
- package/dist/{zh-3J2I3WYK.mjs → zh-L6GA65H6.mjs} +46 -6
- package/dist/zh-L6GA65H6.mjs.map +1 -0
- package/package.json +18 -14
- package/src/components/Button/Button.tsx +23 -25
- package/src/components/annotation/AnnotateToolbar.tsx +1 -1
- package/src/components/annotation-popups/SharedPopupElements.tsx +5 -7
- package/src/components/image-annotation/SvgDrawingCanvas.tsx +3 -4
- package/src/components/modals/ConfigureGenerationStep.tsx +190 -0
- package/src/components/modals/ConfigureSearchStep.tsx +105 -0
- package/src/components/modals/ContextSummary.tsx +183 -0
- package/src/components/modals/GatherContextStep.tsx +89 -0
- package/src/components/modals/KeyboardShortcutsHelpModal.tsx +4 -6
- package/src/components/modals/ProposeEntitiesModal.tsx +4 -6
- package/src/components/modals/ReferenceWizardModal.tsx +326 -0
- package/src/components/modals/ResourceSearchModal.tsx +4 -6
- package/src/components/modals/SearchModal.css +43 -0
- package/src/components/modals/SearchModal.tsx +4 -6
- package/src/components/modals/SearchResultsStep.tsx +126 -0
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +3 -4
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +36 -14
- package/src/components/resource/AnnotateView.tsx +4 -4
- package/src/components/resource/AnnotationHistory.tsx +2 -2
- package/src/components/resource/BrowseView.tsx +4 -4
- package/src/components/resource/ResourceViewer.tsx +4 -7
- package/src/components/resource/__tests__/AnnotationHistory.test.tsx +16 -16
- package/src/components/resource/__tests__/BrowseView.test.tsx +2 -2
- package/src/components/resource/__tests__/HistoryEvent.test.tsx +1 -1
- package/src/components/resource/__tests__/ResourceViewer.mode-switch.test.tsx +1 -1
- package/src/components/resource/panels/AssessmentEntry.tsx +9 -11
- package/src/components/resource/panels/CommentEntry.tsx +10 -12
- package/src/components/resource/panels/HighlightEntry.tsx +9 -11
- package/src/components/resource/panels/ReferenceEntry.tsx +57 -104
- package/src/components/resource/panels/ReferencesPanel.css +85 -13
- package/src/components/resource/panels/ReferencesPanel.tsx +1 -2
- package/src/components/resource/panels/TagEntry.tsx +9 -11
- package/src/components/resource/panels/__tests__/AssistSection.test.tsx +7 -7
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +2 -2
- package/src/components/resource/panels/__tests__/ReferenceEntry.test.tsx +64 -101
- package/src/components/resource/panels/__tests__/StatisticsPanel.test.tsx +1 -1
- package/src/components/resource/panels/__tests__/TaggingPanel.test.tsx +3 -3
- package/src/components/viewers/ImageViewer.tsx +3 -6
- package/src/components/viewers/__tests__/ImageViewer.test.tsx +3 -3
- package/src/features/admin-devops/__tests__/AdminDevOpsPage.test.tsx +5 -5
- package/src/features/admin-exchange/__tests__/AdminExchangePage.test.tsx +141 -0
- package/src/features/admin-exchange/__tests__/ExportCard.test.tsx +41 -0
- package/src/features/admin-exchange/__tests__/ImportCard.test.tsx +148 -0
- package/src/features/admin-exchange/__tests__/ImportProgress.test.tsx +106 -0
- package/src/features/admin-exchange/components/AdminExchangePage.tsx +120 -0
- package/src/features/admin-exchange/components/ExportCard.tsx +35 -0
- package/src/features/admin-exchange/components/ImportCard.tsx +188 -0
- package/src/features/admin-exchange/components/ImportProgress.tsx +86 -0
- package/src/features/admin-security/__tests__/AdminSecurityPage.test.tsx +3 -3
- package/src/features/moderate-entity-tags/__tests__/EntityTagsPage.test.tsx +2 -2
- package/src/features/moderate-recent/__tests__/RecentDocumentsPage.test.tsx +4 -4
- package/src/features/moderate-tag-schemas/__tests__/TagSchemasPage.test.tsx +3 -3
- package/src/features/moderation-linked-data/__tests__/LinkedDataPage.test.tsx +117 -0
- package/src/features/moderation-linked-data/components/LinkedDataPage.tsx +121 -0
- package/src/features/resource-compose/__tests__/ResourceComposePage.test.tsx +5 -5
- package/src/features/resource-compose/components/ResourceComposePage.tsx +56 -1
- package/src/features/resource-discovery/__tests__/ResourceCard.test.tsx +1 -1
- package/src/features/resource-discovery/__tests__/ResourceDiscoveryPage.test.tsx +2 -2
- package/src/features/resource-viewer/__tests__/AnnotationCreationPending.test.tsx +3 -3
- package/src/features/resource-viewer/__tests__/AnnotationDeletionIntegration.test.tsx +11 -10
- package/src/features/resource-viewer/__tests__/AnnotationProgressDismissal.test.tsx +2 -2
- package/src/features/resource-viewer/__tests__/BindFlowIntegration.test.tsx +22 -115
- package/src/features/resource-viewer/__tests__/DetectionFlowBug.test.tsx +3 -3
- package/src/features/resource-viewer/__tests__/DetectionFlowIntegration.test.tsx +20 -20
- package/src/features/resource-viewer/__tests__/ResourceMutations.test.tsx +7 -7
- package/src/features/resource-viewer/__tests__/ResourceViewerPage.test.tsx +5 -21
- package/src/features/resource-viewer/__tests__/ToastNotifications.test.tsx +2 -2
- package/src/features/resource-viewer/__tests__/YieldFlowIntegration.test.tsx +45 -82
- package/src/features/resource-viewer/__tests__/annotation-progress-flow.test.tsx +4 -4
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +144 -72
- package/src/integrations/tailwind-plugin.js +3 -3
- package/src/styles/core/buttons.css +31 -0
- package/src/styles/features/exchange.css +404 -0
- package/src/styles/index.css +1 -0
- package/translations/ar.json +42 -4
- package/translations/bn.json +42 -4
- package/translations/cs.json +42 -4
- package/translations/da.json +128 -90
- package/translations/de.json +122 -84
- package/translations/el.json +42 -4
- package/translations/en.json +42 -4
- package/translations/es.json +42 -4
- package/translations/fa.json +42 -4
- package/translations/fi.json +68 -30
- package/translations/fr.json +42 -4
- package/translations/he.json +42 -4
- package/translations/hi.json +42 -4
- package/translations/id.json +43 -5
- package/translations/it.json +62 -24
- package/translations/ja.json +43 -5
- package/translations/ko.json +42 -4
- package/translations/ms.json +43 -5
- package/translations/nl.json +41 -3
- package/translations/no.json +104 -66
- package/translations/pl.json +42 -4
- package/translations/pt.json +43 -5
- package/translations/ro.json +42 -4
- package/translations/sv.json +42 -4
- package/translations/th.json +42 -4
- package/translations/tr.json +42 -4
- package/translations/uk.json +42 -4
- package/translations/vi.json +42 -4
- package/translations/zh.json +42 -4
- package/dist/PdfAnnotationCanvas.client-COQREPXU.mjs.map +0 -1
- package/dist/ar-7SUXNE34.mjs.map +0 -1
- package/dist/bn-XOET3DOI.mjs.map +0 -1
- package/dist/chunk-JH7BXE2P.mjs.map +0 -1
- package/dist/cs-X63DXX7L.mjs.map +0 -1
- package/dist/da-OWTCV57A.mjs.map +0 -1
- package/dist/de-77BMFDVF.mjs.map +0 -1
- package/dist/el-FIBNLH2V.mjs.map +0 -1
- package/dist/es-726NTS53.mjs.map +0 -1
- package/dist/fa-3N4CIWE6.mjs.map +0 -1
- package/dist/fi-JOM3M7Z4.mjs.map +0 -1
- package/dist/fr-56QSXS7E.mjs.map +0 -1
- package/dist/he-SNAXPJEK.mjs.map +0 -1
- package/dist/hi-CRBRD5TB.mjs.map +0 -1
- package/dist/id-BRCVLICF.mjs.map +0 -1
- package/dist/it-M2Z27BNB.mjs.map +0 -1
- package/dist/ja-TZUKW7HD.mjs.map +0 -1
- package/dist/ko-NKBGGOL6.mjs.map +0 -1
- package/dist/ms-XFXPN6RX.mjs.map +0 -1
- package/dist/nl-MVYXAS5C.mjs.map +0 -1
- package/dist/no-XOLO4JPV.mjs.map +0 -1
- package/dist/pl-TRWLMMC4.mjs.map +0 -1
- package/dist/pt-M3TE24UI.mjs.map +0 -1
- package/dist/ro-QBFG2T64.mjs.map +0 -1
- package/dist/sv-IUECBXWX.mjs.map +0 -1
- package/dist/th-US7KIN5Q.mjs.map +0 -1
- package/dist/tr-DWJ2FFUK.mjs.map +0 -1
- package/dist/uk-M4ZE4DPZ.mjs.map +0 -1
- package/dist/zh-3J2I3WYK.mjs.map +0 -1
- package/src/examples/ButtonUsageExample.tsx +0 -242
- package/src/examples/button-css-modules.module.css +0 -164
- package/src/examples/button-styled-components.tsx +0 -215
- package/src/examples/button-tailwind.css +0 -51
- /package/dist/{chunk-Q2KV6Y2J.mjs.map → chunk-7GEYABC6.mjs.map} +0 -0
- /package/dist/{chunk-3JTO27MH.mjs.map → chunk-D4GAAQMM.mjs.map} +0 -0
- /package/dist/{en-XWEPVTB4.mjs.map → en-HAKDCFKL.mjs.map} +0 -0
- /package/dist/{magic-string.es-7FJ3LUGB.mjs.map → magic-string.es-K77I4ZQN.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _semiont_core from '@semiont/core';
|
|
2
|
-
import { components,
|
|
2
|
+
import { components, ResourceId, Selector, AnnotationId, ResourceEvent, EventMap, EventBus, MarkProgress, StoredEvent, paths, GatheredContext, Motivation as Motivation$9, YieldProgress } from '@semiont/core';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
|
-
import React__default, { ComponentType, ReactNode, KeyboardEvent as KeyboardEvent$1, Component, ErrorInfo } from 'react';
|
|
5
|
+
import React__default, { ComponentType, ReactNode, KeyboardEvent as KeyboardEvent$1, Component, ErrorInfo, Ref } from 'react';
|
|
6
6
|
import { O as OpenResourcesManager, S as SessionManager, T as TranslationManager } from './EventBusContext-CLnb2LmB.mjs';
|
|
7
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';
|
|
@@ -119,7 +119,7 @@ type Annotation$l = components['schemas']['Annotation'];
|
|
|
119
119
|
* Parameters for creating an annotation
|
|
120
120
|
*/
|
|
121
121
|
interface CreateAnnotationParams {
|
|
122
|
-
rUri:
|
|
122
|
+
rUri: ResourceId;
|
|
123
123
|
motivation: 'highlighting' | 'linking' | 'assessing' | 'commenting' | 'tagging';
|
|
124
124
|
selector: Selector | Selector[];
|
|
125
125
|
body?: any[];
|
|
@@ -129,7 +129,7 @@ interface CreateAnnotationParams {
|
|
|
129
129
|
*/
|
|
130
130
|
interface DeleteAnnotationParams {
|
|
131
131
|
annotationId: string;
|
|
132
|
-
rUri:
|
|
132
|
+
rUri: ResourceId;
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
* Annotation Manager Interface
|
|
@@ -217,13 +217,13 @@ interface CacheManager {
|
|
|
217
217
|
* @param rUri - Resource URI
|
|
218
218
|
* @returns Promise or void (synchronous invalidation is acceptable)
|
|
219
219
|
*/
|
|
220
|
-
invalidateAnnotations: (rUri:
|
|
220
|
+
invalidateAnnotations: (rUri: ResourceId) => void | Promise<void>;
|
|
221
221
|
/**
|
|
222
222
|
* Invalidate events cache for a resource
|
|
223
223
|
* @param rUri - Resource URI
|
|
224
224
|
* @returns Promise or void (synchronous invalidation is acceptable)
|
|
225
225
|
*/
|
|
226
|
-
invalidateEvents: (rUri:
|
|
226
|
+
invalidateEvents: (rUri: ResourceId) => void | Promise<void>;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
@@ -357,26 +357,26 @@ declare function useResources(): {
|
|
|
357
357
|
}, Error>;
|
|
358
358
|
};
|
|
359
359
|
get: {
|
|
360
|
-
useQuery: (
|
|
360
|
+
useQuery: (id: ResourceId, options?: Omit<UseQueryOptions, "queryKey" | "queryFn">) => _tanstack_react_query.UseQueryResult<unknown, Error>;
|
|
361
361
|
};
|
|
362
362
|
events: {
|
|
363
|
-
useQuery: (
|
|
363
|
+
useQuery: (id: ResourceId) => _tanstack_react_query.UseQueryResult<{
|
|
364
364
|
events: any[];
|
|
365
365
|
}, Error>;
|
|
366
366
|
};
|
|
367
367
|
annotations: {
|
|
368
|
-
useQuery: (
|
|
368
|
+
useQuery: (id: ResourceId) => _tanstack_react_query.UseQueryResult<{
|
|
369
369
|
resource: _semiont_core.components["schemas"]["ResourceDescriptor"];
|
|
370
370
|
annotations: _semiont_core.components["schemas"]["Annotation"][];
|
|
371
371
|
}, Error>;
|
|
372
372
|
};
|
|
373
373
|
referencedBy: {
|
|
374
|
-
useQuery: (
|
|
374
|
+
useQuery: (id: ResourceId) => _tanstack_react_query.UseQueryResult<{
|
|
375
375
|
referencedBy: any[];
|
|
376
376
|
}, Error>;
|
|
377
377
|
};
|
|
378
378
|
representation: {
|
|
379
|
-
useQuery: (
|
|
379
|
+
useQuery: (id: ResourceId, mediaType: string) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
380
380
|
};
|
|
381
381
|
search: {
|
|
382
382
|
useQuery: (query: string, limit: number) => _tanstack_react_query.UseQueryResult<{
|
|
@@ -402,7 +402,7 @@ declare function useResources(): {
|
|
|
402
402
|
};
|
|
403
403
|
update: {
|
|
404
404
|
useMutation: () => _tanstack_react_query.UseMutationResult<void, Error, {
|
|
405
|
-
|
|
405
|
+
id: ResourceId;
|
|
406
406
|
data: Parameters<SemiontApiClient["updateResource"]>[1];
|
|
407
407
|
}, unknown>;
|
|
408
408
|
};
|
|
@@ -411,7 +411,7 @@ declare function useResources(): {
|
|
|
411
411
|
token: string;
|
|
412
412
|
expiresAt: string;
|
|
413
413
|
resource: _semiont_core.components["schemas"]["ResourceDescriptor"];
|
|
414
|
-
}, Error,
|
|
414
|
+
}, Error, ResourceId, unknown>;
|
|
415
415
|
};
|
|
416
416
|
getByToken: {
|
|
417
417
|
useQuery: (cloneTokenStr: string) => _tanstack_react_query.UseQueryResult<{
|
|
@@ -435,17 +435,17 @@ declare function useResources(): {
|
|
|
435
435
|
*/
|
|
436
436
|
declare function useAnnotations(): {
|
|
437
437
|
get: {
|
|
438
|
-
useQuery: (
|
|
438
|
+
useQuery: (id: AnnotationId) => _tanstack_react_query.UseQueryResult<never, Error>;
|
|
439
439
|
};
|
|
440
440
|
getResourceAnnotation: {
|
|
441
|
-
useQuery: (
|
|
441
|
+
useQuery: (resourceId: ResourceId, annotationId: AnnotationId) => _tanstack_react_query.UseQueryResult<{
|
|
442
442
|
annotation: _semiont_core.components["schemas"]["Annotation"];
|
|
443
443
|
resource: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
|
|
444
444
|
resolvedResource: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
|
|
445
445
|
}, Error>;
|
|
446
446
|
};
|
|
447
447
|
history: {
|
|
448
|
-
useQuery: (
|
|
448
|
+
useQuery: (resourceId: ResourceId, annotationId: AnnotationId) => _tanstack_react_query.UseQueryResult<{
|
|
449
449
|
events: {
|
|
450
450
|
id: string;
|
|
451
451
|
type: string;
|
|
@@ -500,30 +500,31 @@ declare function useAnnotations(): {
|
|
|
500
500
|
useMutation: () => _tanstack_react_query.UseMutationResult<{
|
|
501
501
|
annotationId: string;
|
|
502
502
|
}, Error, {
|
|
503
|
-
|
|
503
|
+
resourceId: ResourceId;
|
|
504
504
|
data: Parameters<SemiontApiClient["createAnnotation"]>[1];
|
|
505
505
|
}, unknown>;
|
|
506
506
|
};
|
|
507
507
|
delete: {
|
|
508
508
|
useMutation: () => _tanstack_react_query.UseMutationResult<void, Error, {
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
resourceId: ResourceId;
|
|
510
|
+
annotationId: AnnotationId;
|
|
511
511
|
}, unknown>;
|
|
512
512
|
};
|
|
513
513
|
updateBody: {
|
|
514
514
|
useMutation: () => _tanstack_react_query.UseMutationResult<void, Error, {
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
resourceId: ResourceId;
|
|
516
|
+
annotationId: AnnotationId;
|
|
517
|
+
data: Parameters<SemiontApiClient["updateAnnotationBody"]>[2];
|
|
517
518
|
}, unknown>;
|
|
518
519
|
};
|
|
519
520
|
llmContext: {
|
|
520
|
-
useQuery: (
|
|
521
|
+
useQuery: (resourceId: ResourceId, annotationId: AnnotationId, options?: {
|
|
521
522
|
contextWindow?: number;
|
|
522
523
|
}) => _tanstack_react_query.UseQueryResult<{
|
|
523
524
|
annotation: _semiont_core.components["schemas"]["Annotation"];
|
|
524
525
|
sourceResource: _semiont_core.components["schemas"]["ResourceDescriptor"];
|
|
525
526
|
targetResource?: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
|
|
526
|
-
context?: _semiont_core.components["schemas"]["
|
|
527
|
+
context?: _semiont_core.components["schemas"]["GatheredContext"];
|
|
527
528
|
sourceContext?: {
|
|
528
529
|
before: string;
|
|
529
530
|
selected: string;
|
|
@@ -638,6 +639,57 @@ declare function useAdmin(): {
|
|
|
638
639
|
}, Error>;
|
|
639
640
|
};
|
|
640
641
|
};
|
|
642
|
+
exchange: {
|
|
643
|
+
backup: {
|
|
644
|
+
useMutation: () => _tanstack_react_query.UseMutationResult<{
|
|
645
|
+
filename: string;
|
|
646
|
+
size: number;
|
|
647
|
+
}, Error, void, unknown>;
|
|
648
|
+
};
|
|
649
|
+
restore: {
|
|
650
|
+
useMutation: () => _tanstack_react_query.UseMutationResult<{
|
|
651
|
+
phase: string;
|
|
652
|
+
message?: string;
|
|
653
|
+
result?: Record<string, unknown>;
|
|
654
|
+
}, Error, {
|
|
655
|
+
file: File;
|
|
656
|
+
onProgress?: (event: {
|
|
657
|
+
phase: string;
|
|
658
|
+
message?: string;
|
|
659
|
+
result?: Record<string, unknown>;
|
|
660
|
+
}) => void;
|
|
661
|
+
}, unknown>;
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* Moderation operations (moderator or admin role required)
|
|
667
|
+
*/
|
|
668
|
+
declare function useModeration(): {
|
|
669
|
+
exchange: {
|
|
670
|
+
export: {
|
|
671
|
+
useMutation: () => _tanstack_react_query.UseMutationResult<{
|
|
672
|
+
filename: string;
|
|
673
|
+
size: number;
|
|
674
|
+
}, Error, {
|
|
675
|
+
includeArchived?: boolean;
|
|
676
|
+
} | undefined, unknown>;
|
|
677
|
+
};
|
|
678
|
+
import: {
|
|
679
|
+
useMutation: () => _tanstack_react_query.UseMutationResult<{
|
|
680
|
+
phase: string;
|
|
681
|
+
message?: string;
|
|
682
|
+
result?: Record<string, unknown>;
|
|
683
|
+
}, Error, {
|
|
684
|
+
file: File;
|
|
685
|
+
onProgress?: (event: {
|
|
686
|
+
phase: string;
|
|
687
|
+
message?: string;
|
|
688
|
+
result?: Record<string, unknown>;
|
|
689
|
+
}) => void;
|
|
690
|
+
}, unknown>;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
641
693
|
};
|
|
642
694
|
/**
|
|
643
695
|
* Authentication and user operations via API
|
|
@@ -899,21 +951,21 @@ declare const QUERY_KEYS: {
|
|
|
899
951
|
readonly limit: number | undefined;
|
|
900
952
|
readonly archived: boolean | undefined;
|
|
901
953
|
}];
|
|
902
|
-
detail: (
|
|
954
|
+
detail: (id: ResourceId) => readonly ["resources", ResourceId];
|
|
903
955
|
byToken: (token: string) => readonly ["resources", "by-token", string];
|
|
904
956
|
search: (query: string, limit: number) => readonly ["resources", "search", {
|
|
905
957
|
readonly query: string;
|
|
906
958
|
readonly limit: number;
|
|
907
959
|
}];
|
|
908
|
-
events: (
|
|
909
|
-
annotations: (
|
|
910
|
-
referencedBy: (
|
|
911
|
-
representation: (
|
|
960
|
+
events: (id: ResourceId) => readonly ["resources", ResourceId, "events"];
|
|
961
|
+
annotations: (id: ResourceId) => readonly ["resources", ResourceId, "annotations"];
|
|
962
|
+
referencedBy: (id: ResourceId) => readonly ["resources", ResourceId, "referenced-by"];
|
|
963
|
+
representation: (id: ResourceId) => readonly ["resources", ResourceId, "representation"];
|
|
912
964
|
};
|
|
913
965
|
annotations: {
|
|
914
|
-
detail: (
|
|
915
|
-
history: (
|
|
916
|
-
llmContext: (
|
|
966
|
+
detail: (id: AnnotationId) => readonly ["annotations", AnnotationId];
|
|
967
|
+
history: (resourceId: ResourceId, annotationId: AnnotationId) => readonly ["annotations", ResourceId, AnnotationId, "history"];
|
|
968
|
+
llmContext: (resourceId: ResourceId, annotationId: AnnotationId) => readonly ["annotations", "llm-context", ResourceId, AnnotationId];
|
|
917
969
|
};
|
|
918
970
|
entityTypes: {
|
|
919
971
|
all: () => readonly ["entity-types"];
|
|
@@ -1255,7 +1307,7 @@ storageKey }?: UsePanelWidthOptions): {
|
|
|
1255
1307
|
*/
|
|
1256
1308
|
type StreamStatus = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
1257
1309
|
interface UseResourceEventsOptions {
|
|
1258
|
-
rUri:
|
|
1310
|
+
rUri: ResourceId;
|
|
1259
1311
|
onEvent?: (event: ResourceEvent) => void;
|
|
1260
1312
|
onAnnotationAdded?: (event: Extract<ResourceEvent, {
|
|
1261
1313
|
type: 'annotation.added';
|
|
@@ -1340,7 +1392,7 @@ interface UseRovingTabIndexOptions {
|
|
|
1340
1392
|
cols?: number;
|
|
1341
1393
|
}
|
|
1342
1394
|
declare function useRovingTabIndex<T extends HTMLElement>(itemCount: number, options?: UseRovingTabIndexOptions): {
|
|
1343
|
-
containerRef: React$1.RefObject<T>;
|
|
1395
|
+
containerRef: React$1.RefObject<T | null>;
|
|
1344
1396
|
handleKeyDown: (event: KeyboardEvent$1) => void;
|
|
1345
1397
|
focusItem: (index: number) => void;
|
|
1346
1398
|
};
|
|
@@ -1371,7 +1423,7 @@ declare function useDropdown(): {
|
|
|
1371
1423
|
toggle: () => void;
|
|
1372
1424
|
open: () => void;
|
|
1373
1425
|
close: () => void;
|
|
1374
|
-
dropdownRef: React$1.RefObject<HTMLDivElement>;
|
|
1426
|
+
dropdownRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1375
1427
|
};
|
|
1376
1428
|
/**
|
|
1377
1429
|
* Hook for managing loading states with minimum display time
|
|
@@ -1398,7 +1450,7 @@ interface UseResourceContentResult {
|
|
|
1398
1450
|
* Fetches the primary representation of a resource based on its media type.
|
|
1399
1451
|
* Uses React Query for caching, deduplication, and consistent loading state.
|
|
1400
1452
|
*/
|
|
1401
|
-
declare function useResourceContent(rUri:
|
|
1453
|
+
declare function useResourceContent(rUri: ResourceId, resource: SemiontResource$3): UseResourceContentResult;
|
|
1402
1454
|
|
|
1403
1455
|
interface AnnotationProviderProps {
|
|
1404
1456
|
annotationManager: AnnotationManager;
|
|
@@ -1413,7 +1465,6 @@ interface AnnotationProviderProps {
|
|
|
1413
1465
|
* Example usage:
|
|
1414
1466
|
* ```typescript
|
|
1415
1467
|
* // In app (apps/frontend/src/hooks/useAnnotationManager.ts)
|
|
1416
|
-
* import { uriToAnnotationIdOrPassthrough } from '@semiont/core';
|
|
1417
1468
|
*
|
|
1418
1469
|
* function useAnnotationManager(): AnnotationManager {
|
|
1419
1470
|
* const annotations = useAnnotations();
|
|
@@ -1429,8 +1480,7 @@ interface AnnotationProviderProps {
|
|
|
1429
1480
|
* return result.annotation;
|
|
1430
1481
|
* },
|
|
1431
1482
|
* deleteAnnotation: async (params) => {
|
|
1432
|
-
*
|
|
1433
|
-
* await deleteMutation.mutateAsync(resourceAnnotationUri(`${params.rUri}/annotations/${annotationIdSegment}`));
|
|
1483
|
+
* await deleteMutation.mutateAsync({ resourceId: params.rUri, annotationId: params.annotationId });
|
|
1434
1484
|
* }
|
|
1435
1485
|
* };
|
|
1436
1486
|
* }
|
|
@@ -1589,8 +1639,8 @@ declare function useOpenResources(): OpenResourcesManager;
|
|
|
1589
1639
|
|
|
1590
1640
|
interface ResourceAnnotationsContextType {
|
|
1591
1641
|
newAnnotationIds: Set<string>;
|
|
1592
|
-
createAnnotation: (rUri:
|
|
1593
|
-
clearNewAnnotationId: (id:
|
|
1642
|
+
createAnnotation: (rUri: ResourceId, motivation: 'highlighting' | 'linking' | 'assessing' | 'commenting' | 'tagging', selector: Selector | Selector[], body?: any[]) => Promise<string | undefined>;
|
|
1643
|
+
clearNewAnnotationId: (id: AnnotationId) => void;
|
|
1594
1644
|
triggerSparkleAnimation: (annotationId: string) => void;
|
|
1595
1645
|
}
|
|
1596
1646
|
declare function ResourceAnnotationsProvider({ children }: {
|
|
@@ -1800,7 +1850,7 @@ declare class ErrorBoundary extends Component<Props$a, State> {
|
|
|
1800
1850
|
static getDerivedStateFromError(error: Error): State;
|
|
1801
1851
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
1802
1852
|
handleReset: () => void;
|
|
1803
|
-
render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1853
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1804
1854
|
}
|
|
1805
1855
|
/**
|
|
1806
1856
|
* Specialized error boundary for async components
|
|
@@ -2003,7 +2053,7 @@ declare function AnnotationOverlay({ annotations, imageWidth, imageHeight, displ
|
|
|
2003
2053
|
type Annotation$c = components['schemas']['Annotation'];
|
|
2004
2054
|
type DrawingMode = 'rectangle' | 'polygon' | 'circle' | 'freeform' | null;
|
|
2005
2055
|
interface SvgDrawingCanvasProps {
|
|
2006
|
-
resourceUri:
|
|
2056
|
+
resourceUri: ResourceId;
|
|
2007
2057
|
existingAnnotations?: Annotation$c[];
|
|
2008
2058
|
drawingMode: DrawingMode;
|
|
2009
2059
|
selectedMotivation?: SelectionMotivation | null;
|
|
@@ -2060,7 +2110,7 @@ interface Props$8 {
|
|
|
2060
2110
|
declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetDocumentName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8): react_jsx_runtime.JSX.Element;
|
|
2061
2111
|
|
|
2062
2112
|
interface Props$7 {
|
|
2063
|
-
rUri:
|
|
2113
|
+
rUri: ResourceId;
|
|
2064
2114
|
hoveredAnnotationId?: string | null;
|
|
2065
2115
|
onEventHover?: (annotationId: string | null) => void;
|
|
2066
2116
|
onEventClick?: (annotationId: string | null) => void;
|
|
@@ -2158,8 +2208,9 @@ interface AssessmentEntryProps {
|
|
|
2158
2208
|
assessment: Annotation$b;
|
|
2159
2209
|
isFocused: boolean;
|
|
2160
2210
|
isHovered?: boolean;
|
|
2211
|
+
ref?: Ref<HTMLDivElement>;
|
|
2161
2212
|
}
|
|
2162
|
-
declare
|
|
2213
|
+
declare function AssessmentEntry({ assessment, isFocused, isHovered, ref, }: AssessmentEntryProps): react_jsx_runtime.JSX.Element;
|
|
2163
2214
|
|
|
2164
2215
|
type Annotation$a = components['schemas']['Annotation'];
|
|
2165
2216
|
type Motivation$5 = components['schemas']['Motivation'];
|
|
@@ -2203,8 +2254,9 @@ interface CommentEntryProps {
|
|
|
2203
2254
|
isFocused: boolean;
|
|
2204
2255
|
isHovered?: boolean;
|
|
2205
2256
|
annotateMode?: boolean;
|
|
2257
|
+
ref?: Ref<HTMLDivElement>;
|
|
2206
2258
|
}
|
|
2207
|
-
declare
|
|
2259
|
+
declare function CommentEntry({ comment, isFocused, isHovered, annotateMode, ref, }: CommentEntryProps): react_jsx_runtime.JSX.Element;
|
|
2208
2260
|
|
|
2209
2261
|
type Annotation$8 = components['schemas']['Annotation'];
|
|
2210
2262
|
type Motivation$4 = components['schemas']['Motivation'];
|
|
@@ -2267,8 +2319,9 @@ interface HighlightEntryProps {
|
|
|
2267
2319
|
highlight: Annotation$7;
|
|
2268
2320
|
isFocused: boolean;
|
|
2269
2321
|
isHovered?: boolean;
|
|
2322
|
+
ref?: Ref<HTMLDivElement>;
|
|
2270
2323
|
}
|
|
2271
|
-
declare
|
|
2324
|
+
declare function HighlightEntry({ highlight, isFocused, isHovered, ref, }: HighlightEntryProps): react_jsx_runtime.JSX.Element;
|
|
2272
2325
|
|
|
2273
2326
|
type Annotation$6 = components['schemas']['Annotation'];
|
|
2274
2327
|
type Motivation$3 = components['schemas']['Motivation'];
|
|
@@ -2324,8 +2377,9 @@ interface ReferenceEntryProps {
|
|
|
2324
2377
|
routes: RouteBuilder;
|
|
2325
2378
|
annotateMode?: boolean;
|
|
2326
2379
|
isGenerating?: boolean;
|
|
2380
|
+
ref?: Ref<HTMLDivElement>;
|
|
2327
2381
|
}
|
|
2328
|
-
declare
|
|
2382
|
+
declare function ReferenceEntry({ reference, isFocused, isHovered, routes, annotateMode, isGenerating, ref, }: ReferenceEntryProps): react_jsx_runtime.JSX.Element;
|
|
2329
2383
|
|
|
2330
2384
|
type Annotation$4 = components['schemas']['Annotation'];
|
|
2331
2385
|
type Motivation$2 = components['schemas']['Motivation'];
|
|
@@ -2400,8 +2454,9 @@ interface TagEntryProps {
|
|
|
2400
2454
|
tag: Annotation$2;
|
|
2401
2455
|
isFocused: boolean;
|
|
2402
2456
|
isHovered?: boolean;
|
|
2457
|
+
ref?: Ref<HTMLDivElement>;
|
|
2403
2458
|
}
|
|
2404
|
-
declare
|
|
2459
|
+
declare function TagEntry({ tag, isFocused, isHovered, ref, }: TagEntryProps): react_jsx_runtime.JSX.Element;
|
|
2405
2460
|
|
|
2406
2461
|
type Annotation$1 = components['schemas']['Annotation'];
|
|
2407
2462
|
type Motivation$1 = components['schemas']['Motivation'];
|
|
@@ -2479,7 +2534,7 @@ interface UnifiedAnnotationsPanelProps {
|
|
|
2479
2534
|
declare function UnifiedAnnotationsPanel(props: UnifiedAnnotationsPanelProps): react_jsx_runtime.JSX.Element;
|
|
2480
2535
|
|
|
2481
2536
|
interface ImageViewerProps {
|
|
2482
|
-
resourceUri:
|
|
2537
|
+
resourceUri: ResourceId;
|
|
2483
2538
|
mimeType: string;
|
|
2484
2539
|
alt?: string;
|
|
2485
2540
|
}
|
|
@@ -2697,6 +2752,82 @@ interface SimpleNavigationProps {
|
|
|
2697
2752
|
dropdownContent?: ((onClose: () => void) => ReactNode) | undefined;
|
|
2698
2753
|
}
|
|
2699
2754
|
|
|
2755
|
+
interface GenerationConfig {
|
|
2756
|
+
title: string;
|
|
2757
|
+
prompt?: string;
|
|
2758
|
+
language: string;
|
|
2759
|
+
temperature: number;
|
|
2760
|
+
maxTokens: number;
|
|
2761
|
+
context: GatheredContext;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
interface ReferenceWizardModalProps {
|
|
2765
|
+
isOpen: boolean;
|
|
2766
|
+
onClose: () => void;
|
|
2767
|
+
/** The annotation being resolved */
|
|
2768
|
+
annotationId: string | null;
|
|
2769
|
+
/** The resource containing the annotation */
|
|
2770
|
+
resourceId: string | null;
|
|
2771
|
+
/** Default title (selected text) */
|
|
2772
|
+
defaultTitle: string;
|
|
2773
|
+
/** Entity types from the annotation */
|
|
2774
|
+
entityTypes: string[];
|
|
2775
|
+
/** Current locale for generation defaults */
|
|
2776
|
+
locale: string;
|
|
2777
|
+
/** Gathered context state */
|
|
2778
|
+
context: GatheredContext | null;
|
|
2779
|
+
contextLoading: boolean;
|
|
2780
|
+
contextError: Error | null;
|
|
2781
|
+
/** Event bus for emitting downstream events */
|
|
2782
|
+
eventBus: EventBus;
|
|
2783
|
+
/** Callbacks */
|
|
2784
|
+
onGenerateSubmit: (referenceId: string, config: GenerationConfig) => void;
|
|
2785
|
+
onLinkResource: (referenceId: string, targetResourceId: string) => void;
|
|
2786
|
+
onComposeNavigate: (context: GatheredContext, annotationId: string, resourceId: string, title: string, entityTypes: string[]) => void;
|
|
2787
|
+
/** Translation strings */
|
|
2788
|
+
translations: {
|
|
2789
|
+
gatherTitle: string;
|
|
2790
|
+
configureGenerationTitle: string;
|
|
2791
|
+
configureSearchTitle: string;
|
|
2792
|
+
searchResultsTitle: string;
|
|
2793
|
+
annotationLabel: string;
|
|
2794
|
+
sourceResourceLabel: string;
|
|
2795
|
+
motivationLabel: string;
|
|
2796
|
+
sourceContextLabel: string;
|
|
2797
|
+
entityTypesLabel: string;
|
|
2798
|
+
graphContextLabel: string;
|
|
2799
|
+
connectionsLabel: string;
|
|
2800
|
+
citedByLabel: string;
|
|
2801
|
+
siblingTypesLabel: string;
|
|
2802
|
+
loadingContext: string;
|
|
2803
|
+
failedContext: string;
|
|
2804
|
+
cancel: string;
|
|
2805
|
+
search: string;
|
|
2806
|
+
searching: string;
|
|
2807
|
+
generate: string;
|
|
2808
|
+
compose: string;
|
|
2809
|
+
back: string;
|
|
2810
|
+
link: string;
|
|
2811
|
+
score: string;
|
|
2812
|
+
noResults: string;
|
|
2813
|
+
resourceTitle: string;
|
|
2814
|
+
resourceTitlePlaceholder: string;
|
|
2815
|
+
additionalInstructions: string;
|
|
2816
|
+
additionalInstructionsPlaceholder: string;
|
|
2817
|
+
language: string;
|
|
2818
|
+
languageHelp: string;
|
|
2819
|
+
creativity: string;
|
|
2820
|
+
creativityFocused: string;
|
|
2821
|
+
creativityCreative: string;
|
|
2822
|
+
maxLength: string;
|
|
2823
|
+
maxLengthHelp: string;
|
|
2824
|
+
maxResults: string;
|
|
2825
|
+
semanticScoring: string;
|
|
2826
|
+
semanticScoringHelp: string;
|
|
2827
|
+
};
|
|
2828
|
+
}
|
|
2829
|
+
declare function ReferenceWizardModal({ isOpen, onClose, annotationId, resourceId, defaultTitle, entityTypes, locale, context, contextLoading, contextError, eventBus, onGenerateSubmit, onLinkResource, onComposeNavigate, translations: t, }: ReferenceWizardModalProps): react_jsx_runtime.JSX.Element;
|
|
2830
|
+
|
|
2700
2831
|
interface SearchModalProps$1 {
|
|
2701
2832
|
isOpen: boolean;
|
|
2702
2833
|
onClose: () => void;
|
|
@@ -2763,17 +2894,6 @@ interface SearchModalProps extends BaseModalProps, NavigableModalProps {
|
|
|
2763
2894
|
close?: string;
|
|
2764
2895
|
};
|
|
2765
2896
|
}
|
|
2766
|
-
/**
|
|
2767
|
-
* Generation options
|
|
2768
|
-
*/
|
|
2769
|
-
interface GenerationOptions {
|
|
2770
|
-
title: string;
|
|
2771
|
-
prompt?: string;
|
|
2772
|
-
language?: string;
|
|
2773
|
-
temperature?: number;
|
|
2774
|
-
maxTokens?: number;
|
|
2775
|
-
context: any;
|
|
2776
|
-
}
|
|
2777
2897
|
/**
|
|
2778
2898
|
* Resource search modal props
|
|
2779
2899
|
*/
|
|
@@ -2898,14 +3018,11 @@ declare const faviconPaths: {
|
|
|
2898
3018
|
readonly manifest: "/favicons/site.webmanifest";
|
|
2899
3019
|
};
|
|
2900
3020
|
|
|
2901
|
-
/**
|
|
2902
|
-
* CSS-Agnostic Button Component
|
|
2903
|
-
*
|
|
2904
|
-
* This button uses data attributes instead of hardcoded Tailwind classes,
|
|
2905
|
-
* allowing users to style it with any CSS solution.
|
|
2906
|
-
*/
|
|
2907
|
-
|
|
2908
3021
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3022
|
+
/**
|
|
3023
|
+
* Ref forwarded to the underlying button element
|
|
3024
|
+
*/
|
|
3025
|
+
ref?: React__default.Ref<HTMLButtonElement>;
|
|
2909
3026
|
/**
|
|
2910
3027
|
* The visual variant of the button
|
|
2911
3028
|
*/
|
|
@@ -2939,7 +3056,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
2939
3056
|
*/
|
|
2940
3057
|
active?: boolean;
|
|
2941
3058
|
}
|
|
2942
|
-
declare
|
|
3059
|
+
declare function Button({ variant, size, fullWidth, loading, leftIcon, rightIcon, iconOnly, active, className, disabled, children, type, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
2943
3060
|
/**
|
|
2944
3061
|
* Button Group Component
|
|
2945
3062
|
*
|
|
@@ -3195,6 +3312,114 @@ interface AdminDevOpsPageProps {
|
|
|
3195
3312
|
}
|
|
3196
3313
|
declare function AdminDevOpsPage({ suggestedFeatures, theme, showLineNumbers, activePanel, translations: t, StatusDisplay, ToolbarPanels, Toolbar, }: AdminDevOpsPageProps): react_jsx_runtime.JSX.Element;
|
|
3197
3314
|
|
|
3315
|
+
/**
|
|
3316
|
+
* ExportCard — Backup trigger
|
|
3317
|
+
*
|
|
3318
|
+
* Pure React component. All state and handlers passed as props.
|
|
3319
|
+
*/
|
|
3320
|
+
interface ExportCardTranslations {
|
|
3321
|
+
title: string;
|
|
3322
|
+
description: string;
|
|
3323
|
+
exportButton: string;
|
|
3324
|
+
exporting: string;
|
|
3325
|
+
}
|
|
3326
|
+
interface ExportCardProps {
|
|
3327
|
+
onExport: () => void;
|
|
3328
|
+
isExporting: boolean;
|
|
3329
|
+
translations: ExportCardTranslations;
|
|
3330
|
+
}
|
|
3331
|
+
declare function ExportCard({ onExport, isExporting, translations: t }: ExportCardProps): react_jsx_runtime.JSX.Element;
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* ImportCard — File drop zone, preview, and import trigger
|
|
3335
|
+
*
|
|
3336
|
+
* Pure React component. All state and handlers passed as props.
|
|
3337
|
+
*/
|
|
3338
|
+
interface ImportPreview {
|
|
3339
|
+
format: string;
|
|
3340
|
+
version: number;
|
|
3341
|
+
sourceUrl: string;
|
|
3342
|
+
stats: Record<string, number>;
|
|
3343
|
+
}
|
|
3344
|
+
interface ImportCardTranslations {
|
|
3345
|
+
title: string;
|
|
3346
|
+
description: string;
|
|
3347
|
+
dropzoneLabel: string;
|
|
3348
|
+
dropzoneActive: string;
|
|
3349
|
+
detectedFormat: string;
|
|
3350
|
+
statsPreview: string;
|
|
3351
|
+
importButton: string;
|
|
3352
|
+
importing: string;
|
|
3353
|
+
importConfirmTitle: string;
|
|
3354
|
+
importConfirmMessage: string;
|
|
3355
|
+
confirmImport: string;
|
|
3356
|
+
cancelImport: string;
|
|
3357
|
+
}
|
|
3358
|
+
interface ImportCardProps {
|
|
3359
|
+
onFileSelected: (file: File) => void;
|
|
3360
|
+
onImport: () => void;
|
|
3361
|
+
onCancel: () => void;
|
|
3362
|
+
selectedFile: File | null;
|
|
3363
|
+
preview: ImportPreview | null;
|
|
3364
|
+
isImporting: boolean;
|
|
3365
|
+
translations: ImportCardTranslations;
|
|
3366
|
+
}
|
|
3367
|
+
declare function ImportCard({ onFileSelected, onImport, onCancel, selectedFile, preview, isImporting, translations: t, }: ImportCardProps): react_jsx_runtime.JSX.Element;
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* ImportProgress — Shows SSE-driven progress during restore
|
|
3371
|
+
*
|
|
3372
|
+
* Pure React component. All state passed as props.
|
|
3373
|
+
*/
|
|
3374
|
+
interface ImportProgressTranslations {
|
|
3375
|
+
phaseStarted: string;
|
|
3376
|
+
phaseEntityTypes: string;
|
|
3377
|
+
phaseResources: string;
|
|
3378
|
+
phaseAnnotations: string;
|
|
3379
|
+
phaseComplete: string;
|
|
3380
|
+
phaseError: string;
|
|
3381
|
+
hashChainValid: string;
|
|
3382
|
+
hashChainInvalid: string;
|
|
3383
|
+
streams: string;
|
|
3384
|
+
events: string;
|
|
3385
|
+
blobs: string;
|
|
3386
|
+
}
|
|
3387
|
+
interface ImportProgressProps {
|
|
3388
|
+
phase: string;
|
|
3389
|
+
message?: string;
|
|
3390
|
+
result?: Record<string, unknown>;
|
|
3391
|
+
translations: ImportProgressTranslations;
|
|
3392
|
+
}
|
|
3393
|
+
declare function ImportProgress({ phase, message, result, translations: t }: ImportProgressProps): react_jsx_runtime.JSX.Element;
|
|
3394
|
+
|
|
3395
|
+
interface AdminExchangePageTranslations {
|
|
3396
|
+
title: string;
|
|
3397
|
+
subtitle: string;
|
|
3398
|
+
export: ExportCardTranslations;
|
|
3399
|
+
import: ImportCardTranslations;
|
|
3400
|
+
progress: ImportProgressTranslations;
|
|
3401
|
+
}
|
|
3402
|
+
interface AdminExchangePageProps {
|
|
3403
|
+
onExport: () => void;
|
|
3404
|
+
isExporting: boolean;
|
|
3405
|
+
onFileSelected: (file: File) => void;
|
|
3406
|
+
onImport: () => void;
|
|
3407
|
+
onCancelImport: () => void;
|
|
3408
|
+
selectedFile: File | null;
|
|
3409
|
+
preview: ImportCardProps['preview'];
|
|
3410
|
+
isImporting: boolean;
|
|
3411
|
+
importPhase: string | null;
|
|
3412
|
+
importMessage?: string | undefined;
|
|
3413
|
+
importResult?: Record<string, unknown> | undefined;
|
|
3414
|
+
theme: 'light' | 'dark' | 'system';
|
|
3415
|
+
showLineNumbers: boolean;
|
|
3416
|
+
activePanel: string | null;
|
|
3417
|
+
translations: AdminExchangePageTranslations;
|
|
3418
|
+
ToolbarPanels: React__default.ComponentType<any>;
|
|
3419
|
+
Toolbar: React__default.ComponentType<any>;
|
|
3420
|
+
}
|
|
3421
|
+
declare function AdminExchangePage({ onExport, isExporting, onFileSelected, onImport, onCancelImport, selectedFile, preview, isImporting, importPhase, importMessage, importResult, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminExchangePageProps): react_jsx_runtime.JSX.Element;
|
|
3422
|
+
|
|
3198
3423
|
interface OAuthProvider {
|
|
3199
3424
|
name: string;
|
|
3200
3425
|
clientId?: string;
|
|
@@ -3230,6 +3455,34 @@ interface AdminSecurityPageProps {
|
|
|
3230
3455
|
}
|
|
3231
3456
|
declare function AdminSecurityPage({ providers, allowedDomains, isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminSecurityPageProps): react_jsx_runtime.JSX.Element;
|
|
3232
3457
|
|
|
3458
|
+
interface LinkedDataPageTranslations {
|
|
3459
|
+
title: string;
|
|
3460
|
+
subtitle: string;
|
|
3461
|
+
export: ExportCardTranslations;
|
|
3462
|
+
import: ImportCardTranslations;
|
|
3463
|
+
progress: ImportProgressTranslations;
|
|
3464
|
+
}
|
|
3465
|
+
interface LinkedDataPageProps {
|
|
3466
|
+
onExport: () => void;
|
|
3467
|
+
isExporting: boolean;
|
|
3468
|
+
onFileSelected: (file: File) => void;
|
|
3469
|
+
onImport: () => void;
|
|
3470
|
+
onCancelImport: () => void;
|
|
3471
|
+
selectedFile: File | null;
|
|
3472
|
+
preview: ImportCardProps['preview'];
|
|
3473
|
+
isImporting: boolean;
|
|
3474
|
+
importPhase: string | null;
|
|
3475
|
+
importMessage?: string | undefined;
|
|
3476
|
+
importResult?: Record<string, unknown> | undefined;
|
|
3477
|
+
theme: 'light' | 'dark' | 'system';
|
|
3478
|
+
showLineNumbers: boolean;
|
|
3479
|
+
activePanel: string | null;
|
|
3480
|
+
translations: LinkedDataPageTranslations;
|
|
3481
|
+
ToolbarPanels: React__default.ComponentType<any>;
|
|
3482
|
+
Toolbar: React__default.ComponentType<any>;
|
|
3483
|
+
}
|
|
3484
|
+
declare function LinkedDataPage({ onExport, isExporting, onFileSelected, onImport, onCancelImport, selectedFile, preview, isImporting, importPhase, importMessage, importResult, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: LinkedDataPageProps): react_jsx_runtime.JSX.Element;
|
|
3485
|
+
|
|
3233
3486
|
interface AdminUser {
|
|
3234
3487
|
id: string;
|
|
3235
3488
|
email: string;
|
|
@@ -3555,6 +3808,7 @@ interface ResourceComposePageProps {
|
|
|
3555
3808
|
name: string;
|
|
3556
3809
|
entityTypes: string[];
|
|
3557
3810
|
};
|
|
3811
|
+
gatheredContext?: GatheredContext | null;
|
|
3558
3812
|
availableEntityTypes: string[];
|
|
3559
3813
|
initialLocale: string;
|
|
3560
3814
|
theme: 'light' | 'dark';
|
|
@@ -3612,7 +3866,7 @@ interface SaveResourceParams {
|
|
|
3612
3866
|
annotationUri?: string;
|
|
3613
3867
|
sourceDocumentId?: string;
|
|
3614
3868
|
}
|
|
3615
|
-
declare function ResourceComposePage({ mode, cloneData, referenceData, availableEntityTypes, initialLocale, theme, showLineNumbers, hoverDelayMs, activePanel, onSaveResource, onCancel, translations: t, ToolbarPanels, Toolbar, }: ResourceComposePageProps): react_jsx_runtime.JSX.Element;
|
|
3869
|
+
declare function ResourceComposePage({ mode, cloneData, referenceData, gatheredContext, availableEntityTypes, initialLocale, theme, showLineNumbers, hoverDelayMs, activePanel, onSaveResource, onCancel, translations: t, ToolbarPanels, Toolbar, }: ResourceComposePageProps): react_jsx_runtime.JSX.Element;
|
|
3616
3870
|
|
|
3617
3871
|
type ResourceDescriptor$1 = components['schemas']['ResourceDescriptor'];
|
|
3618
3872
|
interface ResourceDiscoveryPageProps {
|
|
@@ -3667,7 +3921,7 @@ interface ResourceViewerPageProps {
|
|
|
3667
3921
|
/**
|
|
3668
3922
|
* Resource URI
|
|
3669
3923
|
*/
|
|
3670
|
-
rUri:
|
|
3924
|
+
rUri: ResourceId;
|
|
3671
3925
|
/**
|
|
3672
3926
|
* Current locale
|
|
3673
3927
|
*/
|
|
@@ -3684,8 +3938,6 @@ interface ResourceViewerPageProps {
|
|
|
3684
3938
|
* Component dependencies - passed from framework layer
|
|
3685
3939
|
*/
|
|
3686
3940
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
3687
|
-
SearchResourcesModal: React__default.ComponentType<any>;
|
|
3688
|
-
GenerationConfigModal: React__default.ComponentType<any>;
|
|
3689
3941
|
/**
|
|
3690
3942
|
* Callback to refetch document from parent
|
|
3691
3943
|
*/
|
|
@@ -3718,7 +3970,7 @@ interface ResourceViewerPageProps {
|
|
|
3718
3970
|
* @subscribes browse:reference-navigate - Navigate to a referenced document
|
|
3719
3971
|
* @subscribes browse:entity-type-clicked - Navigate filtered by entity type
|
|
3720
3972
|
*/
|
|
3721
|
-
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels,
|
|
3973
|
+
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels, refetchDocument, }: ResourceViewerPageProps): react_jsx_runtime.JSX.Element;
|
|
3722
3974
|
|
|
3723
3975
|
/**
|
|
3724
3976
|
* useBeckonFlow — Annotation attention / pointer coordination hook
|
|
@@ -3835,7 +4087,7 @@ interface MarkFlowState {
|
|
|
3835
4087
|
* @subscribes mark:progress-dismiss - Manually dismiss progress display
|
|
3836
4088
|
* @returns Annotation flow state
|
|
3837
4089
|
*/
|
|
3838
|
-
declare function useMarkFlow(rUri:
|
|
4090
|
+
declare function useMarkFlow(rUri: ResourceId): MarkFlowState;
|
|
3839
4091
|
|
|
3840
4092
|
/**
|
|
3841
4093
|
* usePanelBrowse - Panel navigation and scroll coordination hook
|
|
@@ -3878,10 +4130,13 @@ declare function usePanelBrowse(): PanelBrowseState;
|
|
|
3878
4130
|
*
|
|
3879
4131
|
* Manages document generation state:
|
|
3880
4132
|
* - Generation progress tracking
|
|
3881
|
-
* -
|
|
3882
|
-
* - Reference search modal state
|
|
4133
|
+
* - SSE stream management
|
|
3883
4134
|
* - Generation completion/error handling
|
|
3884
4135
|
*
|
|
4136
|
+
* The wizard modal (ReferenceWizardModal) handles modal state and user
|
|
4137
|
+
* interaction. This hook handles the downstream SSE generation after
|
|
4138
|
+
* the wizard emits yield:request.
|
|
4139
|
+
*
|
|
3885
4140
|
* Follows react-rxjs-guide.md Layer 2 pattern: Hook bridge that
|
|
3886
4141
|
* subscribes to events and pushes values into React state.
|
|
3887
4142
|
*/
|
|
@@ -3889,18 +4144,14 @@ declare function usePanelBrowse(): PanelBrowseState;
|
|
|
3889
4144
|
interface YieldFlowState {
|
|
3890
4145
|
isGenerating: boolean;
|
|
3891
4146
|
generationProgress: YieldProgress | null;
|
|
3892
|
-
generationModalOpen: boolean;
|
|
3893
|
-
generationReferenceId: string | null;
|
|
3894
|
-
generationDefaultTitle: string;
|
|
3895
4147
|
onGenerateDocument: (referenceId: string, options: {
|
|
3896
4148
|
title: string;
|
|
3897
4149
|
prompt?: string;
|
|
3898
4150
|
language?: string;
|
|
3899
4151
|
temperature?: number;
|
|
3900
4152
|
maxTokens?: number;
|
|
3901
|
-
context
|
|
4153
|
+
context: GatheredContext;
|
|
3902
4154
|
}) => void;
|
|
3903
|
-
onCloseGenerationModal: () => void;
|
|
3904
4155
|
}
|
|
3905
4156
|
/**
|
|
3906
4157
|
* Hook for document generation flow
|
|
@@ -3908,19 +4159,15 @@ interface YieldFlowState {
|
|
|
3908
4159
|
* @param locale - Current locale for language defaults
|
|
3909
4160
|
* @param resourceId - Resource ID for generation
|
|
3910
4161
|
* @param clearNewAnnotationId - Clear animation callback
|
|
3911
|
-
* @emits yield:request - Start document generation
|
|
3912
|
-
* @emits yield:progress - SSE progress chunk from generation stream
|
|
3913
|
-
* @emits yield:finished - Generation completed successfully
|
|
3914
|
-
* @emits yield:failed - Error during generation
|
|
4162
|
+
* @emits yield:request - Start document generation
|
|
3915
4163
|
* @subscribes yield:request - Triggers SSE call to yieldResourceFromAnnotation
|
|
3916
4164
|
* @subscribes job:cancel-requested - Cancels in-flight generation stream
|
|
3917
|
-
* @subscribes
|
|
3918
|
-
* @subscribes yield:modal-open - Open the generation config modal; triggers gather:requested
|
|
4165
|
+
* @subscribes yield:progress - SSE progress chunks
|
|
3919
4166
|
* @subscribes yield:finished - Generation completed successfully
|
|
3920
4167
|
* @subscribes yield:failed - Error during generation
|
|
3921
4168
|
* @returns Generation flow state
|
|
3922
4169
|
*/
|
|
3923
|
-
declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnotationId: (annotationId:
|
|
4170
|
+
declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnotationId: (annotationId: AnnotationId) => void): YieldFlowState;
|
|
3924
4171
|
|
|
3925
4172
|
/**
|
|
3926
4173
|
* useContextGatherFlow - Context gather capability hook
|
|
@@ -3941,36 +4188,33 @@ declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnota
|
|
|
3941
4188
|
|
|
3942
4189
|
interface ContextGatherFlowConfig {
|
|
3943
4190
|
client: SemiontApiClient;
|
|
3944
|
-
|
|
4191
|
+
resourceId: ResourceId;
|
|
3945
4192
|
}
|
|
3946
4193
|
interface ContextGatherFlowState {
|
|
3947
|
-
gatherContext:
|
|
4194
|
+
gatherContext: GatheredContext | null;
|
|
3948
4195
|
gatherLoading: boolean;
|
|
3949
4196
|
gatherError: Error | null;
|
|
3950
|
-
/** The
|
|
3951
|
-
|
|
4197
|
+
/** The annotationId for which context was most recently gathered */
|
|
4198
|
+
gatherAnnotationId: AnnotationId | null;
|
|
3952
4199
|
}
|
|
3953
4200
|
declare function useContextGatherFlow(eventBus: EventBus, config: ContextGatherFlowConfig): ContextGatherFlowState;
|
|
3954
4201
|
|
|
3955
|
-
interface BindFlowState {
|
|
3956
|
-
searchModalOpen: boolean;
|
|
3957
|
-
pendingReferenceId: string | null;
|
|
3958
|
-
onCloseSearchModal: () => void;
|
|
3959
|
-
}
|
|
3960
4202
|
/**
|
|
3961
|
-
*
|
|
3962
|
-
*
|
|
4203
|
+
* useBindFlow - Reference resolution flow hook
|
|
4204
|
+
*
|
|
4205
|
+
* Handles the write side of reference resolution:
|
|
4206
|
+
* - Annotation body updates (linking/unlinking)
|
|
4207
|
+
* - Error notifications
|
|
3963
4208
|
*
|
|
3964
|
-
*
|
|
3965
|
-
*
|
|
4209
|
+
* The wizard modal (ReferenceWizardModal) handles modal state, context
|
|
4210
|
+
* gathering, search configuration, and result display. This hook handles
|
|
4211
|
+
* the downstream API calls after the wizard emits bind:update-body.
|
|
3966
4212
|
*
|
|
4213
|
+
* @subscribes bind:update-body - Update annotation body via API
|
|
3967
4214
|
* @emits bind:body-updated - Annotation body successfully updated
|
|
3968
4215
|
* @emits bind:body-update-failed - Annotation body update failed
|
|
3969
|
-
* @emits bind:search-requested - Search modal requested
|
|
3970
|
-
* @subscribes bind:update-body - Update annotation body via API
|
|
3971
|
-
* @subscribes bind:link - User clicked "Link Document"; opens search modal
|
|
3972
|
-
* @subscribes bind:search-requested - Opens search modal with pending reference
|
|
3973
4216
|
*/
|
|
3974
|
-
declare function useBindFlow(rUri: ResourceUri): BindFlowState;
|
|
3975
4217
|
|
|
3976
|
-
|
|
4218
|
+
declare function useBindFlow(rUri: ResourceId): void;
|
|
4219
|
+
|
|
4220
|
+
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, type 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 };
|