@semiont/react-ui 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/{ar-5REA6P4J.mjs → ar-RJLR7NDD.mjs} +13 -11
  2. package/dist/ar-RJLR7NDD.mjs.map +1 -0
  3. package/dist/{bn-YHRYHHPD.mjs → bn-4NU2UAZ7.mjs} +13 -11
  4. package/dist/bn-4NU2UAZ7.mjs.map +1 -0
  5. package/dist/{chunk-VVCCMJS7.mjs → chunk-2VWLGQIO.mjs} +13 -11
  6. package/dist/chunk-2VWLGQIO.mjs.map +1 -0
  7. package/dist/{chunk-F74ZQJMA.mjs → chunk-EKQMINCV.mjs} +31 -31
  8. package/dist/{cs-JTJXTX2T.mjs → cs-6UJZFF55.mjs} +13 -11
  9. package/dist/cs-6UJZFF55.mjs.map +1 -0
  10. package/dist/{da-MK37SJB6.mjs → da-CFFBBOH3.mjs} +13 -11
  11. package/dist/da-CFFBBOH3.mjs.map +1 -0
  12. package/dist/{de-LGBCWERA.mjs → de-2KAG6KMX.mjs} +13 -11
  13. package/dist/de-2KAG6KMX.mjs.map +1 -0
  14. package/dist/{el-FKJMFCWY.mjs → el-KVPQ7VNF.mjs} +13 -11
  15. package/dist/el-KVPQ7VNF.mjs.map +1 -0
  16. package/dist/{en-AOSMPC2M.mjs → en-ZW4UKTVX.mjs} +2 -2
  17. package/dist/{es-LVDPIXWU.mjs → es-ZU2ECPVG.mjs} +13 -11
  18. package/dist/es-ZU2ECPVG.mjs.map +1 -0
  19. package/dist/{fa-3VA2PIUD.mjs → fa-CBIVKDIQ.mjs} +13 -11
  20. package/dist/fa-CBIVKDIQ.mjs.map +1 -0
  21. package/dist/{fi-3WM75ZLR.mjs → fi-5HUVT7IK.mjs} +13 -11
  22. package/dist/fi-5HUVT7IK.mjs.map +1 -0
  23. package/dist/{fr-NK4A72WA.mjs → fr-O5WU2US2.mjs} +13 -11
  24. package/dist/fr-O5WU2US2.mjs.map +1 -0
  25. package/dist/{he-IACZDZMB.mjs → he-WP4C2SNJ.mjs} +13 -11
  26. package/dist/he-WP4C2SNJ.mjs.map +1 -0
  27. package/dist/{hi-JZ7MGMMS.mjs → hi-HLQXNRWI.mjs} +13 -11
  28. package/dist/hi-HLQXNRWI.mjs.map +1 -0
  29. package/dist/{id-P3KDQGNK.mjs → id-DTJT2ZA6.mjs} +13 -11
  30. package/dist/id-DTJT2ZA6.mjs.map +1 -0
  31. package/dist/index.css +213 -0
  32. package/dist/index.css.map +1 -1
  33. package/dist/index.d.mts +22 -41
  34. package/dist/index.mjs +377 -350
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{it-LQS33SUY.mjs → it-2DK57IMT.mjs} +13 -11
  37. package/dist/it-2DK57IMT.mjs.map +1 -0
  38. package/dist/{ja-G4FKZPWD.mjs → ja-52ZNY72Y.mjs} +13 -11
  39. package/dist/ja-52ZNY72Y.mjs.map +1 -0
  40. package/dist/{ko-2XWKQ7BA.mjs → ko-4Z2IMYZO.mjs} +13 -11
  41. package/dist/ko-4Z2IMYZO.mjs.map +1 -0
  42. package/dist/{ms-2SNONIUD.mjs → ms-HKU73KEX.mjs} +13 -11
  43. package/dist/ms-HKU73KEX.mjs.map +1 -0
  44. package/dist/{nl-BMZUAJ7J.mjs → nl-HPHQMXPT.mjs} +13 -11
  45. package/dist/nl-HPHQMXPT.mjs.map +1 -0
  46. package/dist/{no-6J3WIZ6L.mjs → no-Q7G4PVFT.mjs} +13 -11
  47. package/dist/no-Q7G4PVFT.mjs.map +1 -0
  48. package/dist/{pl-QQ7DAUVK.mjs → pl-D43C2CE3.mjs} +13 -11
  49. package/dist/pl-D43C2CE3.mjs.map +1 -0
  50. package/dist/{pt-MU3GN7MW.mjs → pt-V3GFSY7B.mjs} +13 -11
  51. package/dist/pt-V3GFSY7B.mjs.map +1 -0
  52. package/dist/{ro-6GBE72QK.mjs → ro-3UIRV3OA.mjs} +13 -11
  53. package/dist/ro-3UIRV3OA.mjs.map +1 -0
  54. package/dist/{sv-NQIL7PEM.mjs → sv-BMW26A7M.mjs} +13 -11
  55. package/dist/sv-BMW26A7M.mjs.map +1 -0
  56. package/dist/test-utils.mjs +2 -2
  57. package/dist/{th-6OCNZQBE.mjs → th-CMND2QET.mjs} +13 -11
  58. package/dist/th-CMND2QET.mjs.map +1 -0
  59. package/dist/{tr-XWJ5P3SC.mjs → tr-P3AD7MYA.mjs} +13 -11
  60. package/dist/tr-P3AD7MYA.mjs.map +1 -0
  61. package/dist/{uk-AKSN6DGW.mjs → uk-QPONRQ5O.mjs} +13 -11
  62. package/dist/uk-QPONRQ5O.mjs.map +1 -0
  63. package/dist/{vi-23GHQ45M.mjs → vi-G2OMVMCI.mjs} +13 -11
  64. package/dist/vi-G2OMVMCI.mjs.map +1 -0
  65. package/dist/{zh-ITT4QBSN.mjs → zh-HTDN4LKE.mjs} +13 -11
  66. package/dist/zh-HTDN4LKE.mjs.map +1 -0
  67. package/package.json +1 -1
  68. package/src/components/CodeMirrorRenderer.tsx +9 -9
  69. package/src/components/ResourceTagsInline.tsx +1 -1
  70. package/src/components/__tests__/ResourceTagsInline.test.tsx +3 -3
  71. package/src/components/modals/ContextSummary.tsx +56 -165
  72. package/src/components/modals/GatherContextStep.tsx +124 -42
  73. package/src/components/modals/ReferenceWizardModal.tsx +8 -25
  74. package/src/components/modals/SearchModal.css +241 -0
  75. package/src/components/resource/AnnotateView.tsx +3 -3
  76. package/src/components/resource/ResourceViewer.tsx +4 -4
  77. package/src/components/resource/__tests__/annotation-interactions.test.tsx +1 -1
  78. package/src/components/resource/panels/AssessmentPanel.tsx +3 -0
  79. package/src/components/resource/panels/AssistSection.tsx +4 -1
  80. package/src/components/resource/panels/CommentsPanel.tsx +3 -0
  81. package/src/components/resource/panels/ResourceInfoPanel.tsx +82 -0
  82. package/src/components/resource/panels/UnifiedAnnotationsPanel.tsx +4 -0
  83. package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +94 -0
  84. package/src/features/resource-viewer/components/ResourceViewerPage.tsx +12 -10
  85. package/translations/ar.json +12 -10
  86. package/translations/bn.json +12 -10
  87. package/translations/cs.json +12 -10
  88. package/translations/da.json +12 -10
  89. package/translations/de.json +12 -10
  90. package/translations/el.json +12 -10
  91. package/translations/en.json +13 -11
  92. package/translations/es.json +12 -10
  93. package/translations/fa.json +12 -10
  94. package/translations/fi.json +12 -10
  95. package/translations/fr.json +12 -10
  96. package/translations/he.json +12 -10
  97. package/translations/hi.json +12 -10
  98. package/translations/id.json +12 -10
  99. package/translations/it.json +12 -10
  100. package/translations/ja.json +12 -10
  101. package/translations/ko.json +12 -10
  102. package/translations/ms.json +12 -10
  103. package/translations/nl.json +12 -10
  104. package/translations/no.json +12 -10
  105. package/translations/pl.json +12 -10
  106. package/translations/pt.json +12 -10
  107. package/translations/ro.json +12 -10
  108. package/translations/sv.json +12 -10
  109. package/translations/th.json +12 -10
  110. package/translations/tr.json +12 -10
  111. package/translations/uk.json +12 -10
  112. package/translations/vi.json +12 -10
  113. package/translations/zh.json +12 -10
  114. package/dist/ar-5REA6P4J.mjs.map +0 -1
  115. package/dist/bn-YHRYHHPD.mjs.map +0 -1
  116. package/dist/chunk-VVCCMJS7.mjs.map +0 -1
  117. package/dist/cs-JTJXTX2T.mjs.map +0 -1
  118. package/dist/da-MK37SJB6.mjs.map +0 -1
  119. package/dist/de-LGBCWERA.mjs.map +0 -1
  120. package/dist/el-FKJMFCWY.mjs.map +0 -1
  121. package/dist/es-LVDPIXWU.mjs.map +0 -1
  122. package/dist/fa-3VA2PIUD.mjs.map +0 -1
  123. package/dist/fi-3WM75ZLR.mjs.map +0 -1
  124. package/dist/fr-NK4A72WA.mjs.map +0 -1
  125. package/dist/he-IACZDZMB.mjs.map +0 -1
  126. package/dist/hi-JZ7MGMMS.mjs.map +0 -1
  127. package/dist/id-P3KDQGNK.mjs.map +0 -1
  128. package/dist/it-LQS33SUY.mjs.map +0 -1
  129. package/dist/ja-G4FKZPWD.mjs.map +0 -1
  130. package/dist/ko-2XWKQ7BA.mjs.map +0 -1
  131. package/dist/ms-2SNONIUD.mjs.map +0 -1
  132. package/dist/nl-BMZUAJ7J.mjs.map +0 -1
  133. package/dist/no-6J3WIZ6L.mjs.map +0 -1
  134. package/dist/pl-QQ7DAUVK.mjs.map +0 -1
  135. package/dist/pt-MU3GN7MW.mjs.map +0 -1
  136. package/dist/ro-6GBE72QK.mjs.map +0 -1
  137. package/dist/sv-NQIL7PEM.mjs.map +0 -1
  138. package/dist/th-6OCNZQBE.mjs.map +0 -1
  139. package/dist/tr-XWJ5P3SC.mjs.map +0 -1
  140. package/dist/uk-AKSN6DGW.mjs.map +0 -1
  141. package/dist/vi-23GHQ45M.mjs.map +0 -1
  142. package/dist/zh-ITT4QBSN.mjs.map +0 -1
  143. /package/dist/{chunk-F74ZQJMA.mjs.map → chunk-EKQMINCV.mjs.map} +0 -0
  144. /package/dist/{en-AOSMPC2M.mjs.map → en-ZW4UKTVX.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -518,31 +518,6 @@ declare function useAnnotations(): {
518
518
  data: Parameters<SemiontApiClient["bindAnnotation"]>[2];
519
519
  }, unknown>;
520
520
  };
