@semiont/react-ui 0.5.4 → 0.5.5

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 (325) hide show
  1. package/dist/index.d.ts +3560 -149
  2. package/dist/test-utils.d.ts +34 -16
  3. package/package.json +5 -3
  4. package/dist/assets/favicons/SemiontFavicon.d.ts +0 -9
  5. package/dist/assets/favicons/SemiontFavicon.d.ts.map +0 -1
  6. package/dist/assets/favicons/index.d.ts +0 -12
  7. package/dist/assets/favicons/index.d.ts.map +0 -1
  8. package/dist/components/AnnotateReferencesProgressWidget.d.ts +0 -15
  9. package/dist/components/AnnotateReferencesProgressWidget.d.ts.map +0 -1
  10. package/dist/components/Button/Button.d.ts +0 -69
  11. package/dist/components/Button/Button.d.ts.map +0 -1
  12. package/dist/components/CodeMirrorRenderer.d.ts +0 -25
  13. package/dist/components/CodeMirrorRenderer.d.ts.map +0 -1
  14. package/dist/components/ErrorBoundary.d.ts +0 -30
  15. package/dist/components/ErrorBoundary.d.ts.map +0 -1
  16. package/dist/components/LiveRegion.d.ts +0 -41
  17. package/dist/components/LiveRegion.d.ts.map +0 -1
  18. package/dist/components/ProtectedErrorBoundary.d.ts +0 -27
  19. package/dist/components/ProtectedErrorBoundary.d.ts.map +0 -1
  20. package/dist/components/ResizeHandle.d.ts +0 -39
  21. package/dist/components/ResizeHandle.d.ts.map +0 -1
  22. package/dist/components/ResourceTagsInline.d.ts +0 -10
  23. package/dist/components/ResourceTagsInline.d.ts.map +0 -1
  24. package/dist/components/SessionExpiryBanner.d.ts +0 -2
  25. package/dist/components/SessionExpiryBanner.d.ts.map +0 -1
  26. package/dist/components/SessionTimer.d.ts +0 -2
  27. package/dist/components/SessionTimer.d.ts.map +0 -1
  28. package/dist/components/StatusDisplay.d.ts +0 -9
  29. package/dist/components/StatusDisplay.d.ts.map +0 -1
  30. package/dist/components/Toast.d.ts +0 -27
  31. package/dist/components/Toast.d.ts.map +0 -1
  32. package/dist/components/Toolbar.d.ts +0 -15
  33. package/dist/components/Toolbar.d.ts.map +0 -1
  34. package/dist/components/UserMenuSkeleton.d.ts +0 -2
  35. package/dist/components/UserMenuSkeleton.d.ts.map +0 -1
  36. package/dist/components/annotation/AnnotateToolbar.d.ts +0 -29
  37. package/dist/components/annotation/AnnotateToolbar.d.ts.map +0 -1
  38. package/dist/components/annotation-popups/JsonLdView.d.ts +0 -8
  39. package/dist/components/annotation-popups/JsonLdView.d.ts.map +0 -1
  40. package/dist/components/annotation-popups/SharedPopupElements.d.ts +0 -28
  41. package/dist/components/annotation-popups/SharedPopupElements.d.ts.map +0 -1
  42. package/dist/components/branding/SemiontBranding.d.ts +0 -13
  43. package/dist/components/branding/SemiontBranding.d.ts.map +0 -1
  44. package/dist/components/error-states/ResourceErrorState.d.ts +0 -11
  45. package/dist/components/error-states/ResourceErrorState.d.ts.map +0 -1
  46. package/dist/components/image-annotation/AnnotationOverlay.d.ts +0 -22
  47. package/dist/components/image-annotation/AnnotationOverlay.d.ts.map +0 -1
  48. package/dist/components/image-annotation/SvgDrawingCanvas.d.ts +0 -23
  49. package/dist/components/image-annotation/SvgDrawingCanvas.d.ts.map +0 -1
  50. package/dist/components/layout/LeftSidebar.d.ts +0 -24
  51. package/dist/components/layout/LeftSidebar.d.ts.map +0 -1
  52. package/dist/components/layout/PageLayout.d.ts +0 -21
  53. package/dist/components/layout/PageLayout.d.ts.map +0 -1
  54. package/dist/components/layout/SkipLinks.d.ts +0 -8
  55. package/dist/components/layout/SkipLinks.d.ts.map +0 -1
  56. package/dist/components/layout/UnifiedHeader.d.ts +0 -21
  57. package/dist/components/layout/UnifiedHeader.d.ts.map +0 -1
  58. package/dist/components/loading-states/ComposeLoadingState.d.ts +0 -10
  59. package/dist/components/loading-states/ComposeLoadingState.d.ts.map +0 -1
  60. package/dist/components/loading-states/ResourceLoadingState.d.ts +0 -7
  61. package/dist/components/loading-states/ResourceLoadingState.d.ts.map +0 -1
  62. package/dist/components/modals/ConfigureGenerationStep.d.ts +0 -36
  63. package/dist/components/modals/ConfigureGenerationStep.d.ts.map +0 -1
  64. package/dist/components/modals/ConfigureSearchStep.d.ts +0 -21
  65. package/dist/components/modals/ConfigureSearchStep.d.ts.map +0 -1
  66. package/dist/components/modals/ContextSummary.d.ts +0 -14
  67. package/dist/components/modals/ContextSummary.d.ts.map +0 -1
  68. package/dist/components/modals/GatherContextStep.d.ts +0 -23
  69. package/dist/components/modals/GatherContextStep.d.ts.map +0 -1
  70. package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts +0 -8
  71. package/dist/components/modals/KeyboardShortcutsHelpModal.d.ts.map +0 -1
  72. package/dist/components/modals/PermissionDeniedModal.d.ts +0 -12
  73. package/dist/components/modals/PermissionDeniedModal.d.ts.map +0 -1
  74. package/dist/components/modals/ReferenceWizardModal.d.ts +0 -64
  75. package/dist/components/modals/ReferenceWizardModal.d.ts.map +0 -1
  76. package/dist/components/modals/ResourceSearchModal.d.ts +0 -16
  77. package/dist/components/modals/ResourceSearchModal.d.ts.map +0 -1
  78. package/dist/components/modals/SearchModal.d.ts +0 -20
  79. package/dist/components/modals/SearchModal.d.ts.map +0 -1
  80. package/dist/components/modals/SearchResultsStep.d.ts +0 -22
  81. package/dist/components/modals/SearchResultsStep.d.ts.map +0 -1
  82. package/dist/components/modals/SessionExpiredModal.d.ts +0 -12
  83. package/dist/components/modals/SessionExpiredModal.d.ts.map +0 -1
  84. package/dist/components/navigation/CollapsibleResourceNavigation.d.ts +0 -13
  85. package/dist/components/navigation/CollapsibleResourceNavigation.d.ts.map +0 -1
  86. package/dist/components/navigation/Footer.d.ts +0 -20
  87. package/dist/components/navigation/Footer.d.ts.map +0 -1
  88. package/dist/components/navigation/NavigationMenu.d.ts +0 -18
  89. package/dist/components/navigation/NavigationMenu.d.ts.map +0 -1
  90. package/dist/components/navigation/ObservableLink.d.ts +0 -52
  91. package/dist/components/navigation/ObservableLink.d.ts.map +0 -1
  92. package/dist/components/navigation/SimpleNavigation.d.ts +0 -35
  93. package/dist/components/navigation/SimpleNavigation.d.ts.map +0 -1
  94. package/dist/components/navigation/SortableResourceTab.d.ts +0 -7
  95. package/dist/components/navigation/SortableResourceTab.d.ts.map +0 -1
  96. package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts +0 -8
  97. package/dist/components/pdf-annotation/PdfAnnotationCanvas.client.d.ts.map +0 -1
  98. package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts +0 -25
  99. package/dist/components/pdf-annotation/PdfAnnotationCanvas.d.ts.map +0 -1
  100. package/dist/components/resource/AnnotateView.d.ts +0 -29
  101. package/dist/components/resource/AnnotateView.d.ts.map +0 -1
  102. package/dist/components/resource/AnnotationHistory.d.ts +0 -14
  103. package/dist/components/resource/AnnotationHistory.d.ts.map +0 -1
  104. package/dist/components/resource/BrowseView.d.ts +0 -28
  105. package/dist/components/resource/BrowseView.d.ts.map +0 -1
  106. package/dist/components/resource/HistoryEvent.d.ts +0 -19
  107. package/dist/components/resource/HistoryEvent.d.ts.map +0 -1
  108. package/dist/components/resource/ResourceViewer.d.ts +0 -46
  109. package/dist/components/resource/ResourceViewer.d.ts.map +0 -1
  110. package/dist/components/resource/event-formatting.d.ts +0 -61
  111. package/dist/components/resource/event-formatting.d.ts.map +0 -1
  112. package/dist/components/resource/panels/AssessmentEntry.d.ts +0 -11
  113. package/dist/components/resource/panels/AssessmentEntry.d.ts.map +0 -1
  114. package/dist/components/resource/panels/AssessmentPanel.d.ts +0 -32
  115. package/dist/components/resource/panels/AssessmentPanel.d.ts.map +0 -1
  116. package/dist/components/resource/panels/AssistSection.d.ts +0 -27
  117. package/dist/components/resource/panels/AssistSection.d.ts.map +0 -1
  118. package/dist/components/resource/panels/CollaborationPanel.d.ts +0 -28
  119. package/dist/components/resource/panels/CollaborationPanel.d.ts.map +0 -1
  120. package/dist/components/resource/panels/CommentEntry.d.ts +0 -12
  121. package/dist/components/resource/panels/CommentEntry.d.ts.map +0 -1
  122. package/dist/components/resource/panels/CommentsPanel.d.ts +0 -32
  123. package/dist/components/resource/panels/CommentsPanel.d.ts.map +0 -1
  124. package/dist/components/resource/panels/HighlightEntry.d.ts +0 -11
  125. package/dist/components/resource/panels/HighlightEntry.d.ts.map +0 -1
  126. package/dist/components/resource/panels/HighlightPanel.d.ts +0 -30
  127. package/dist/components/resource/panels/HighlightPanel.d.ts.map +0 -1
  128. package/dist/components/resource/panels/JsonLdPanel.d.ts +0 -9
  129. package/dist/components/resource/panels/JsonLdPanel.d.ts.map +0 -1
  130. package/dist/components/resource/panels/PanelHeader.d.ts +0 -13
  131. package/dist/components/resource/panels/PanelHeader.d.ts.map +0 -1
  132. package/dist/components/resource/panels/ReferenceEntry.d.ts +0 -15
  133. package/dist/components/resource/panels/ReferenceEntry.d.ts.map +0 -1
  134. package/dist/components/resource/panels/ReferencesPanel.d.ts +0 -43
  135. package/dist/components/resource/panels/ReferencesPanel.d.ts.map +0 -1
  136. package/dist/components/resource/panels/ResourceInfoPanel.d.ts +0 -27
  137. package/dist/components/resource/panels/ResourceInfoPanel.d.ts.map +0 -1
  138. package/dist/components/resource/panels/StatisticsPanel.d.ts +0 -12
  139. package/dist/components/resource/panels/StatisticsPanel.d.ts.map +0 -1
  140. package/dist/components/resource/panels/TagEntry.d.ts +0 -11
  141. package/dist/components/resource/panels/TagEntry.d.ts.map +0 -1
  142. package/dist/components/resource/panels/TaggingPanel.d.ts +0 -34
  143. package/dist/components/resource/panels/TaggingPanel.d.ts.map +0 -1
  144. package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts +0 -52
  145. package/dist/components/resource/panels/UnifiedAnnotationsPanel.d.ts.map +0 -1
  146. package/dist/components/resource/panels/agent-label.d.ts +0 -11
  147. package/dist/components/resource/panels/agent-label.d.ts.map +0 -1
  148. package/dist/components/settings/SettingsPanel.d.ts +0 -19
  149. package/dist/components/settings/SettingsPanel.d.ts.map +0 -1
  150. package/dist/components/viewers/ImageViewer.d.ts +0 -8
  151. package/dist/components/viewers/ImageViewer.d.ts.map +0 -1
  152. package/dist/components/viewers/index.d.ts +0 -2
  153. package/dist/components/viewers/index.d.ts.map +0 -1
  154. package/dist/contexts/AnnotationContext.d.ts +0 -46
  155. package/dist/contexts/AnnotationContext.d.ts.map +0 -1
  156. package/dist/contexts/ResourceAnnotationsContext.d.ts +0 -14
  157. package/dist/contexts/ResourceAnnotationsContext.d.ts.map +0 -1
  158. package/dist/contexts/RoutingContext.d.ts +0 -59
  159. package/dist/contexts/RoutingContext.d.ts.map +0 -1
  160. package/dist/contexts/ThemeContext.d.ts +0 -15
  161. package/dist/contexts/ThemeContext.d.ts.map +0 -1
  162. package/dist/contexts/TranslationContext.d.ts +0 -51
  163. package/dist/contexts/TranslationContext.d.ts.map +0 -1
  164. package/dist/contexts/useEventSubscription.d.ts +0 -41
  165. package/dist/contexts/useEventSubscription.d.ts.map +0 -1
  166. package/dist/design-tokens/index.d.ts +0 -178
  167. package/dist/design-tokens/index.d.ts.map +0 -1
  168. package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts +0 -33
  169. package/dist/features/admin-devops/components/AdminDevOpsPage.d.ts.map +0 -1
  170. package/dist/features/admin-exchange/components/AdminExchangePage.d.ts +0 -37
  171. package/dist/features/admin-exchange/components/AdminExchangePage.d.ts.map +0 -1
  172. package/dist/features/admin-exchange/components/ExportCard.d.ts +0 -18
  173. package/dist/features/admin-exchange/components/ExportCard.d.ts.map +0 -1
  174. package/dist/features/admin-exchange/components/ImportCard.d.ts +0 -32
  175. package/dist/features/admin-exchange/components/ImportCard.d.ts.map +0 -1
  176. package/dist/features/admin-exchange/components/ImportProgress.d.ts +0 -26
  177. package/dist/features/admin-exchange/components/ImportProgress.d.ts.map +0 -1
  178. package/dist/features/admin-exchange/state/exchange-state-unit.d.ts +0 -31
  179. package/dist/features/admin-exchange/state/exchange-state-unit.d.ts.map +0 -1
  180. package/dist/features/admin-security/components/AdminSecurityPage.d.ts +0 -42
  181. package/dist/features/admin-security/components/AdminSecurityPage.d.ts.map +0 -1
  182. package/dist/features/admin-security/state/admin-security-state-unit.d.ts +0 -12
  183. package/dist/features/admin-security/state/admin-security-state-unit.d.ts.map +0 -1
  184. package/dist/features/admin-users/components/AdminUsersPage.d.ts +0 -88
  185. package/dist/features/admin-users/components/AdminUsersPage.d.ts.map +0 -1
  186. package/dist/features/admin-users/state/admin-users-state-unit.d.ts +0 -17
  187. package/dist/features/admin-users/state/admin-users-state-unit.d.ts.map +0 -1
  188. package/dist/features/auth/components/AuthErrorDisplay.d.ts +0 -34
  189. package/dist/features/auth/components/AuthErrorDisplay.d.ts.map +0 -1
  190. package/dist/features/auth/components/SignInForm.d.ts +0 -80
  191. package/dist/features/auth/components/SignInForm.d.ts.map +0 -1
  192. package/dist/features/auth/components/SignUpForm.d.ts +0 -39
  193. package/dist/features/auth/components/SignUpForm.d.ts.map +0 -1
  194. package/dist/features/auth-welcome/components/WelcomePage.d.ts +0 -62
  195. package/dist/features/auth-welcome/components/WelcomePage.d.ts.map +0 -1
  196. package/dist/features/auth-welcome/state/welcome-state-unit.d.ts +0 -12
  197. package/dist/features/auth-welcome/state/welcome-state-unit.d.ts.map +0 -1
  198. package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts +0 -32
  199. package/dist/features/moderate-entity-tags/components/EntityTagsPage.d.ts.map +0 -1
  200. package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts +0 -16
  201. package/dist/features/moderate-entity-tags/state/entity-tags-state-unit.d.ts.map +0 -1
  202. package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts +0 -27
  203. package/dist/features/moderate-recent/components/RecentDocumentsPage.d.ts.map +0 -1
  204. package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts +0 -25
  205. package/dist/features/moderate-tag-schemas/components/TagSchemasPage.d.ts.map +0 -1
  206. package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts +0 -38
  207. package/dist/features/moderation-linked-data/components/LinkedDataPage.d.ts.map +0 -1
  208. package/dist/features/resource-compose/components/ResourceComposePage.d.ts +0 -83
  209. package/dist/features/resource-compose/components/ResourceComposePage.d.ts.map +0 -1
  210. package/dist/features/resource-compose/components/UploadProgressBar.d.ts +0 -23
  211. package/dist/features/resource-compose/components/UploadProgressBar.d.ts.map +0 -1
  212. package/dist/features/resource-compose/state/compose-page-state-unit.d.ts +0 -59
  213. package/dist/features/resource-compose/state/compose-page-state-unit.d.ts.map +0 -1
  214. package/dist/features/resource-discovery/components/ResourceCard.d.ts +0 -17
  215. package/dist/features/resource-discovery/components/ResourceCard.d.ts.map +0 -1
  216. package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts +0 -43
  217. package/dist/features/resource-discovery/components/ResourceDiscoveryPage.d.ts.map +0 -1
  218. package/dist/features/resource-discovery/state/discover-state-unit.d.ts +0 -15
  219. package/dist/features/resource-discovery/state/discover-state-unit.d.ts.map +0 -1
  220. package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts +0 -80
  221. package/dist/features/resource-viewer/components/ResourceViewerPage.d.ts.map +0 -1
  222. package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts +0 -11
  223. package/dist/features/resource-viewer/state/resource-loader-state-unit.d.ts.map +0 -1
  224. package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts +0 -48
  225. package/dist/features/resource-viewer/state/resource-viewer-page-state-unit.d.ts.map +0 -1
  226. package/dist/hooks/useDebounce.d.ts +0 -29
  227. package/dist/hooks/useDebounce.d.ts.map +0 -1
  228. package/dist/hooks/useDragAnnouncements.d.ts +0 -12
  229. package/dist/hooks/useDragAnnouncements.d.ts.map +0 -1
  230. package/dist/hooks/useHoverDelay.d.ts +0 -8
  231. package/dist/hooks/useHoverDelay.d.ts.map +0 -1
  232. package/dist/hooks/useHoverEmitter.d.ts +0 -8
  233. package/dist/hooks/useHoverEmitter.d.ts.map +0 -1
  234. package/dist/hooks/useKeyboardShortcuts.d.ts +0 -29
  235. package/dist/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  236. package/dist/hooks/useLineNumbers.d.ts +0 -8
  237. package/dist/hooks/useLineNumbers.d.ts.map +0 -1
  238. package/dist/hooks/useMediaToken.d.ts +0 -7
  239. package/dist/hooks/useMediaToken.d.ts.map +0 -1
  240. package/dist/hooks/useObservable.d.ts +0 -23
  241. package/dist/hooks/useObservable.d.ts.map +0 -1
  242. package/dist/hooks/useObservableBrowse.d.ts +0 -70
  243. package/dist/hooks/useObservableBrowse.d.ts.map +0 -1
  244. package/dist/hooks/usePanelWidth.d.ts +0 -37
  245. package/dist/hooks/usePanelWidth.d.ts.map +0 -1
  246. package/dist/hooks/useResourceContent.d.ts +0 -7
  247. package/dist/hooks/useResourceContent.d.ts.map +0 -1
  248. package/dist/hooks/useRovingTabIndex.d.ts +0 -13
  249. package/dist/hooks/useRovingTabIndex.d.ts.map +0 -1
  250. package/dist/hooks/useSearchAnnouncements.d.ts +0 -10
  251. package/dist/hooks/useSearchAnnouncements.d.ts.map +0 -1
  252. package/dist/hooks/useSessionExpiry.d.ts +0 -10
  253. package/dist/hooks/useSessionExpiry.d.ts.map +0 -1
  254. package/dist/hooks/useShellStateUnit.d.ts +0 -9
  255. package/dist/hooks/useShellStateUnit.d.ts.map +0 -1
  256. package/dist/hooks/useStateUnit.d.ts +0 -3
  257. package/dist/hooks/useStateUnit.d.ts.map +0 -1
  258. package/dist/hooks/useUI.d.ts +0 -24
  259. package/dist/hooks/useUI.d.ts.map +0 -1
  260. package/dist/index.d.ts.map +0 -1
  261. package/dist/integrations/css-modules-helper.d.ts +0 -114
  262. package/dist/integrations/css-modules-helper.d.ts.map +0 -1
  263. package/dist/integrations/styled-components-theme.d.ts +0 -95
  264. package/dist/integrations/styled-components-theme.d.ts.map +0 -1
  265. package/dist/integrations/tailwind-plugin.d.cts +0 -3
  266. package/dist/integrations/tailwind-plugin.d.cts.map +0 -1
  267. package/dist/lib/annotation-overlay.d.ts +0 -71
  268. package/dist/lib/annotation-overlay.d.ts.map +0 -1
  269. package/dist/lib/annotation-registry.d.ts +0 -62
  270. package/dist/lib/annotation-registry.d.ts.map +0 -1
  271. package/dist/lib/browser-pdfjs.d.ts +0 -93
  272. package/dist/lib/browser-pdfjs.d.ts.map +0 -1
  273. package/dist/lib/button-styles.d.ts +0 -27
  274. package/dist/lib/button-styles.d.ts.map +0 -1
  275. package/dist/lib/codemirror-handlers.d.ts +0 -52
  276. package/dist/lib/codemirror-handlers.d.ts.map +0 -1
  277. package/dist/lib/codemirror-json-theme.d.ts +0 -8
  278. package/dist/lib/codemirror-json-theme.d.ts.map +0 -1
  279. package/dist/lib/codemirror-logic.d.ts +0 -66
  280. package/dist/lib/codemirror-logic.d.ts.map +0 -1
  281. package/dist/lib/codemirror-widgets.d.ts +0 -39
  282. package/dist/lib/codemirror-widgets.d.ts.map +0 -1
  283. package/dist/lib/formatTime.d.ts +0 -2
  284. package/dist/lib/formatTime.d.ts.map +0 -1
  285. package/dist/lib/media-shapes.d.ts +0 -51
  286. package/dist/lib/media-shapes.d.ts.map +0 -1
  287. package/dist/lib/pdf-coordinates.d.ts +0 -69
  288. package/dist/lib/pdf-coordinates.d.ts.map +0 -1
  289. package/dist/lib/resource-utils.d.ts +0 -22
  290. package/dist/lib/resource-utils.d.ts.map +0 -1
  291. package/dist/lib/scroll-utils.d.ts +0 -20
  292. package/dist/lib/scroll-utils.d.ts.map +0 -1
  293. package/dist/lib/text-segmentation.d.ts +0 -25
  294. package/dist/lib/text-segmentation.d.ts.map +0 -1
  295. package/dist/lib/text-selection-handler.d.ts +0 -46
  296. package/dist/lib/text-selection-handler.d.ts.map +0 -1
  297. package/dist/lib/validation.d.ts +0 -47
  298. package/dist/lib/validation.d.ts.map +0 -1
  299. package/dist/session/SemiontProvider.d.ts +0 -28
  300. package/dist/session/SemiontProvider.d.ts.map +0 -1
  301. package/dist/session/web-browser-storage.d.ts +0 -19
  302. package/dist/session/web-browser-storage.d.ts.map +0 -1
  303. package/dist/state/session-state-unit.d.ts +0 -9
  304. package/dist/state/session-state-unit.d.ts.map +0 -1
  305. package/dist/state/shell-state-unit.d.ts +0 -33
  306. package/dist/state/shell-state-unit.d.ts.map +0 -1
  307. package/dist/test-utils.d.ts.map +0 -1
  308. package/dist/types/AnnotationManager.d.ts +0 -53
  309. package/dist/types/AnnotationManager.d.ts.map +0 -1
  310. package/dist/types/TranslationManager.d.ts +0 -15
  311. package/dist/types/TranslationManager.d.ts.map +0 -1
  312. package/dist/types/annotation-props.d.ts +0 -108
  313. package/dist/types/annotation-props.d.ts.map +0 -1
  314. package/dist/types/collapsible-navigation.d.ts +0 -69
  315. package/dist/types/collapsible-navigation.d.ts.map +0 -1
  316. package/dist/types/modals.d.ts +0 -77
  317. package/dist/types/modals.d.ts.map +0 -1
  318. package/dist/types/navigation.d.ts +0 -35
  319. package/dist/types/navigation.d.ts.map +0 -1
  320. package/dist/types/resource-viewer.d.ts +0 -19
  321. package/dist/types/resource-viewer.d.ts.map +0 -1
  322. package/dist/types/simple-navigation.d.ts +0 -15
  323. package/dist/types/simple-navigation.d.ts.map +0 -1
  324. package/dist/types/translation.d.ts +0 -5
  325. package/dist/types/translation.d.ts.map +0 -1
