@semiont/react-ui 0.2.46 → 0.3.1
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-5REA6P4J.mjs} +48 -6
- package/dist/ar-5REA6P4J.mjs.map +1 -0
- package/dist/{bn-XOET3DOI.mjs → bn-YHRYHHPD.mjs} +48 -6
- package/dist/bn-YHRYHHPD.mjs.map +1 -0
- package/dist/{chunk-3JTO27MH.mjs → chunk-D4GAAQMM.mjs} +2 -9
- package/dist/{chunk-Q2KV6Y2J.mjs → chunk-PFQYNPQJ.mjs} +32 -32
- package/dist/{chunk-JH7BXE2P.mjs → chunk-VVCCMJS7.mjs} +47 -5
- package/dist/chunk-VVCCMJS7.mjs.map +1 -0
- package/dist/{cs-X63DXX7L.mjs → cs-JTJXTX2T.mjs} +48 -6
- package/dist/cs-JTJXTX2T.mjs.map +1 -0
- package/dist/{da-OWTCV57A.mjs → da-MK37SJB6.mjs} +48 -6
- package/dist/da-MK37SJB6.mjs.map +1 -0
- package/dist/{de-77BMFDVF.mjs → de-LGBCWERA.mjs} +48 -6
- package/dist/de-LGBCWERA.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-FKJMFCWY.mjs} +48 -6
- package/dist/el-FKJMFCWY.mjs.map +1 -0
- package/dist/{en-XWEPVTB4.mjs → en-AOSMPC2M.mjs} +5 -3
- package/dist/{es-726NTS53.mjs → es-LVDPIXWU.mjs} +48 -6
- package/dist/es-LVDPIXWU.mjs.map +1 -0
- package/dist/{fa-3N4CIWE6.mjs → fa-3VA2PIUD.mjs} +48 -6
- package/dist/fa-3VA2PIUD.mjs.map +1 -0
- package/dist/{fi-JOM3M7Z4.mjs → fi-3WM75ZLR.mjs} +48 -6
- package/dist/fi-3WM75ZLR.mjs.map +1 -0
- package/dist/{fr-56QSXS7E.mjs → fr-NK4A72WA.mjs} +48 -6
- package/dist/fr-NK4A72WA.mjs.map +1 -0
- package/dist/{he-SNAXPJEK.mjs → he-IACZDZMB.mjs} +48 -6
- package/dist/he-IACZDZMB.mjs.map +1 -0
- package/dist/{hi-CRBRD5TB.mjs → hi-JZ7MGMMS.mjs} +48 -6
- package/dist/hi-JZ7MGMMS.mjs.map +1 -0
- package/dist/{id-BRCVLICF.mjs → id-P3KDQGNK.mjs} +48 -6
- package/dist/id-P3KDQGNK.mjs.map +1 -0
- package/dist/index.css +123 -12
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +353 -107
- package/dist/index.mjs +3139 -1811
- package/dist/index.mjs.map +1 -1
- package/dist/{it-M2Z27BNB.mjs → it-LQS33SUY.mjs} +48 -6
- package/dist/it-LQS33SUY.mjs.map +1 -0
- package/dist/{ja-TZUKW7HD.mjs → ja-G4FKZPWD.mjs} +48 -6
- package/dist/ja-G4FKZPWD.mjs.map +1 -0
- package/dist/{ko-NKBGGOL6.mjs → ko-2XWKQ7BA.mjs} +48 -6
- package/dist/ko-2XWKQ7BA.mjs.map +1 -0
- package/dist/{magic-string.es-7FJ3LUGB.mjs → magic-string.es-K77I4ZQN.mjs} +2 -2
- package/dist/{ms-XFXPN6RX.mjs → ms-2SNONIUD.mjs} +48 -6
- package/dist/ms-2SNONIUD.mjs.map +1 -0
- package/dist/{nl-MVYXAS5C.mjs → nl-BMZUAJ7J.mjs} +48 -6
- package/dist/nl-BMZUAJ7J.mjs.map +1 -0
- package/dist/{no-XOLO4JPV.mjs → no-6J3WIZ6L.mjs} +48 -6
- package/dist/no-6J3WIZ6L.mjs.map +1 -0
- package/dist/{pl-TRWLMMC4.mjs → pl-QQ7DAUVK.mjs} +48 -6
- package/dist/pl-QQ7DAUVK.mjs.map +1 -0
- package/dist/{pt-M3TE24UI.mjs → pt-MU3GN7MW.mjs} +48 -6
- package/dist/pt-MU3GN7MW.mjs.map +1 -0
- package/dist/{ro-QBFG2T64.mjs → ro-6GBE72QK.mjs} +48 -6
- package/dist/ro-6GBE72QK.mjs.map +1 -0
- package/dist/{sv-IUECBXWX.mjs → sv-NQIL7PEM.mjs} +48 -6
- package/dist/sv-NQIL7PEM.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-6OCNZQBE.mjs} +48 -6
- package/dist/th-6OCNZQBE.mjs.map +1 -0
- package/dist/{tr-DWJ2FFUK.mjs → tr-XWJ5P3SC.mjs} +48 -6
- package/dist/tr-XWJ5P3SC.mjs.map +1 -0
- package/dist/{uk-M4ZE4DPZ.mjs → uk-AKSN6DGW.mjs} +48 -6
- package/dist/uk-AKSN6DGW.mjs.map +1 -0
- package/dist/{vi-FERZNPSH.mjs → vi-23GHQ45M.mjs} +48 -6
- package/dist/vi-23GHQ45M.mjs.map +1 -0
- package/dist/{zh-3J2I3WYK.mjs → zh-ITT4QBSN.mjs} +48 -6
- package/dist/zh-ITT4QBSN.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 +202 -0
- package/src/components/modals/GatherContextStep.tsx +93 -0
- package/src/components/modals/KeyboardShortcutsHelpModal.tsx +4 -6
- package/src/components/modals/ProposeEntitiesModal.tsx +4 -6
- package/src/components/modals/ReferenceWizardModal.tsx +338 -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 +94 -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 +146 -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 +44 -4
- package/translations/bn.json +44 -4
- package/translations/cs.json +44 -4
- package/translations/da.json +130 -90
- package/translations/de.json +124 -84
- package/translations/el.json +44 -4
- package/translations/en.json +44 -4
- package/translations/es.json +44 -4
- package/translations/fa.json +44 -4
- package/translations/fi.json +70 -30
- package/translations/fr.json +44 -4
- package/translations/he.json +44 -4
- package/translations/hi.json +44 -4
- package/translations/id.json +45 -5
- package/translations/it.json +64 -24
- package/translations/ja.json +45 -5
- package/translations/ko.json +44 -4
- package/translations/ms.json +45 -5
- package/translations/nl.json +43 -3
- package/translations/no.json +106 -66
- package/translations/pl.json +44 -4
- package/translations/pt.json +45 -5
- package/translations/ro.json +44 -4
- package/translations/sv.json +44 -4
- package/translations/th.json +44 -4
- package/translations/tr.json +44 -4
- package/translations/uk.json +44 -4
- package/translations/vi.json +44 -4
- package/translations/zh.json +44 -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/vi-FERZNPSH.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-3JTO27MH.mjs.map → chunk-D4GAAQMM.mjs.map} +0 -0
- /package/dist/{chunk-Q2KV6Y2J.mjs.map → chunk-PFQYNPQJ.mjs.map} +0 -0
- /package/dist/{en-XWEPVTB4.mjs.map → en-AOSMPC2M.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,84 @@ 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
|
+
userHintLabel: string;
|
|
2803
|
+
userHintPlaceholder: string;
|
|
2804
|
+
loadingContext: string;
|
|
2805
|
+
failedContext: string;
|
|
2806
|
+
cancel: string;
|
|
2807
|
+
search: string;
|
|
2808
|
+
searching: string;
|
|
2809
|
+
generate: string;
|
|
2810
|
+
compose: string;
|
|
2811
|
+
back: string;
|
|
2812
|
+
link: string;
|
|
2813
|
+
score: string;
|
|
2814
|
+
noResults: string;
|
|
2815
|
+
resourceTitle: string;
|
|
2816
|
+
resourceTitlePlaceholder: string;
|
|
2817
|
+
additionalInstructions: string;
|
|
2818
|
+
additionalInstructionsPlaceholder: string;
|
|
2819
|
+
language: string;
|
|
2820
|
+
languageHelp: string;
|
|
2821
|
+
creativity: string;
|
|
2822
|
+
creativityFocused: string;
|
|
2823
|
+
creativityCreative: string;
|
|
2824
|
+
maxLength: string;
|
|
2825
|
+
maxLengthHelp: string;
|
|
2826
|
+
maxResults: string;
|
|
2827
|
+
semanticScoring: string;
|
|
2828
|
+
semanticScoringHelp: string;
|
|
2829
|
+
};
|
|
2830
|
+
}
|
|
2831
|
+
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;
|
|
2832
|
+
|
|
2700
2833
|
interface SearchModalProps$1 {
|
|
2701
2834
|
isOpen: boolean;
|
|
2702
2835
|
onClose: () => void;
|
|
@@ -2763,17 +2896,6 @@ interface SearchModalProps extends BaseModalProps, NavigableModalProps {
|
|
|
2763
2896
|
close?: string;
|
|
2764
2897
|
};
|
|
2765
2898
|
}
|
|
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
2899
|
/**
|
|
2778
2900
|
* Resource search modal props
|
|
2779
2901
|
*/
|
|
@@ -2898,14 +3020,11 @@ declare const faviconPaths: {
|
|
|
2898
3020
|
readonly manifest: "/favicons/site.webmanifest";
|
|
2899
3021
|
};
|
|
2900
3022
|
|
|
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
3023
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3024
|
+
/**
|
|
3025
|
+
* Ref forwarded to the underlying button element
|
|
3026
|
+
*/
|
|
3027
|
+
ref?: React__default.Ref<HTMLButtonElement>;
|
|
2909
3028
|
/**
|
|
2910
3029
|
* The visual variant of the button
|
|
2911
3030
|
*/
|
|
@@ -2939,7 +3058,7 @@ interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
2939
3058
|
*/
|
|
2940
3059
|
active?: boolean;
|
|
2941
3060
|
}
|
|
2942
|
-
declare
|
|
3061
|
+
declare function Button({ variant, size, fullWidth, loading, leftIcon, rightIcon, iconOnly, active, className, disabled, children, type, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
2943
3062
|
/**
|
|
2944
3063
|
* Button Group Component
|
|
2945
3064
|
*
|
|
@@ -3195,6 +3314,114 @@ interface AdminDevOpsPageProps {
|
|
|
3195
3314
|
}
|
|
3196
3315
|
declare function AdminDevOpsPage({ suggestedFeatures, theme, showLineNumbers, activePanel, translations: t, StatusDisplay, ToolbarPanels, Toolbar, }: AdminDevOpsPageProps): react_jsx_runtime.JSX.Element;
|
|
3197
3316
|
|
|
3317
|
+
/**
|
|
3318
|
+
* ExportCard — Backup trigger
|
|
3319
|
+
*
|
|
3320
|
+
* Pure React component. All state and handlers passed as props.
|
|
3321
|
+
*/
|
|
3322
|
+
interface ExportCardTranslations {
|
|
3323
|
+
title: string;
|
|
3324
|
+
description: string;
|
|
3325
|
+
exportButton: string;
|
|
3326
|
+
exporting: string;
|
|
3327
|
+
}
|
|
3328
|
+
interface ExportCardProps {
|
|
3329
|
+
onExport: () => void;
|
|
3330
|
+
isExporting: boolean;
|
|
3331
|
+
translations: ExportCardTranslations;
|
|
3332
|
+
}
|
|
3333
|
+
declare function ExportCard({ onExport, isExporting, translations: t }: ExportCardProps): react_jsx_runtime.JSX.Element;
|
|
3334
|
+
|
|
3335
|
+
/**
|
|
3336
|
+
* ImportCard — File drop zone, preview, and import trigger
|
|
3337
|
+
*
|
|
3338
|
+
* Pure React component. All state and handlers passed as props.
|
|
3339
|
+
*/
|
|
3340
|
+
interface ImportPreview {
|
|
3341
|
+
format: string;
|
|
3342
|
+
version: number;
|
|
3343
|
+
sourceUrl: string;
|
|
3344
|
+
stats: Record<string, number>;
|
|
3345
|
+
}
|
|
3346
|
+
interface ImportCardTranslations {
|
|
3347
|
+
title: string;
|
|
3348
|
+
description: string;
|
|
3349
|
+
dropzoneLabel: string;
|
|
3350
|
+
dropzoneActive: string;
|
|
3351
|
+
detectedFormat: string;
|
|
3352
|
+
statsPreview: string;
|
|
3353
|
+
importButton: string;
|
|
3354
|
+
importing: string;
|
|
3355
|
+
importConfirmTitle: string;
|
|
3356
|
+
importConfirmMessage: string;
|
|
3357
|
+
confirmImport: string;
|
|
3358
|
+
cancelImport: string;
|
|
3359
|
+
}
|
|
3360
|
+
interface ImportCardProps {
|
|
3361
|
+
onFileSelected: (file: File) => void;
|
|
3362
|
+
onImport: () => void;
|
|
3363
|
+
onCancel: () => void;
|
|
3364
|
+
selectedFile: File | null;
|
|
3365
|
+
preview: ImportPreview | null;
|
|
3366
|
+
isImporting: boolean;
|
|
3367
|
+
translations: ImportCardTranslations;
|
|
3368
|
+
}
|
|
3369
|
+
declare function ImportCard({ onFileSelected, onImport, onCancel, selectedFile, preview, isImporting, translations: t, }: ImportCardProps): react_jsx_runtime.JSX.Element;
|
|
3370
|
+
|
|
3371
|
+
/**
|
|
3372
|
+
* ImportProgress — Shows SSE-driven progress during restore
|
|
3373
|
+
*
|
|
3374
|
+
* Pure React component. All state passed as props.
|
|
3375
|
+
*/
|
|
3376
|
+
interface ImportProgressTranslations {
|
|
3377
|
+
phaseStarted: string;
|
|
3378
|
+
phaseEntityTypes: string;
|
|
3379
|
+
phaseResources: string;
|
|
3380
|
+
phaseAnnotations: string;
|
|
3381
|
+
phaseComplete: string;
|
|
3382
|
+
phaseError: string;
|
|
3383
|
+
hashChainValid: string;
|
|
3384
|
+
hashChainInvalid: string;
|
|
3385
|
+
streams: string;
|
|
3386
|
+
events: string;
|
|
3387
|
+
blobs: string;
|
|
3388
|
+
}
|
|
3389
|
+
interface ImportProgressProps {
|
|
3390
|
+
phase: string;
|
|
3391
|
+
message?: string;
|
|
3392
|
+
result?: Record<string, unknown>;
|
|
3393
|
+
translations: ImportProgressTranslations;
|
|
3394
|
+
}
|
|
3395
|
+
declare function ImportProgress({ phase, message, result, translations: t }: ImportProgressProps): react_jsx_runtime.JSX.Element;
|
|
3396
|
+
|
|
3397
|
+
interface AdminExchangePageTranslations {
|
|
3398
|
+
title: string;
|
|
3399
|
+
subtitle: string;
|
|
3400
|
+
export: ExportCardTranslations;
|
|
3401
|
+
import: ImportCardTranslations;
|
|
3402
|
+
progress: ImportProgressTranslations;
|
|
3403
|
+
}
|
|
3404
|
+
interface AdminExchangePageProps {
|
|
3405
|
+
onExport: () => void;
|
|
3406
|
+
isExporting: boolean;
|
|
3407
|
+
onFileSelected: (file: File) => void;
|
|
3408
|
+
onImport: () => void;
|
|
3409
|
+
onCancelImport: () => void;
|
|
3410
|
+
selectedFile: File | null;
|
|
3411
|
+
preview: ImportCardProps['preview'];
|
|
3412
|
+
isImporting: boolean;
|
|
3413
|
+
importPhase: string | null;
|
|
3414
|
+
importMessage?: string | undefined;
|
|
3415
|
+
importResult?: Record<string, unknown> | undefined;
|
|
3416
|
+
theme: 'light' | 'dark' | 'system';
|
|
3417
|
+
showLineNumbers: boolean;
|
|
3418
|
+
activePanel: string | null;
|
|
3419
|
+
translations: AdminExchangePageTranslations;
|
|
3420
|
+
ToolbarPanels: React__default.ComponentType<any>;
|
|
3421
|
+
Toolbar: React__default.ComponentType<any>;
|
|
3422
|
+
}
|
|
3423
|
+
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;
|
|
3424
|
+
|
|
3198
3425
|
interface OAuthProvider {
|
|
3199
3426
|
name: string;
|
|
3200
3427
|
clientId?: string;
|
|
@@ -3230,6 +3457,34 @@ interface AdminSecurityPageProps {
|
|
|
3230
3457
|
}
|
|
3231
3458
|
declare function AdminSecurityPage({ providers, allowedDomains, isLoading, theme, showLineNumbers, activePanel, translations: t, ToolbarPanels, Toolbar, }: AdminSecurityPageProps): react_jsx_runtime.JSX.Element;
|
|
3232
3459
|
|
|
3460
|
+
interface LinkedDataPageTranslations {
|
|
3461
|
+
title: string;
|
|
3462
|
+
subtitle: string;
|
|
3463
|
+
export: ExportCardTranslations;
|
|
3464
|
+
import: ImportCardTranslations;
|
|
3465
|
+
progress: ImportProgressTranslations;
|
|
3466
|
+
}
|
|
3467
|
+
interface LinkedDataPageProps {
|
|
3468
|
+
onExport: () => void;
|
|
3469
|
+
isExporting: boolean;
|
|
3470
|
+
onFileSelected: (file: File) => void;
|
|
3471
|
+
onImport: () => void;
|
|
3472
|
+
onCancelImport: () => void;
|
|
3473
|
+
selectedFile: File | null;
|
|
3474
|
+
preview: ImportCardProps['preview'];
|
|
3475
|
+
isImporting: boolean;
|
|
3476
|
+
importPhase: string | null;
|
|
3477
|
+
importMessage?: string | undefined;
|
|
3478
|
+
importResult?: Record<string, unknown> | undefined;
|
|
3479
|
+
theme: 'light' | 'dark' | 'system';
|
|
3480
|
+
showLineNumbers: boolean;
|
|
3481
|
+
activePanel: string | null;
|
|
3482
|
+
translations: LinkedDataPageTranslations;
|
|
3483
|
+
ToolbarPanels: React__default.ComponentType<any>;
|
|
3484
|
+
Toolbar: React__default.ComponentType<any>;
|
|
3485
|
+
}
|
|
3486
|
+
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;
|
|
3487
|
+
|
|
3233
3488
|
interface AdminUser {
|
|
3234
3489
|
id: string;
|
|
3235
3490
|
email: string;
|
|
@@ -3555,6 +3810,7 @@ interface ResourceComposePageProps {
|
|
|
3555
3810
|
name: string;
|
|
3556
3811
|
entityTypes: string[];
|
|
3557
3812
|
};
|
|
3813
|
+
gatheredContext?: GatheredContext | null;
|
|
3558
3814
|
availableEntityTypes: string[];
|
|
3559
3815
|
initialLocale: string;
|
|
3560
3816
|
theme: 'light' | 'dark';
|
|
@@ -3612,7 +3868,7 @@ interface SaveResourceParams {
|
|
|
3612
3868
|
annotationUri?: string;
|
|
3613
3869
|
sourceDocumentId?: string;
|
|
3614
3870
|
}
|
|
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;
|
|
3871
|
+
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
3872
|
|
|
3617
3873
|
type ResourceDescriptor$1 = components['schemas']['ResourceDescriptor'];
|
|
3618
3874
|
interface ResourceDiscoveryPageProps {
|
|
@@ -3667,7 +3923,7 @@ interface ResourceViewerPageProps {
|
|
|
3667
3923
|
/**
|
|
3668
3924
|
* Resource URI
|
|
3669
3925
|
*/
|
|
3670
|
-
rUri:
|
|
3926
|
+
rUri: ResourceId;
|
|
3671
3927
|
/**
|
|
3672
3928
|
* Current locale
|
|
3673
3929
|
*/
|
|
@@ -3684,8 +3940,6 @@ interface ResourceViewerPageProps {
|
|
|
3684
3940
|
* Component dependencies - passed from framework layer
|
|
3685
3941
|
*/
|
|
3686
3942
|
ToolbarPanels: React__default.ComponentType<any>;
|
|
3687
|
-
SearchResourcesModal: React__default.ComponentType<any>;
|
|
3688
|
-
GenerationConfigModal: React__default.ComponentType<any>;
|
|
3689
3943
|
/**
|
|
3690
3944
|
* Callback to refetch document from parent
|
|
3691
3945
|
*/
|
|
@@ -3718,7 +3972,7 @@ interface ResourceViewerPageProps {
|
|
|
3718
3972
|
* @subscribes browse:reference-navigate - Navigate to a referenced document
|
|
3719
3973
|
* @subscribes browse:entity-type-clicked - Navigate filtered by entity type
|
|
3720
3974
|
*/
|
|
3721
|
-
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels,
|
|
3975
|
+
declare function ResourceViewerPage({ resource, rUri, locale, Link, routes, ToolbarPanels, refetchDocument, }: ResourceViewerPageProps): react_jsx_runtime.JSX.Element;
|
|
3722
3976
|
|
|
3723
3977
|
/**
|
|
3724
3978
|
* useBeckonFlow — Annotation attention / pointer coordination hook
|
|
@@ -3835,7 +4089,7 @@ interface MarkFlowState {
|
|
|
3835
4089
|
* @subscribes mark:progress-dismiss - Manually dismiss progress display
|
|
3836
4090
|
* @returns Annotation flow state
|
|
3837
4091
|
*/
|
|
3838
|
-
declare function useMarkFlow(rUri:
|
|
4092
|
+
declare function useMarkFlow(rUri: ResourceId): MarkFlowState;
|
|
3839
4093
|
|
|
3840
4094
|
/**
|
|
3841
4095
|
* usePanelBrowse - Panel navigation and scroll coordination hook
|
|
@@ -3878,10 +4132,13 @@ declare function usePanelBrowse(): PanelBrowseState;
|
|
|
3878
4132
|
*
|
|
3879
4133
|
* Manages document generation state:
|
|
3880
4134
|
* - Generation progress tracking
|
|
3881
|
-
* -
|
|
3882
|
-
* - Reference search modal state
|
|
4135
|
+
* - SSE stream management
|
|
3883
4136
|
* - Generation completion/error handling
|
|
3884
4137
|
*
|
|
4138
|
+
* The wizard modal (ReferenceWizardModal) handles modal state and user
|
|
4139
|
+
* interaction. This hook handles the downstream SSE generation after
|
|
4140
|
+
* the wizard emits yield:request.
|
|
4141
|
+
*
|
|
3885
4142
|
* Follows react-rxjs-guide.md Layer 2 pattern: Hook bridge that
|
|
3886
4143
|
* subscribes to events and pushes values into React state.
|
|
3887
4144
|
*/
|
|
@@ -3889,18 +4146,14 @@ declare function usePanelBrowse(): PanelBrowseState;
|
|
|
3889
4146
|
interface YieldFlowState {
|
|
3890
4147
|
isGenerating: boolean;
|
|
3891
4148
|
generationProgress: YieldProgress | null;
|
|
3892
|
-
generationModalOpen: boolean;
|
|
3893
|
-
generationReferenceId: string | null;
|
|
3894
|
-
generationDefaultTitle: string;
|
|
3895
4149
|
onGenerateDocument: (referenceId: string, options: {
|
|
3896
4150
|
title: string;
|
|
3897
4151
|
prompt?: string;
|
|
3898
4152
|
language?: string;
|
|
3899
4153
|
temperature?: number;
|
|
3900
4154
|
maxTokens?: number;
|
|
3901
|
-
context
|
|
4155
|
+
context: GatheredContext;
|
|
3902
4156
|
}) => void;
|
|
3903
|
-
onCloseGenerationModal: () => void;
|
|
3904
4157
|
}
|
|
3905
4158
|
/**
|
|
3906
4159
|
* Hook for document generation flow
|
|
@@ -3908,19 +4161,15 @@ interface YieldFlowState {
|
|
|
3908
4161
|
* @param locale - Current locale for language defaults
|
|
3909
4162
|
* @param resourceId - Resource ID for generation
|
|
3910
4163
|
* @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
|
|
4164
|
+
* @emits yield:request - Start document generation
|
|
3915
4165
|
* @subscribes yield:request - Triggers SSE call to yieldResourceFromAnnotation
|
|
3916
4166
|
* @subscribes job:cancel-requested - Cancels in-flight generation stream
|
|
3917
|
-
* @subscribes
|
|
3918
|
-
* @subscribes yield:modal-open - Open the generation config modal; triggers gather:requested
|
|
4167
|
+
* @subscribes yield:progress - SSE progress chunks
|
|
3919
4168
|
* @subscribes yield:finished - Generation completed successfully
|
|
3920
4169
|
* @subscribes yield:failed - Error during generation
|
|
3921
4170
|
* @returns Generation flow state
|
|
3922
4171
|
*/
|
|
3923
|
-
declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnotationId: (annotationId:
|
|
4172
|
+
declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnotationId: (annotationId: AnnotationId) => void): YieldFlowState;
|
|
3924
4173
|
|
|
3925
4174
|
/**
|
|
3926
4175
|
* useContextGatherFlow - Context gather capability hook
|
|
@@ -3941,36 +4190,33 @@ declare function useYieldFlow(locale: string, resourceId: string, clearNewAnnota
|
|
|
3941
4190
|
|
|
3942
4191
|
interface ContextGatherFlowConfig {
|
|
3943
4192
|
client: SemiontApiClient;
|
|
3944
|
-
|
|
4193
|
+
resourceId: ResourceId;
|
|
3945
4194
|
}
|
|
3946
4195
|
interface ContextGatherFlowState {
|
|
3947
|
-
gatherContext:
|
|
4196
|
+
gatherContext: GatheredContext | null;
|
|
3948
4197
|
gatherLoading: boolean;
|
|
3949
4198
|
gatherError: Error | null;
|
|
3950
|
-
/** The
|
|
3951
|
-
|
|
4199
|
+
/** The annotationId for which context was most recently gathered */
|
|
4200
|
+
gatherAnnotationId: AnnotationId | null;
|
|
3952
4201
|
}
|
|
3953
4202
|
declare function useContextGatherFlow(eventBus: EventBus, config: ContextGatherFlowConfig): ContextGatherFlowState;
|
|
3954
4203
|
|
|
3955
|
-
interface BindFlowState {
|
|
3956
|
-
searchModalOpen: boolean;
|
|
3957
|
-
pendingReferenceId: string | null;
|
|
3958
|
-
onCloseSearchModal: () => void;
|
|
3959
|
-
}
|
|
3960
4204
|
/**
|
|
3961
|
-
*
|
|
3962
|
-
*
|
|
4205
|
+
* useBindFlow - Reference resolution flow hook
|
|
4206
|
+
*
|
|
4207
|
+
* Handles the write side of reference resolution:
|
|
4208
|
+
* - Annotation body updates (linking/unlinking)
|
|
4209
|
+
* - Error notifications
|
|
3963
4210
|
*
|
|
3964
|
-
*
|
|
3965
|
-
*
|
|
4211
|
+
* The wizard modal (ReferenceWizardModal) handles modal state, context
|
|
4212
|
+
* gathering, search configuration, and result display. This hook handles
|
|
4213
|
+
* the downstream API calls after the wizard emits bind:update-body.
|
|
3966
4214
|
*
|
|
4215
|
+
* @subscribes bind:update-body - Update annotation body via API
|
|
3967
4216
|
* @emits bind:body-updated - Annotation body successfully updated
|
|
3968
4217
|
* @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
4218
|
*/
|
|
3974
|
-
declare function useBindFlow(rUri: ResourceUri): BindFlowState;
|
|
3975
4219
|
|
|
3976
|
-
|
|
4220
|
+
declare function useBindFlow(rUri: ResourceId): void;
|
|
4221
|
+
|
|
4222
|
+
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 };
|