521
- llmContext: {
522
- useQuery: (resourceId: ResourceId, annotationId: AnnotationId, options?: {
523
- contextWindow?: number;
524
- }) => _tanstack_react_query.UseQueryResult<{
525
- annotation: _semiont_core.components["schemas"]["Annotation"];
526
- sourceResource: _semiont_core.components["schemas"]["ResourceDescriptor"];
527
- targetResource?: _semiont_core.components["schemas"]["ResourceDescriptor"] | null;
528
- context?: _semiont_core.components["schemas"]["GatheredContext"];
529
- sourceContext?: {
530
- before: string;
531
- selected: string;
532
- after: string;
533
- };
534
- targetContext?: {
535
- content: string;
536
- summary?: string;
537
- };
538
- suggestedResolution?: {
539
- resourceId: string;
540
- resourceName: string;
541
- confidence: number;
542
- reasoning: string;
543
- };
544
- }, Error>;
545
- };
546
521
  };
547
522
  /**
548
523
  * Entity type operations
@@ -966,7 +941,6 @@ declare const QUERY_KEYS: {
966
941
  annotations: {
967
942
  detail: (id: AnnotationId) => readonly ["annotations", AnnotationId];
968
943
  history: (resourceId: ResourceId, annotationId: AnnotationId) => readonly ["annotations", ResourceId, AnnotationId, "history"];
969
- llmContext: (resourceId: ResourceId, annotationId: AnnotationId) => readonly ["annotations", "llm-context", ResourceId, AnnotationId];
970
944
  };
971
945
  entityTypes: {
972
946
  all: () => readonly ["entity-types"];
@@ -1814,11 +1788,11 @@ interface Props$b {
1814
1788
  showLineNumbers?: boolean;
1815
1789
  enableWidgets?: boolean;
1816
1790
  eventBus?: EventBus;
1817
- getTargetDocumentName?: (documentId: string) => string | undefined;
1791
+ getTargetResourceName?: (resourceId: string) => string | undefined;
1818
1792
  generatingReferenceId?: string | null;
1819
1793
  hoverDelayMs: number;
1820
1794
  }
1821
- declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, eventBus, getTargetDocumentName, generatingReferenceId, hoverDelayMs }: Props$b): react_jsx_runtime.JSX.Element;
1795
+ declare function CodeMirrorRenderer({ content, segments, onChange, editable, newAnnotationIds, hoveredAnnotationId, scrollToAnnotationId, sourceView, showLineNumbers, enableWidgets, eventBus, getTargetResourceName, generatingReferenceId, hoverDelayMs }: Props$b): react_jsx_runtime.JSX.Element;
1822
1796
 
1823
1797
  type Motivation$6 = components['schemas']['Motivation'];
1824
1798
  interface AnnotateReferencesProgressWidgetProps {
@@ -1936,7 +1910,7 @@ interface ResizeHandleProps {
1936
1910
  declare function ResizeHandle({ onResize, minWidth, maxWidth, position, ariaLabel }: ResizeHandleProps): react_jsx_runtime.JSX.Element;
1937
1911
 
1938
1912
  interface ResourceTagsInlineProps {
1939
- documentId: string;
1913
+ resourceId: string;
1940
1914
  tags: string[];
1941
1915
  isEditing: boolean;
1942
1916
  onUpdate: (tags: string[]) => Promise<void>;
@@ -2093,7 +2067,7 @@ interface Props$8 {
2093
2067
  onUIStateChange?: (state: Partial<AnnotationUIState>) => void;
2094
2068
  editable?: boolean;
2095
2069
  enableWidgets?: boolean;
2096
- getTargetDocumentName?: (documentId: string) => string | undefined;
2070
+ getTargetResourceName?: (resourceId: string) => string | undefined;
2097
2071
  generatingReferenceId?: string | null;
2098
2072
  showLineNumbers?: boolean;
2099
2073
  hoverDelayMs?: number;
@@ -2108,7 +2082,7 @@ interface Props$8 {
2108
2082
  * @subscribes mark:shape-changed - Toolbar shape changed. Payload: { shape: string }
2109
2083
  * @subscribes beckon:hover - Annotation hovered. Payload: { annotationId: string | null }
2110
2084
  */