@@ -1,114 +0,0 @@
1
- /**
2
- * CSS Modules Helper for Semiont Components
3
- *
4
- * This helper provides utilities for integrating Semiont components
5
- * with CSS Modules while preserving the data-attribute architecture.
6
- */
7
- import React from 'react';
8
- /**
9
- * Creates a className builder for Semiont components with CSS Modules
10
- *
11
- * @param styles - The CSS Modules styles object
12
- * @param baseClass - The base Semiont class name (e.g., 'semiont-button')
13
- * @returns A function that builds the className string
14
- */
15
- export declare function createSemiontClassName(styles: Record<string, string>, baseClass: string): (_dataAttributes: Record<string, string | boolean | undefined>, additionalClasses?: string) => string;
16
- /**
17
- * Helper to generate data attributes object from component props
18
- *
19
- * @param props - Component props
20
- * @returns Data attributes object
21
- */
22
- export declare function generateDataAttributes(props: {
23
- variant?: string;
24
- size?: string;
25
- loading?: boolean;
26
- fullWidth?: boolean;
27
- iconOnly?: boolean;
28
- active?: boolean;
29
- disabled?: boolean;
30
- orientation?: string;
31
- attached?: boolean;
32
- spacing?: string;
33
- [key: string]: any;
34
- }): Record<string, string | undefined>;
35
- /**
36
- * Merges data attributes into props object
37
- *
38
- * @param props - Original props
39
- * @param dataAttributes - Data attributes to merge
40
- * @returns Merged props object
41
- */
42
- export declare function mergeDataAttributes<T extends Record<string, any>>(props: T, dataAttributes: Record<string, string | undefined>): T;
43
- /**
44
- * Example wrapper component for CSS Modules integration
45
- *
46
- * Usage:
47
- * ```tsx
48
- * import styles from './CustomButton.module.css';
49
- * import { Button } from '@semiont/react-ui';
50
- * import { withCSSModules } from '@semiont/react-ui/integrations';
51
- *
52
- * const CustomButton = withCSSModules(Button, styles, 'button');
53
- * ```
54
- */
55
- export declare function withCSSModules<P extends {
56
- className?: string;
57
- }>(Component: React.ComponentType<P>, styles: Record<string, string>, baseClassName: string): (props: P) => import("react/jsx-runtime").JSX.Element;
58
- /**
59
- * CSS Modules configuration helper for build tools
60
- *
61
- * This provides the necessary configuration for CSS Modules
62
- * to work with Semiont's data-attribute selectors
63
- */
64
- export declare const cssModulesConfig: {
65
- postcss: {
66
- plugins: {
67
- postcssPlugin: string;
68
- Once(root: any): void;
69
- }[];
70
- };
71
- webpack: {
72
- cssLoader: {
73
- modules: {
74
- localIdentName: string;
75
- getLocalIdent: (_context: any, _localIdentName: string, localName: string) => string | null;
76
- };
77
- };
78
- };
79
- vite: {
80
- css: {
81
- modules: {
82
- generateScopedName: string;
83
- scopeBehaviour: "local";
84
- globalModulePaths: RegExp[];
85
- };
86
- };
87
- };
88
- };
89
- /**
90
- * Type definitions for CSS Modules with Semiont components
91
- */
92
- export interface SemiontCSSModules {
93
- button?: string;
94
- 'button-content'?: string;
95
- 'button-icon'?: string;
96
- 'button-icon-left'?: string;
97
- 'button-icon-right'?: string;
98
- 'button-spinner'?: string;
99
- 'button-group'?: string;
100
- [key: string]: string | undefined;
101
- }
102
- /**
103
- * Helper to type CSS Modules imports
104
- *
105
- * Usage:
106
- * ```tsx
107
- * import { defineCSSModules } from '@semiont/react-ui/integrations';
108
- * import rawStyles from './Button.module.css';
109
- *
110
- * const styles = defineCSSModules<SemiontCSSModules>(rawStyles);
111
- * ```
112
- */
113
- export declare function defineCSSModules<T extends SemiontCSSModules>(styles: Record<string, string>): T;
114
- //# sourceMappingURL=css-modules-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-modules-helper.d.ts","sourceRoot":"","sources":["../../src/integrations/css-modules-helper.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,SAAS,EAAE,MAAM,IAGf,iBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,EAC7D,oBAAoB,MAAM,KACzB,MAAM,CAeV;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAarC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/D,KAAK,EAAE,CAAC,EACR,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GACjD,CAAC,CAUH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,aAAa,EAAE,MAAM,IAEY,OAAO,CAAC,6CAS1C;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;uBAOV,GAAG;;;;;;;0CA0BF,GAAG,mBACI,MAAM,aACZ,MAAM;;;;;;;;;;;;;CA0B1B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,EAC1D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,CAAC,CAEH"}
@@ -1,95 +0,0 @@
1
- /**
2
- * Styled Components Theme for Semiont Components
3
- *
4
- * This provides a complete theme object and utilities for using
5
- * Semiont components with styled-components or emotion.
6
- */
7
- import { tokens } from '../design-tokens';
8
- import { DefaultTheme } from 'styled-components';
9
- /**
10
- * Semiont theme object for styled-components
11
- */
12
- export declare const semiontTheme: DefaultTheme;
13
- /**
14
- * Type augmentation for styled-components DefaultTheme
15
- */
16
- declare module 'styled-components' {
17
- interface DefaultTheme {
18
- colors: typeof tokens.colors & {
19
- error: string;
20
- errorLight: string;
21
- errorDark: string;
22
- warning: string;
23
- warningLight: string;
24
- warningDark: string;
25
- success: string;
26
- successLight: string;
27
- successDark: string;
28
- info: string;
29
- infoLight: string;
30
- infoDark: string;
31
- };
32
- spacing: typeof tokens.spacing;
33
- typography: typeof tokens.typography;
34
- borderRadius: typeof tokens.borderRadius;
35
- shadows: typeof tokens.shadows;
36
- transitions: typeof tokens.transitions;
37
- breakpoints: typeof tokens.breakpoints;
38
- }
39
- }
40
- /**
41
- * CSS mixins for common component patterns
42
- */
43
- export declare const semiontMixins: {
44
- /**
45
- * Button base styles
46
- */
47
- buttonBase: import("styled-components").RuleSet<object>;
48
- /**
49
- * Button variant styles
50
- */
51
- buttonVariant: (variant: string) => import("styled-components").RuleSet<object>;
52
- /**
53
- * Button size styles
54
- */
55
- buttonSize: (size: string) => import("styled-components").RuleSet<object>;
56
- /**
57
- * Focus ring styles
58
- */
59
- focusRing: (color?: string) => import("styled-components").RuleSet<object>;
60
- /**
61
- * Truncate text with ellipsis
62
- */
63
- truncate: import("styled-components").RuleSet<object>;
64
- /**
65
- * Screen reader only
66
- */
67
- srOnly: import("styled-components").RuleSet<object>;
68
- /**
69
- * Responsive media query helpers
70
- */
71
- media: {
72
- sm: (styles: any) => import("styled-components").RuleSet<object>;
73
- md: (styles: any) => import("styled-components").RuleSet<object>;
74
- lg: (styles: any) => import("styled-components").RuleSet<object>;
75
- xl: (styles: any) => import("styled-components").RuleSet<object>;
76
- '2xl': (styles: any) => import("styled-components").RuleSet<object>;
77
- };
78
- };
79
- /**
80
- * Global styles for Semiont components
81
- */
82
- export declare const SemiontGlobalStyles: import("styled-components").RuleSet<object>;
83
- /**
84
- * Helper function to create styled Semiont components
85
- *
86
- * Usage:
87
- * ```tsx
88
- * import styled from 'styled-components';
89
- * import { createStyledSemiontButton } from '@semiont/react-ui/integrations';
90
- *
91
- * const StyledButton = createStyledSemiontButton(styled);
92
- * ```
93
- */
94
- export declare function createStyledSemiontButton(styled: any): any;
95
- //# sourceMappingURL=styled-components-theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styled-components-theme.d.ts","sourceRoot":"","sources":["../../src/integrations/styled-components-theme.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAO,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,YAuB1B,CAAC;AAEF;;GAEG;AACH,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAiB,YAAY;QAC3B,MAAM,EAAE,OAAO,MAAM,CAAC,MAAM,GAAG;YAC7B,KAAK,EAAE,MAAM,CAAC;YACd,UAAU,EAAE,MAAM,CAAC;YACnB,SAAS,EAAE,MAAM,CAAC;YAClB,OAAO,EAAE,MAAM,CAAC;YAChB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM,CAAC;YAChB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;YACpB,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,EAAE,MAAM,CAAC;YAClB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,OAAO,EAAE,OAAO,MAAM,CAAC,OAAO,CAAC;QAC/B,UAAU,EAAE,OAAO,MAAM,CAAC,UAAU,CAAC;QACrC,YAAY,EAAE,OAAO,MAAM,CAAC,YAAY,CAAC;QACzC,OAAO,EAAE,OAAO,MAAM,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,OAAO,MAAM,CAAC,WAAW,CAAC;QACvC,WAAW,EAAE,OAAO,MAAM,CAAC,WAAW,CAAC;KACxC;CACF;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;;IA6BH;;OAEG;6BACsB,MAAM;IA2F/B;;OAEG;uBACgB,MAAM;IAqCzB;;OAEG;wBACiB,MAAM;IAO1B;;OAEG;;IAOH;;OAEG;;IAaH;;OAEG;;qBAEY,GAAG;qBAKH,GAAG;qBAKH,GAAG;qBAKH,GAAG;wBAKA,GAAG;;CAMtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,6CA0D/B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,OA6BpD"}
@@ -1,3 +0,0 @@
1
- declare const _exports: any;
2
- export = _exports;
3
- //# sourceMappingURL=tailwind-plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwind-plugin.d.cts","sourceRoot":"","sources":["../../src/integrations/tailwind-plugin.cjs"],"names":[],"mappings":""}
@@ -1,71 +0,0 @@
1
- /**
2
- * Annotation overlay: decouples annotation highlighting from markdown rendering.
3
- *
4
- * Instead of weaving annotations into the markdown AST via remark/rehype plugins
5
- * (which forces O(ASTnodes × annotations) work on every render), this module:
6
- *
7
- * 1. Builds a source→rendered offset map once after the markdown DOM paints
8
- * 2. Resolves W3C TextPositionSelector offsets to DOM Ranges via binary search
9
- * 3. Wraps matched ranges with <span> elements carrying data-annotation-* attributes
10
- *
11
- * Markdown renders once (cached by React.memo). Annotation changes only touch
12
- * the overlay spans — no markdown re-parse, no AST walk.
13
- */
14
- import type { Annotation } from '@semiont/core';
15
- export interface OverlayAnnotation {
16
- id: string;
17
- exact: string;
18
- offset: number;
19
- length: number;
20
- type: string;
21
- source: string | null;
22
- }
23
- interface TextNodeEntry {
24
- node: Text;
25
- start: number;
26
- end: number;
27
- }
28
- /**
29
- * Build a map from markdown source offsets to rendered text offsets.
30
- * Character-by-character alignment: walks source and rendered text in parallel,
31
- * matching characters and skipping markdown syntax in the source.
32
- *
33
- * Complexity: O(sourceLength) — runs once per content change.
34
- */
35
- export declare function buildSourceToRenderedMap(markdownSource: string, container: HTMLElement): Map<number, number>;
36
- /**
37
- * Build a sorted array of text nodes with cumulative rendered offsets
38
- * for efficient offset→node lookups via binary search.
39
- *
40
- * Complexity: O(textNodes) — runs once per overlay application.
41
- */
42
- export declare function buildTextNodeIndex(container: HTMLElement): TextNodeEntry[];
43
- /**
44
- * Resolve annotations to DOM Ranges using the cached offset map.
45
- *
46
- * Complexity: O(annotations × log(textNodes)).
47
- */
48
- export declare function resolveAnnotationRanges(annotations: OverlayAnnotation[], offsetMap: Map<number, number>, textNodeIndex: TextNodeEntry[]): Map<string, {
49
- range: Range;
50
- annotation: OverlayAnnotation;
51
- }>;
52
- /**
53
- * Wrap annotation Ranges with styled <span> elements.
54
- * Handles cross-element ranges by splitting into per-text-node segments.
55
- */
56
- export declare function applyHighlights(ranges: Map<string, {
57
- range: Range;
58
- annotation: OverlayAnnotation;
59
- }>): void;
60
- /**
61
- * Remove all annotation highlight spans, restoring the original DOM.
62
- * Unwraps spans and merges adjacent text nodes.
63
- */
64
- export declare function clearHighlights(container: HTMLElement): void;
65
- /**
66
- * Convert W3C Annotations to the simplified overlay format.
67
- * Extracts TextPositionSelector offsets and annotation type.
68
- */
69
- export declare function toOverlayAnnotations(annotations: Annotation[]): OverlayAnnotation[];
70
- export {};
71
- //# sourceMappingURL=annotation-overlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotation-overlay.d.ts","sourceRoot":"","sources":["../../src/lib/annotation-overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAID;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,WAAW,GACrB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA+BrB;AAID;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,WAAW,GAAG,aAAa,EAAE,CAa1E;AA+BD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,iBAAiB,EAAE,EAChC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,aAAa,EAAE,aAAa,EAAE,GAC7B,GAAG,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,CAAC,CAmB9D;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,CAAC,GACnE,IAAI,CAsBN;AAmDD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAW5D;AAID;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,iBAAiB,EAAE,CAmBnF"}
@@ -1,62 +0,0 @@
1
- /**
2
- * Centralized annotation type registry
3
- *
4
- * Single source of truth for W3C annotation motivation metadata including:
5
- * - Visual styling (CSS classes)
6
- * - Behavior flags (clickable, hover, side panel)
7
- * - Type guards (motivation matching)
8
- * - Accessibility (screen reader announcements)
9
- * - Runtime handlers (click, hover, detect, update, create)
10
- *
11
- * Per CLAUDE.md: This is the ONLY place to define annotation type metadata.
12
- * No aliasing, wrappers, or compatibility layers elsewhere.
13
- */
14
- import type { components } from '@semiont/core';
15
- import type { Annotation } from '@semiont/core';
16
- type Motivation = components['schemas']['Motivation'];
17
- /**
18
- * Detection configuration for SSE-based annotation detection
19
- */
20
- export interface DetectionConfig {
21
- sseMethod: 'detectReferences' | 'detectHighlights' | 'detectAssessments' | 'detectComments' | 'detectTags';
22
- countField: 'foundCount' | 'createdCount' | 'tagsCreated';
23
- displayNamePlural: string;
24
- displayNameSingular: string;
25
- formatRequestParams?: (args: unknown[]) => Array<{
26
- label: string;
27
- value: string;
28
- }>;
29
- }
30
- /**
31
- * Creation configuration - describes how to create annotations of this type
32
- */
33
- export interface CreateConfig {
34
- bodyBuilder: 'empty' | 'text' | 'entityTag' | 'dualTag';
35
- refetchAfter: boolean;
36
- successMessage?: string;
37
- }
38
- /**
39
- * Annotator: Encapsulates all motivation-specific behavior
40
- * Handles clicks, hovers, detection, and other operations for one annotation type
41
- */
42
- export interface Annotator {
43
- motivation: Motivation;
44
- internalType: string;
45
- displayName: string;
46
- description: string;
47
- className: string;
48
- iconEmoji?: string;
49
- isClickable: boolean;
50
- hasHoverInteraction: boolean;
51
- hasSidePanel: boolean;
52
- matchesAnnotation: (annotation: Annotation) => boolean;
53
- announceOnCreate: string;
54
- detection?: DetectionConfig;
55
- create: CreateConfig;
56
- }
57
- /**
58
- * Static annotator definitions - single source of truth
59
- */
60
- export declare const ANNOTATORS: Record<string, Annotator>;
61
- export {};
62
- //# sourceMappingURL=annotation-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotation-registry.d.ts","sourceRoot":"","sources":["../../src/lib/annotation-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,KAAK,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,eAAe;IAE9B,SAAS,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,YAAY,CAAC;IAG3G,UAAU,EAAE,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;IAG1D,iBAAiB,EAAE,MAAM,CAAC;IAG1B,mBAAmB,EAAE,MAAM,CAAC;IAI5B,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpF;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAE3B,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;IAGxD,YAAY,EAAE,OAAO,CAAC;IAGtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IAExB,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IAGtB,iBAAiB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;IAGvD,gBAAgB,EAAE,MAAM,CAAC;IAGzB,SAAS,CAAC,EAAE,eAAe,CAAC;IAG5B,MAAM,EAAE,YAAY,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAoKhD,CAAC"}
@@ -1,93 +0,0 @@
1
- /**
2
- * Browser PDF.js utilities
3
- *
4
- * Uses native browser PDF.js when available, falls back to CDN.
5
- * Zero npm dependencies - no webpack bundling issues.
6
- */
7
- export interface PDFDocumentProxy {
8
- numPages: number;
9
- getPage(pageNumber: number): Promise<PDFPageProxy>;
10
- }
11
- export interface PDFPageProxy {
12
- getViewport(params: {
13
- scale: number;
14
- rotation?: number;
15
- }): PDFViewport;
16
- render(params: PDFRenderParams): PDFRenderTask;
17
- getTextContent(): Promise<TextContent>;
18
- }
19
- export interface PDFViewport {
20
- width: number;
21
- height: number;
22
- scale: number;
23
- rotation: number;
24
- }
25
- export interface PDFRenderParams {
26
- canvasContext: CanvasRenderingContext2D;
27
- viewport: PDFViewport;
28
- }
29
- export interface PDFRenderTask {
30
- promise: Promise<void>;
31
- cancel(): void;
32
- }
33
- export interface PDFLib {
34
- getDocument(params: {
35
- url: string;
36
- }): PDFLoadingTask;
37
- GlobalWorkerOptions: {
38
- workerSrc: string;
39
- };
40
- version: string;
41
- }
42
- export interface PDFLoadingTask {
43
- promise: Promise<PDFDocumentProxy>;
44
- destroy(): void;
45
- }
46
- /**
47
- * Text content types (for Phase 2)
48
- */
49
- export interface TextItem {
50
- str: string;
51
- dir: string;
52
- transform: number[];
53
- width: number;
54
- height: number;
55
- fontName: string;
56
- hasEOL: boolean;
57
- }
58
- export interface TextContent {
59
- items: TextItem[];
60
- styles: Record<string, any>;
61
- }
62
- /**
63
- * Ensure PDF.js is available, loading from local public folder if needed
64
- */
65
- export declare function ensurePdfJs(): Promise<PDFLib>;
66
- /**
67
- * Load PDF document from a URL.
68
- *
69
- * The URL must include authentication (e.g. ?token=<media-token>).
70
- * PDF.js streams the document directly — no ArrayBuffer buffering in JS.
71
- */
72
- export declare function loadPdfDocument(url: string): Promise<PDFDocumentProxy>;
73
- /**
74
- * Render PDF page to canvas and return as data URL
75
- */
76
- export declare function renderPdfPageToDataUrl(page: PDFPageProxy, scale?: number): Promise<{
77
- dataUrl: string;
78
- width: number;
79
- height: number;
80
- }>;
81
- /**
82
- * Render PDF page with text content extraction (Phase 2)
83
- *
84
- * This function extracts text in parallel with rendering for future
85
- * text layer support. Currently the text content is available but not used.
86
- */
87
- export declare function renderPdfPageWithText(page: PDFPageProxy, scale?: number): Promise<{
88
- dataUrl: string;
89
- width: number;
90
- height: number;
91
- textContent: TextContent;
92
- }>;
93
- //# sourceMappingURL=browser-pdfjs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-pdfjs.d.ts","sourceRoot":"","sources":["../../src/lib/browser-pdfjs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,WAAW,CAAC;IACvE,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,aAAa,CAAC;IAC/C,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,wBAAwB,CAAC;IACxC,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,MAAM,WAAW,MAAM;IACrB,WAAW,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,cAAc,CAAC;IACrD,mBAAmB,EAAE;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAgCnD;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAI5E;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,YAAY,EAClB,KAAK,SAAM,GACV,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA2B7D;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,YAAY,EAClB,KAAK,SAAM,GACV,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC,CAgCD"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Centralized button styles matching Figma design
3
- * Two primary styles from authenticated home page:
4
- * 1. Primary (cyan/blue gradient) - for main CTAs
5
- * 2. Secondary (gray with black outline) - for secondary actions
6
- */
7
- export declare const buttonStyles: {
8
- readonly primary: {
9
- readonly base: "semiont-button semiont-button--primary";
10
- readonly large: "semiont-button semiont-button--primary semiont-button--large";
11
- };
12
- readonly secondary: {
13
- readonly base: "semiont-button semiont-button--secondary";
14
- readonly withScale: "semiont-button semiont-button--secondary semiont-button--scale";
15
- };
16
- readonly tertiary: {
17
- readonly base: "semiont-button semiont-button--tertiary";
18
- };
19
- readonly danger: {
20
- readonly base: "semiont-button semiont-button--danger";
21
- };
22
- readonly warning: {
23
- readonly base: "semiont-button semiont-button--warning";
24
- };
25
- readonly combine: (...classes: string[]) => string;
26
- };
27
- //# sourceMappingURL=button-styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-styles.d.ts","sourceRoot":"","sources":["../../src/lib/button-styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;mCA6BD,MAAM,EAAE;CACtB,CAAC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Event handler logic extracted from CodeMirrorRenderer
3
- *
4
- * These functions handle click and hover interactions on annotations
5
- * and widgets within the CodeMirror editor. They operate on plain DOM
6
- * elements and a SemiontSession — no CodeMirror API dependency.
7
- */
8
- import type { Motivation } from '@semiont/core';
9
- import type { SemiontSession } from '@semiont/sdk';
10
- import type { TextSegment } from './codemirror-logic';
11
- /**
12
- * Handle click on an annotation element.
13
- * Looks up the segment by annotation ID, then emits browse:click.
14
- *
15
- * @returns true if the click was handled (an annotation was clicked), false otherwise
16
- */
17
- export declare function handleAnnotationClick(target: HTMLElement, segmentsById: Map<string, TextSegment>, session: SemiontSession): boolean;
18
- /**
19
- * Result of processing a widget click
20
- */
21
- export interface WidgetClickResult {
22
- handled: boolean;
23
- action?: 'navigate' | 'browse-click';
24
- resourceId?: string;
25
- annotationId?: string;
26
- motivation?: Motivation;
27
- }
28
- /**
29
- * Handle click on a reference preview widget.
30
- * Determines whether to navigate (resolved) or browse-click (unresolved).
31
- */
32
- export declare function handleWidgetClick(target: HTMLElement): WidgetClickResult;
33
- /**
34
- * Dispatch a widget click result to the session bus
35
- */
36
- export declare function dispatchWidgetClick(result: WidgetClickResult, session: SemiontSession): void;
37
- /**
38
- * Handle mouseenter on a widget — show preview tooltip for resolved references
39
- */
40
- export declare function handleWidgetMouseEnter(target: HTMLElement): {
41
- showPreview: boolean;
42
- targetName?: string;
43
- widget: HTMLElement | null;
44
- };
45
- /**
46
- * Handle mouseleave on a widget — hide preview tooltip
47
- */
48
- export declare function handleWidgetMouseLeave(target: HTMLElement): {
49
- hidePreview: boolean;
50
- widget: HTMLElement | null;
51
- };
52
- //# sourceMappingURL=codemirror-handlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codemirror-handlers.d.ts","sourceRoot":"","sources":["../../src/lib/codemirror-handlers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EACtC,OAAO,EAAE,cAAc,GACtB,OAAO,CAWT;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,iBAAiB,CA2BxE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAQ5F;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,GAAG;IAC3D,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B,CAmBA;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,GAAG;IAC3D,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;CAC5B,CAcA"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Shared CodeMirror JSON theme for light mode
3
- * Used by both JsonLdView (popups) and JsonLdPanel (sidebar)
4
- */
5
- import { HighlightStyle } from '@codemirror/language';
6
- export declare const jsonLightTheme: import("@codemirror/state").Extension;
7
- export declare const jsonLightHighlightStyle: HighlightStyle;
8
- //# sourceMappingURL=codemirror-json-theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codemirror-json-theme.d.ts","sourceRoot":"","sources":["../../src/lib/codemirror-json-theme.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,eAAO,MAAM,cAAc,uCAmBR,CAAC;AAEpB,eAAO,MAAM,uBAAuB,gBASlC,CAAC"}
@@ -1,66 +0,0 @@
1
- /**
2
- * Pure logic extracted from CodeMirrorRenderer
3
- *
4
- * These functions have zero dependency on CodeMirror's DOM or React.
5
- * They handle position conversion, tooltip generation, and decoration metadata.
6
- */
7
- import type { Annotation } from '@semiont/core';
8
- export interface TextSegment {
9
- exact: string;
10
- annotation?: Annotation;
11
- start: number;
12
- end: number;
13
- }
14
- /**
15
- * Convert positions from CRLF character space to LF character space.
16
- * CodeMirror normalizes all line endings to LF internally, but annotation positions
17
- * are calculated in the original content's character space (which may have CRLF).
18
- *
19
- * @param segments - Segments with positions in CRLF space
20
- * @param content - Original content (may have CRLF line endings)
21
- * @returns Segments with positions adjusted for LF space
22
- */
23
- export declare function convertSegmentPositions(segments: TextSegment[], content: string): TextSegment[];
24
- /**
25
- * Get tooltip text for annotation based on type/motivation
26
- */
27
- export declare function getAnnotationTooltip(annotation: Annotation): string;
28
- /**
29
- * Metadata for a single annotation decoration (class name, data attributes, tooltip)
30
- */
31
- export interface AnnotationDecorationMeta {
32
- className: string;
33
- annotationType: string;
34
- annotationId: string;
35
- tooltip: string;
36
- }
37
- /**
38
- * Compute decoration metadata for a single annotated segment.
39
- * Pure function — no CodeMirror dependency.
40
- */
41
- export declare function getAnnotationDecorationMeta(annotation: Annotation, isNew: boolean): AnnotationDecorationMeta;
42
- /**
43
- * Compute all annotation decoration metadata from segments.
44
- * Returns sorted, filtered entries ready for CodeMirror's RangeSetBuilder.
45
- */
46
- export declare function computeAnnotationDecorations(segments: TextSegment[], newAnnotationIds?: Set<string>): Array<{
47
- start: number;
48
- end: number;
49
- meta: AnnotationDecorationMeta;
50
- }>;
51
- /**
52
- * Widget metadata for a reference annotation
53
- */
54
- export interface ReferenceWidgetMeta {
55
- annotationId: string;
56
- position: number;
57
- targetName: string | undefined;
58
- isGenerating: boolean;
59
- bodySource: string | undefined;
60
- }
61
- /**
62
- * Compute widget metadata for reference annotations.
63
- * Pure function — no CodeMirror dependency.
64
- */
65
- export declare function computeWidgetDecorations(segments: TextSegment[], generatingReferenceId: string | null | undefined, getTargetResourceName?: (resourceId: string) => string | undefined): ReferenceWidgetMeta[];
66
- //# sourceMappingURL=codemirror-logic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codemirror-logic.d.ts","sourceRoot":"","sources":["../../src/lib/codemirror-logic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,EAAE,CA+B/F;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAsBnE;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,OAAO,GACb,wBAAwB,CAuB1B;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,WAAW,EAAE,EACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC7B,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,wBAAwB,CAAA;CAAE,CAAC,CAavE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,WAAW,EAAE,EACvB,qBAAqB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChD,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GACjE,mBAAmB,EAAE,CAkBvB"}