2111
- declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetDocumentName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8): react_jsx_runtime.JSX.Element;
2085
+ declare function AnnotateView({ content, mimeType, resourceUri, annotations, uiState, onUIStateChange, enableWidgets, getTargetResourceName, generatingReferenceId, showLineNumbers, hoverDelayMs, annotateMode }: Props$8): react_jsx_runtime.JSX.Element;
2112
2086
 
2113
2087
  interface Props$7 {
2114
2088
  rUri: ResourceId;
@@ -2228,6 +2202,7 @@ interface AssessmentPanelProps {
2228
2202
  percentage?: number;
2229
2203
  message?: string;
2230
2204
  } | null;
2205
+ locale?: string;
2231
2206
  annotateMode?: boolean;
2232
2207
  scrollToAnnotationId?: string | null;
2233
2208
  onScrollCompleted?: () => void;
@@ -2240,7 +2215,7 @@ interface AssessmentPanelProps {
2240
2215
  * @emits mark:cancel-pending - Cancel pending assessment annotation. Payload: undefined
2241
2216
  * @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
2242
2217
  */
2243
- declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): react_jsx_runtime.JSX.Element;
2218
+ declare function AssessmentPanel({ annotations, pendingAnnotation, isAssisting, progress, locale, annotateMode, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: AssessmentPanelProps): react_jsx_runtime.JSX.Element;
2244
2219
 
2245
2220
  interface Props$3 {
2246
2221
  isConnected: boolean;
@@ -2275,6 +2250,7 @@ interface CommentsPanelProps {
2275
2250
  percentage?: number;
2276
2251
  message?: string;
2277
2252
  } | null;
2253
+ locale?: string;
2278
2254
  scrollToAnnotationId?: string | null;
2279
2255
  onScrollCompleted?: () => void;
2280
2256
  hoveredAnnotationId?: string | null;
@@ -2286,11 +2262,12 @@ interface CommentsPanelProps {
2286
2262
  * @emits mark:cancel-pending - Cancel pending comment annotation. Payload: undefined
2287
2263
  * @subscribes browse:click - Annotation clicked. Payload: { annotationId: string }
2288
2264
  */
2289
- declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): react_jsx_runtime.JSX.Element;
2265
+ declare function CommentsPanel({ annotations, pendingAnnotation, annotateMode, isAssisting, progress, locale, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: CommentsPanelProps): react_jsx_runtime.JSX.Element;
2290
2266
 
2291
2267
  interface AssistSectionProps {
2292
2268
  annotationType: 'highlight' | 'assessment' | 'comment';
2293
2269
  isAssisting: boolean;
2270
+ locale?: string;
2294
2271
  progress?: {
2295
2272
  status: string;
2296
2273
  percentage?: number;
@@ -2313,7 +2290,7 @@ interface AssistSectionProps {
2313
2290
  * @emits mark:assist-request - Start assist for annotation type. Payload: { motivation: Motivation, options: { instructions?: string, tone?: string, density?: number } }
2314
2291
  * @emits mark:progress-dismiss - Dismiss the annotation progress display
2315
2292
  */
2316
- declare function AssistSection({ annotationType, isAssisting, progress, }: AssistSectionProps): react_jsx_runtime.JSX.Element;
2293
+ declare function AssistSection({ annotationType, isAssisting, locale, progress, }: AssistSectionProps): react_jsx_runtime.JSX.Element;
2317
2294
 
2318
2295
  type Annotation$7 = components['schemas']['Annotation'];
2319
2296
  interface HighlightEntryProps {
@@ -2424,12 +2401,19 @@ interface Props$1 {
2424
2401
  */
2425
2402
  declare function ReferencesPanel({ annotations, isAssisting, progress, annotateMode, Link, routes, allEntityTypes, generatingReferenceId, referencedBy, referencedByLoading, pendingAnnotation, scrollToAnnotationId, onScrollCompleted, hoveredAnnotationId, }: Props$1): react_jsx_runtime.JSX.Element;
2426
2403
 
2404
+ type Agent = components['schemas']['Agent'];
2427
2405
  interface Props {
2428
2406
  documentEntityTypes: string[];
2429
2407
  documentLocale?: string | undefined;
2430
2408
  primaryMediaType?: string | undefined;
2431
2409
  primaryByteSize?: number | undefined;
2432
2410
  isArchived?: boolean;
2411
+ dateCreated?: string | undefined;
2412
+ dateModified?: string | undefined;
2413
+ creationMethod?: string | undefined;
2414
+ wasAttributedTo?: Agent | Agent[] | undefined;
2415
+ wasDerivedFrom?: string | string[] | undefined;
2416
+ generator?: Agent | Agent[] | undefined;
2433
2417
  }
2434
2418
  /**
2435
2419
  * Panel for displaying resource metadata and management actions
@@ -2438,7 +2422,7 @@ interface Props {
2438
2422
  * @emits mark:unarchive - Unarchive this resource. Payload: undefined
2439
2423
  * @emits mark:archive - Archive this resource. Payload: undefined
2440
2424
  */
2441
- declare function ResourceInfoPanel({ documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, isArchived, }: Props): react_jsx_runtime.JSX.Element;
2425
+ declare function ResourceInfoPanel({ documentEntityTypes, documentLocale, primaryMediaType, primaryByteSize, isArchived, dateCreated, dateModified, creationMethod, wasAttributedTo, wasDerivedFrom, generator, }: Props): react_jsx_runtime.JSX.Element;
2442
2426
 
2443
2427
  type Annotation$3 = components['schemas']['Annotation'];
2444
2428
  interface StatisticsPanelProps {
@@ -2529,6 +2513,7 @@ interface UnifiedAnnotationsPanelProps {
2529
2513
  scrollToAnnotationId?: string | null;
2530
2514
  onScrollCompleted?: () => void;
2531
2515
  hoveredAnnotationId?: string | null;
2516
+ locale?: string;
2532
2517
  Link: React__default.ComponentType<LinkComponentProps>;
2533
2518
  routes: RouteBuilder;
2534
2519
  }
@@ -2782,15 +2767,9 @@ interface ReferenceWizardModalProps {
2782
2767
  configureGenerationTitle: string;
2783
2768
  configureSearchTitle: string;
2784
2769
  searchResultsTitle: string;
2785
- annotationLabel: string;
2786
- sourceResourceLabel: string;
2787
- motivationLabel: string;
2788
2770
  sourceContextLabel: string;
2789
- entityTypesLabel: string;
2790
- graphContextLabel: string;
2791
2771
  connectionsLabel: string;
2792
2772
  citedByLabel: string;
2793
- siblingTypesLabel: string;
2794
2773
  userHintLabel: string;
2795
2774
  userHintPlaceholder: string;
2796
2775
  loadingContext: string;
@@ -2800,6 +2779,7 @@ interface ReferenceWizardModalProps {
2800
2779
  searching: string;
2801
2780
  generate: string;
2802
2781
  compose: string;
2782
+ resolutionStrategyLabel: string;
2803
2783
  back: string;
2804
2784
  link: string;
2805
2785
  score: string;
@@ -4224,6 +4204,7 @@ declare function useContextGatherFlow(eventBus: EventBus, config: ContextGatherF
4224
4204
  * the downstream API calls after the wizard emits bind:update-body.
4225
4205
  *
4226
4206
  * @subscribes bind:update-body - Update annotation body via API
4207
+ * @subscribes match:search-requested - Bridge to backend Matcher via SSE; results emit as match:search-results
4227
4208
  * @emits bind:body-updated - Annotation body successfully updated
4228
4209
  * @emits bind:body-update-failed - Annotation body update failed
4229
4210
  */