@semiont/react-ui 0.2.28 → 0.2.29-build.42

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 (106) hide show
  1. package/README.md +27 -2
  2. package/dist/{TranslationManager-8nrCwJEY.d.mts → TranslationManager-Co_5fSxl.d.mts} +2 -1
  3. package/dist/ar-TQSFB35U.mjs +325 -0
  4. package/dist/ar-TQSFB35U.mjs.map +1 -0
  5. package/dist/bn-525U24T3.mjs +325 -0
  6. package/dist/bn-525U24T3.mjs.map +1 -0
  7. package/dist/{chunk-ATHYNK3C.mjs → chunk-3JTO27MH.mjs} +7 -1
  8. package/dist/chunk-BHAP6MVA.mjs +325 -0
  9. package/dist/chunk-BHAP6MVA.mjs.map +1 -0
  10. package/dist/chunk-W6E2UESX.mjs +387 -0
  11. package/dist/chunk-W6E2UESX.mjs.map +1 -0
  12. package/dist/cs-OYWTGLFM.mjs +325 -0
  13. package/dist/cs-OYWTGLFM.mjs.map +1 -0
  14. package/dist/da-BDXG2ITK.mjs +325 -0
  15. package/dist/da-BDXG2ITK.mjs.map +1 -0
  16. package/dist/de-NB5JLMES.mjs +325 -0
  17. package/dist/de-NB5JLMES.mjs.map +1 -0
  18. package/dist/el-3SVXEAJI.mjs +325 -0
  19. package/dist/el-3SVXEAJI.mjs.map +1 -0
  20. package/dist/en-DVB4OE2R.mjs +39 -0
  21. package/dist/en-DVB4OE2R.mjs.map +1 -0
  22. package/dist/es-YBOFA3W5.mjs +325 -0
  23. package/dist/es-YBOFA3W5.mjs.map +1 -0
  24. package/dist/fa-7MU36AMY.mjs +325 -0
  25. package/dist/fa-7MU36AMY.mjs.map +1 -0
  26. package/dist/fi-PQKJB32G.mjs +325 -0
  27. package/dist/fi-PQKJB32G.mjs.map +1 -0
  28. package/dist/fr-U4HK5GM6.mjs +325 -0
  29. package/dist/fr-U4HK5GM6.mjs.map +1 -0
  30. package/dist/he-F5MNZHAL.mjs +325 -0
  31. package/dist/he-F5MNZHAL.mjs.map +1 -0
  32. package/dist/hi-2PHI37ZX.mjs +325 -0
  33. package/dist/hi-2PHI37ZX.mjs.map +1 -0
  34. package/dist/id-JPRBNCGS.mjs +325 -0
  35. package/dist/id-JPRBNCGS.mjs.map +1 -0
  36. package/dist/index.d.mts +64 -73
  37. package/dist/index.mjs +4158 -9936
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/it-MRLWI5OS.mjs +325 -0
  40. package/dist/it-MRLWI5OS.mjs.map +1 -0
  41. package/dist/ja-YQ6RPI2T.mjs +325 -0
  42. package/dist/ja-YQ6RPI2T.mjs.map +1 -0
  43. package/dist/ko-DUAVCEXX.mjs +325 -0
  44. package/dist/ko-DUAVCEXX.mjs.map +1 -0
  45. package/dist/{magic-string.es-DJUUJRO3.mjs → magic-string.es-7FJ3LUGB.mjs} +2 -2
  46. package/dist/ms-FBHSR4PG.mjs +325 -0
  47. package/dist/ms-FBHSR4PG.mjs.map +1 -0
  48. package/dist/nl-IC2MPZXN.mjs +325 -0
  49. package/dist/nl-IC2MPZXN.mjs.map +1 -0
  50. package/dist/no-LLD43NRM.mjs +325 -0
  51. package/dist/no-LLD43NRM.mjs.map +1 -0
  52. package/dist/pl-DDOJBR4D.mjs +325 -0
  53. package/dist/pl-DDOJBR4D.mjs.map +1 -0
  54. package/dist/pt-7TFHQRRN.mjs +325 -0
  55. package/dist/pt-7TFHQRRN.mjs.map +1 -0
  56. package/dist/ro-P4PJEGDU.mjs +325 -0
  57. package/dist/ro-P4PJEGDU.mjs.map +1 -0
  58. package/dist/sv-LF3VEQD2.mjs +325 -0
  59. package/dist/sv-LF3VEQD2.mjs.map +1 -0
  60. package/dist/test-utils.d.mts +1 -1
  61. package/dist/test-utils.mjs +313 -304
  62. package/dist/test-utils.mjs.map +1 -1
  63. package/dist/th-YUQAOFXF.mjs +325 -0
  64. package/dist/th-YUQAOFXF.mjs.map +1 -0
  65. package/dist/tr-CSIGLMJC.mjs +325 -0
  66. package/dist/tr-CSIGLMJC.mjs.map +1 -0
  67. package/dist/uk-LW3QBKSR.mjs +325 -0
  68. package/dist/uk-LW3QBKSR.mjs.map +1 -0
  69. package/dist/vi-W464Y6ZC.mjs +325 -0
  70. package/dist/vi-W464Y6ZC.mjs.map +1 -0
  71. package/dist/zh-R5XLM3EI.mjs +325 -0
  72. package/dist/zh-R5XLM3EI.mjs.map +1 -0
  73. package/package.json +4 -2
  74. package/translations/ar.json +287 -0
  75. package/translations/bn.json +287 -0
  76. package/translations/cs.json +287 -0
  77. package/translations/da.json +287 -0
  78. package/translations/de.json +287 -0
  79. package/translations/el.json +287 -0
  80. package/translations/en.json +287 -0
  81. package/translations/es.json +287 -0
  82. package/translations/fa.json +287 -0
  83. package/translations/fi.json +287 -0
  84. package/translations/fr.json +287 -0
  85. package/translations/he.json +287 -0
  86. package/translations/hi.json +287 -0
  87. package/translations/id.json +287 -0
  88. package/translations/it.json +287 -0
  89. package/translations/ja.json +287 -0
  90. package/translations/ko.json +287 -0
  91. package/translations/ms.json +287 -0
  92. package/translations/nl.json +287 -0
  93. package/translations/no.json +287 -0
  94. package/translations/pl.json +287 -0
  95. package/translations/pt.json +287 -0
  96. package/translations/ro.json +287 -0
  97. package/translations/sv.json +287 -0
  98. package/translations/th.json +287 -0
  99. package/translations/tr.json +287 -0
  100. package/translations/uk.json +287 -0
  101. package/translations/vi.json +287 -0
  102. package/translations/zh.json +287 -0
  103. package/dist/chunk-5ONCAANE.mjs +0 -172
  104. package/dist/chunk-5ONCAANE.mjs.map +0 -1
  105. /package/dist/{chunk-ATHYNK3C.mjs.map → chunk-3JTO27MH.mjs.map} +0 -0
  106. /package/dist/{magic-string.es-DJUUJRO3.mjs.map → magic-string.es-7FJ3LUGB.mjs.map} +0 -0
@@ -0,0 +1,325 @@
1
+ 'use client';
2
+ import "./chunk-3JTO27MH.mjs";
3
+
4
+ // translations/id.json
5
+ var Toolbar = {
6
+ annotations: "Annotations",
7
+ history: "History",
8
+ resourceInfo: "Resource Info",
9
+ collaboration: "Collaboration",
10
+ userAccount: "User Account",
11
+ settings: "Settings"
12
+ };
13
+ var ResourceInfoPanel = {
14
+ locale: "Locale",
15
+ notSpecified: "Not specified",
16
+ entityTypeTags: "Entity Type Tags",
17
+ representation: "Representation",
18
+ mediaType: "Media Type",
19
+ byteSize: "Size",
20
+ clone: "Clone",
21
+ cloneDescription: "Generate a shareable clone link for this resource",
22
+ archive: "Archive",
23
+ archiveDescription: "Move this resource to archived status",
24
+ unarchive: "Unarchive",
25
+ unarchiveDescription: "Restore this resource to active status"
26
+ };
27
+ var CollaborationPanel = {
28
+ connectionStatus: "Connection Status",
29
+ live: "Live",
30
+ disconnected: "Disconnected",
31
+ events: "{count} events",
32
+ lastSync: "Last sync:",
33
+ noActivity: "No activity yet",
34
+ justNow: "Just now",
35
+ secondsAgo: "{count} seconds ago",
36
+ minuteAgo: "1 minute ago",
37
+ minutesAgo: "{count} minutes ago",
38
+ hourAgo: "1 hour ago",
39
+ hoursAgo: "{count} hours ago",
40
+ realtimeActive: "Real-time updates are active",
41
+ reconnecting: "Reconnecting to server...",
42
+ sharing: "Sharing",
43
+ collaborationComingSoon: "Collaboration features coming soon"
44
+ };
45
+ var AnnotationHistory = {
46
+ history: "History",
47
+ loading: "Loading...",
48
+ user: "User",
49
+ method: "Method",
50
+ viewOriginal: "View original",
51
+ viewAnnotation: "View annotation: {content}",
52
+ resourceCreated: "Created Resource",
53
+ resourceCloned: "Cloned",
54
+ resourceArchived: "Archived",
55
+ resourceUnarchived: "Unarchived",
56
+ highlightAdded: "Highlight Added",
57
+ highlightRemoved: "Highlight Removed",
58
+ referenceCreated: "Reference Created",
59
+ referenceResolved: "Reference Resolved",
60
+ referenceDeleted: "Reference Deleted",
61
+ entitytagAdded: "Tag Added",
62
+ entitytagRemoved: "Tag Removed",
63
+ assessmentAdded: "Assessment Added",
64
+ assessmentRemoved: "Assessment Removed",
65
+ annotationAdded: "Annotation Added",
66
+ annotationRemoved: "Annotation Removed",
67
+ annotationBodyUpdated: "Annotation Updated",
68
+ jobEvent: "Job Event",
69
+ justNow: "just now",
70
+ minutesAgo: "{count}m ago",
71
+ hoursAgo: "{count}h ago",
72
+ daysAgo: "{count}d ago"
73
+ };
74
+ var CommentsPanel = {
75
+ title: "Comments",
76
+ noComments: "No comments yet. Select text and click Comment to add one.",
77
+ commentPlaceholder: "Type your comment here...",
78
+ save: "Save",
79
+ cancel: "Cancel",
80
+ edit: "Edit",
81
+ detectComments: "Detect Comments",
82
+ instructions: "Instructions",
83
+ optional: "(optional)",
84
+ instructionsPlaceholder: "e.g., Focus on technical terminology...",
85
+ detect: "Detect",
86
+ detecting: "Detecting...",
87
+ toneLabel: "Tone",
88
+ toneOptional: "(optional)",
89
+ toneScholarly: "Scholarly",
90
+ toneExplanatory: "Explanatory",
91
+ toneConversational: "Conversational",
92
+ toneTechnical: "Technical",
93
+ densityLabel: "Density",
94
+ densitySparse: "Sparse",
95
+ densityDense: "Dense"
96
+ };
97
+ var HighlightPanel = {
98
+ title: "Highlights",
99
+ noHighlights: "No highlights yet. Use AI detection to find important passages.",
100
+ detectHighlights: "Detect Highlights",
101
+ instructions: "Instructions",
102
+ optional: "(optional)",
103
+ instructionsPlaceholder: "e.g., Focus on key technical concepts...",
104
+ detect: "Detect",
105
+ detecting: "Detecting...",
106
+ cancel: "Cancel",
107
+ densityLabel: "Density",
108
+ densitySparse: "Sparse",
109
+ densityDense: "Dense"
110
+ };
111
+ var AssessmentPanel = {
112
+ title: "Assessments",
113
+ noAssessments: "No assessments yet. Use AI detection to evaluate passages.",
114
+ detectAssessments: "Detect Assessments",
115
+ instructions: "Instructions",
116
+ optional: "(optional)",
117
+ instructionsPlaceholder: "e.g., Evaluate claims for accuracy and evidence...",
118
+ detect: "Detect",
119
+ detecting: "Detecting...",
120
+ cancel: "Cancel",
121
+ toneLabel: "Tone",
122
+ toneOptional: "(optional)",
123
+ toneAnalytical: "Analytical",
124
+ toneCritical: "Critical",
125
+ toneBalanced: "Balanced",
126
+ toneConstructive: "Constructive",
127
+ densityLabel: "Density",
128
+ densitySparse: "Sparse",
129
+ densityDense: "Dense"
130
+ };
131
+ var TaggingPanel = {
132
+ title: "Tags",
133
+ noTags: "No tags yet. Use AI detection to identify structural roles.",
134
+ detectTags: "Detect Tags",
135
+ selectSchema: "Select Framework",
136
+ schemaLegal: "Legal Analysis (IRAC)",
137
+ schemaScientific: "Scientific Paper (IMRAD)",
138
+ schemaArgument: "Argument Structure (Toulmin)",
139
+ selectCategories: "Select Categories",
140
+ categoryIssue: "Issue",
141
+ categoryRule: "Rule",
142
+ categoryApplication: "Application",
143
+ categoryConclusion: "Conclusion",
144
+ categoryIntroduction: "Introduction",
145
+ categoryMethods: "Methods",
146
+ categoryResults: "Results",
147
+ categoryDiscussion: "Discussion",
148
+ categoryClaim: "Claim",
149
+ categoryEvidence: "Evidence",
150
+ categoryWarrant: "Warrant",
151
+ categoryCounterargument: "Counterargument",
152
+ categoryRebuttal: "Rebuttal",
153
+ detect: "Detect",
154
+ detecting: "Detecting...",
155
+ cancel: "Cancel",
156
+ selectAll: "Select All",
157
+ deselectAll: "Deselect All",
158
+ categoriesSelected: "{count, plural, =0 {No categories selected} =1 {1 category selected} other {# categories selected}}",
159
+ createTagForSelection: "Create Tag for Selection",
160
+ selectCategory: "Select Category",
161
+ chooseCategory: "Choose a category..."
162
+ };
163
+ var UnifiedAnnotationsPanel = {
164
+ statistics: "Statistics",
165
+ highlight: "Highlights",
166
+ reference: "References",
167
+ assessment: "Assessments",
168
+ comment: "Comments",
169
+ tag: "Tags"
170
+ };
171
+ var StatisticsPanel = {
172
+ title: "Statistics",
173
+ highlights: "Highlights",
174
+ comments: "Comments",
175
+ assessments: "Assessments",
176
+ tags: "Tags",
177
+ references: "References",
178
+ stub: "Stub",
179
+ resolved: "Resolved",
180
+ entityTypes: "Entity Types"
181
+ };
182
+ var DetectPanel = {
183
+ title: "Detect References",
184
+ selectEntityTypes: "Entity types:",
185
+ select: "Select",
186
+ deselect: "Deselect",
187
+ noEntityTypes: "No entity types available",
188
+ typesSelected: "{count, plural, =1 {1 type selected} other {# types selected}}",
189
+ startDetection: "Detect",
190
+ found: "{count} found",
191
+ more: "More"
192
+ };
193
+ var DetectionProgressWidget = {
194
+ title: "Detecting Entity References",
195
+ cancelDetection: "Cancel detection",
196
+ found: "{count} found",
197
+ complete: "Detection complete!",
198
+ failed: "Detection failed",
199
+ current: "Current: {entityType}"
200
+ };
201
+ var ReferencesPanel = {
202
+ referencesTitle: "References",
203
+ outgoingReferences: "Outgoing References",
204
+ noReferences: "No references yet",
205
+ stub: "Stub reference (not linked)",
206
+ resolved: "Resolved reference (linked)",
207
+ open: "Open",
208
+ unlink: "Unlink",
209
+ generate: "Generate",
210
+ find: "Find",
211
+ create: "Create",
212
+ incomingReferences: "Incoming References",
213
+ loading: "loading...",
214
+ loadingEllipsis: "Loading...",
215
+ noIncomingReferences: "No incoming references",
216
+ untitledResource: "Untitled Resource",
217
+ noText: "No text",
218
+ createReference: "Create Reference",
219
+ entityTypesOptional: "Entity Types (Optional)",
220
+ imageRegionSelected: "Image region selected",
221
+ includeDescriptiveReferences: "Include descriptive references",
222
+ descriptiveReferencesTooltip: "Also find phrases like 'the CEO', 'the tech giant', 'the physicist' (in addition to names)"
223
+ };
224
+ var KeyboardShortcuts = {
225
+ title: "Keyboard Shortcuts",
226
+ closeDialog: "Close dialog",
227
+ or: "or",
228
+ navigationTitle: "Navigation",
229
+ navOpenSearch: "Open global search",
230
+ navOpenSearchAlt: "Open global search (alternative)",
231
+ navCreateResource: "Create new resource",
232
+ navCloseOverlays: "Close all overlays (double press)",
233
+ navShowHelp: "Show keyboard shortcuts help",
234
+ sidebarTitle: "Knowledge Sidebar",
235
+ sidebarCollapse: "Collapse sidebar",
236
+ sidebarExpand: "Expand sidebar",
237
+ sidebarPickup: "Pick up resource tab (when focused)",
238
+ sidebarMove: "Move resource tab (when dragging)",
239
+ sidebarDrop: "Drop resource tab (when dragging)",
240
+ sidebarCancel: "Cancel drag operation",
241
+ annotationsTitle: "Resource Annotations",
242
+ annotHighlight: "Create highlight from annotation (direct)",
243
+ annotReference: "Open reference popup for annotation",
244
+ annotDelete: "Delete focused annotation",
245
+ annotNavigate: "Navigate through annotations",
246
+ annotNavigateBack: "Navigate annotations backward",
247
+ listsTitle: "Lists & Grids",
248
+ listsFilterNav: "Navigate entity type filters",
249
+ listsGridNav: "Navigate resource grid",
250
+ listsJumpFirst: "Jump to first item",
251
+ listsJumpLast: "Jump to last item",
252
+ searchModalTitle: "In Search Modal",
253
+ searchNav: "Navigate search results",
254
+ searchSelect: "Select result",
255
+ searchClose: "Close search",
256
+ modalTitle: "Modal Controls",
257
+ modalClose: "Close active modal",
258
+ modalNavForward: "Navigate forward through buttons",
259
+ modalNavBackward: "Navigate backward through buttons",
260
+ modalActivate: "Activate focused button",
261
+ accessibilityTitle: "Accessibility",
262
+ a11ySkipLinks: "Navigate to skip links (when at page start)",
263
+ a11yFollowLink: "Follow skip link",
264
+ macNote: "Using Mac keyboard shortcuts. \u2318 is the Command key.",
265
+ windowsNote: "Using Windows/Linux keyboard shortcuts. Ctrl is the Control key.",
266
+ footerHint: "Press {key} anytime to show this help",
267
+ close: "Close"
268
+ };
269
+ var AnnotateToolbar = {
270
+ modeGroup: "Mode",
271
+ browse: "Browse",
272
+ annotate: "Annotate",
273
+ selectionGroup: "Motivation",
274
+ clickGroup: "Click",
275
+ shapeGroup: "Shape",
276
+ none: "None",
277
+ linking: "Reference",
278
+ highlighting: "Highlight",
279
+ assessing: "Assess",
280
+ commenting: "Comment",
281
+ tagging: "Tag",
282
+ detail: "Detail",
283
+ follow: "Follow",
284
+ deleting: "Delete",
285
+ jsonld: "JSON-LD",
286
+ rectangle: "Rectangle",
287
+ circle: "Circle",
288
+ polygon: "Polygon"
289
+ };
290
+ var id_default = {
291
+ Toolbar,
292
+ ResourceInfoPanel,
293
+ CollaborationPanel,
294
+ AnnotationHistory,
295
+ CommentsPanel,
296
+ HighlightPanel,
297
+ AssessmentPanel,
298
+ TaggingPanel,
299
+ UnifiedAnnotationsPanel,
300
+ StatisticsPanel,
301
+ DetectPanel,
302
+ DetectionProgressWidget,
303
+ ReferencesPanel,
304
+ KeyboardShortcuts,
305
+ AnnotateToolbar
306
+ };
307
+ export {
308
+ AnnotateToolbar,
309
+ AnnotationHistory,
310
+ AssessmentPanel,
311
+ CollaborationPanel,
312
+ CommentsPanel,
313
+ DetectPanel,
314
+ DetectionProgressWidget,
315
+ HighlightPanel,
316
+ KeyboardShortcuts,
317
+ ReferencesPanel,
318
+ ResourceInfoPanel,
319
+ StatisticsPanel,
320
+ TaggingPanel,
321
+ Toolbar,
322
+ UnifiedAnnotationsPanel,
323
+ id_default as default
324
+ };
325
+ //# sourceMappingURL=id-JPRBNCGS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../translations/id.json"],"sourcesContent":["{\n \"Toolbar\": {\n \"annotations\": \"Annotations\",\n \"history\": \"History\",\n \"resourceInfo\": \"Resource Info\",\n \"collaboration\": \"Collaboration\",\n \"userAccount\": \"User Account\",\n \"settings\": \"Settings\"\n },\n \"ResourceInfoPanel\": {\n \"locale\": \"Locale\",\n \"notSpecified\": \"Not specified\",\n \"entityTypeTags\": \"Entity Type Tags\",\n \"representation\": \"Representation\",\n \"mediaType\": \"Media Type\",\n \"byteSize\": \"Size\",\n \"clone\": \"Clone\",\n \"cloneDescription\": \"Generate a shareable clone link for this resource\",\n \"archive\": \"Archive\",\n \"archiveDescription\": \"Move this resource to archived status\",\n \"unarchive\": \"Unarchive\",\n \"unarchiveDescription\": \"Restore this resource to active status\"\n },\n \"CollaborationPanel\": {\n \"connectionStatus\": \"Connection Status\",\n \"live\": \"Live\",\n \"disconnected\": \"Disconnected\",\n \"events\": \"{count} events\",\n \"lastSync\": \"Last sync:\",\n \"noActivity\": \"No activity yet\",\n \"justNow\": \"Just now\",\n \"secondsAgo\": \"{count} seconds ago\",\n \"minuteAgo\": \"1 minute ago\",\n \"minutesAgo\": \"{count} minutes ago\",\n \"hourAgo\": \"1 hour ago\",\n \"hoursAgo\": \"{count} hours ago\",\n \"realtimeActive\": \"Real-time updates are active\",\n \"reconnecting\": \"Reconnecting to server...\",\n \"sharing\": \"Sharing\",\n \"collaborationComingSoon\": \"Collaboration features coming soon\"\n },\n \"AnnotationHistory\": {\n \"history\": \"History\",\n \"loading\": \"Loading...\",\n \"user\": \"User\",\n \"method\": \"Method\",\n \"viewOriginal\": \"View original\",\n \"viewAnnotation\": \"View annotation: {content}\",\n \"resourceCreated\": \"Created Resource\",\n \"resourceCloned\": \"Cloned\",\n \"resourceArchived\": \"Archived\",\n \"resourceUnarchived\": \"Unarchived\",\n \"highlightAdded\": \"Highlight Added\",\n \"highlightRemoved\": \"Highlight Removed\",\n \"referenceCreated\": \"Reference Created\",\n \"referenceResolved\": \"Reference Resolved\",\n \"referenceDeleted\": \"Reference Deleted\",\n \"entitytagAdded\": \"Tag Added\",\n \"entitytagRemoved\": \"Tag Removed\",\n \"assessmentAdded\": \"Assessment Added\",\n \"assessmentRemoved\": \"Assessment Removed\",\n \"annotationAdded\": \"Annotation Added\",\n \"annotationRemoved\": \"Annotation Removed\",\n \"annotationBodyUpdated\": \"Annotation Updated\",\n \"jobEvent\": \"Job Event\",\n \"justNow\": \"just now\",\n \"minutesAgo\": \"{count}m ago\",\n \"hoursAgo\": \"{count}h ago\",\n \"daysAgo\": \"{count}d ago\"\n },\n \"CommentsPanel\": {\n \"title\": \"Comments\",\n \"noComments\": \"No comments yet. Select text and click Comment to add one.\",\n \"commentPlaceholder\": \"Type your comment here...\",\n \"save\": \"Save\",\n \"cancel\": \"Cancel\",\n \"edit\": \"Edit\",\n \"detectComments\": \"Detect Comments\",\n \"instructions\": \"Instructions\",\n \"optional\": \"(optional)\",\n \"instructionsPlaceholder\": \"e.g., Focus on technical terminology...\",\n \"detect\": \"Detect\",\n \"detecting\": \"Detecting...\",\n \"toneLabel\": \"Tone\",\n \"toneOptional\": \"(optional)\",\n \"toneScholarly\": \"Scholarly\",\n \"toneExplanatory\": \"Explanatory\",\n \"toneConversational\": \"Conversational\",\n \"toneTechnical\": \"Technical\",\n \"densityLabel\": \"Density\",\n \"densitySparse\": \"Sparse\",\n \"densityDense\": \"Dense\"\n },\n \"HighlightPanel\": {\n \"title\": \"Highlights\",\n \"noHighlights\": \"No highlights yet. Use AI detection to find important passages.\",\n \"detectHighlights\": \"Detect Highlights\",\n \"instructions\": \"Instructions\",\n \"optional\": \"(optional)\",\n \"instructionsPlaceholder\": \"e.g., Focus on key technical concepts...\",\n \"detect\": \"Detect\",\n \"detecting\": \"Detecting...\",\n \"cancel\": \"Cancel\",\n \"densityLabel\": \"Density\",\n \"densitySparse\": \"Sparse\",\n \"densityDense\": \"Dense\"\n },\n \"AssessmentPanel\": {\n \"title\": \"Assessments\",\n \"noAssessments\": \"No assessments yet. Use AI detection to evaluate passages.\",\n \"detectAssessments\": \"Detect Assessments\",\n \"instructions\": \"Instructions\",\n \"optional\": \"(optional)\",\n \"instructionsPlaceholder\": \"e.g., Evaluate claims for accuracy and evidence...\",\n \"detect\": \"Detect\",\n \"detecting\": \"Detecting...\",\n \"cancel\": \"Cancel\",\n \"toneLabel\": \"Tone\",\n \"toneOptional\": \"(optional)\",\n \"toneAnalytical\": \"Analytical\",\n \"toneCritical\": \"Critical\",\n \"toneBalanced\": \"Balanced\",\n \"toneConstructive\": \"Constructive\",\n \"densityLabel\": \"Density\",\n \"densitySparse\": \"Sparse\",\n \"densityDense\": \"Dense\"\n },\n \"TaggingPanel\": {\n \"title\": \"Tags\",\n \"noTags\": \"No tags yet. Use AI detection to identify structural roles.\",\n \"detectTags\": \"Detect Tags\",\n \"selectSchema\": \"Select Framework\",\n \"schemaLegal\": \"Legal Analysis (IRAC)\",\n \"schemaScientific\": \"Scientific Paper (IMRAD)\",\n \"schemaArgument\": \"Argument Structure (Toulmin)\",\n \"selectCategories\": \"Select Categories\",\n \"categoryIssue\": \"Issue\",\n \"categoryRule\": \"Rule\",\n \"categoryApplication\": \"Application\",\n \"categoryConclusion\": \"Conclusion\",\n \"categoryIntroduction\": \"Introduction\",\n \"categoryMethods\": \"Methods\",\n \"categoryResults\": \"Results\",\n \"categoryDiscussion\": \"Discussion\",\n \"categoryClaim\": \"Claim\",\n \"categoryEvidence\": \"Evidence\",\n \"categoryWarrant\": \"Warrant\",\n \"categoryCounterargument\": \"Counterargument\",\n \"categoryRebuttal\": \"Rebuttal\",\n \"detect\": \"Detect\",\n \"detecting\": \"Detecting...\",\n \"cancel\": \"Cancel\",\n \"selectAll\": \"Select All\",\n \"deselectAll\": \"Deselect All\",\n \"categoriesSelected\": \"{count, plural, =0 {No categories selected} =1 {1 category selected} other {# categories selected}}\",\n \"createTagForSelection\": \"Create Tag for Selection\",\n \"selectCategory\": \"Select Category\",\n \"chooseCategory\": \"Choose a category...\"\n },\n \"UnifiedAnnotationsPanel\": {\n \"statistics\": \"Statistics\",\n \"highlight\": \"Highlights\",\n \"reference\": \"References\",\n \"assessment\": \"Assessments\",\n \"comment\": \"Comments\",\n \"tag\": \"Tags\"\n },\n \"StatisticsPanel\": {\n \"title\": \"Statistics\",\n \"highlights\": \"Highlights\",\n \"comments\": \"Comments\",\n \"assessments\": \"Assessments\",\n \"tags\": \"Tags\",\n \"references\": \"References\",\n \"stub\": \"Stub\",\n \"resolved\": \"Resolved\",\n \"entityTypes\": \"Entity Types\"\n },\n \"DetectPanel\": {\n \"title\": \"Detect References\",\n \"selectEntityTypes\": \"Entity types:\",\n \"select\": \"Select\",\n \"deselect\": \"Deselect\",\n \"noEntityTypes\": \"No entity types available\",\n \"typesSelected\": \"{count, plural, =1 {1 type selected} other {# types selected}}\",\n \"startDetection\": \"Detect\",\n \"found\": \"{count} found\",\n \"more\": \"More\"\n },\n \"DetectionProgressWidget\": {\n \"title\": \"Detecting Entity References\",\n \"cancelDetection\": \"Cancel detection\",\n \"found\": \"{count} found\",\n \"complete\": \"Detection complete!\",\n \"failed\": \"Detection failed\",\n \"current\": \"Current: {entityType}\"\n },\n \"ReferencesPanel\": {\n \"referencesTitle\": \"References\",\n \"outgoingReferences\": \"Outgoing References\",\n \"noReferences\": \"No references yet\",\n \"stub\": \"Stub reference (not linked)\",\n \"resolved\": \"Resolved reference (linked)\",\n \"open\": \"Open\",\n \"unlink\": \"Unlink\",\n \"generate\": \"Generate\",\n \"find\": \"Find\",\n \"create\": \"Create\",\n \"incomingReferences\": \"Incoming References\",\n \"loading\": \"loading...\",\n \"loadingEllipsis\": \"Loading...\",\n \"noIncomingReferences\": \"No incoming references\",\n \"untitledResource\": \"Untitled Resource\",\n \"noText\": \"No text\",\n \"createReference\": \"Create Reference\",\n \"entityTypesOptional\": \"Entity Types (Optional)\",\n \"imageRegionSelected\": \"Image region selected\",\n \"includeDescriptiveReferences\": \"Include descriptive references\",\n \"descriptiveReferencesTooltip\": \"Also find phrases like 'the CEO', 'the tech giant', 'the physicist' (in addition to names)\"\n },\n \"KeyboardShortcuts\": {\n \"title\": \"Keyboard Shortcuts\",\n \"closeDialog\": \"Close dialog\",\n \"or\": \"or\",\n \"navigationTitle\": \"Navigation\",\n \"navOpenSearch\": \"Open global search\",\n \"navOpenSearchAlt\": \"Open global search (alternative)\",\n \"navCreateResource\": \"Create new resource\",\n \"navCloseOverlays\": \"Close all overlays (double press)\",\n \"navShowHelp\": \"Show keyboard shortcuts help\",\n \"sidebarTitle\": \"Knowledge Sidebar\",\n \"sidebarCollapse\": \"Collapse sidebar\",\n \"sidebarExpand\": \"Expand sidebar\",\n \"sidebarPickup\": \"Pick up resource tab (when focused)\",\n \"sidebarMove\": \"Move resource tab (when dragging)\",\n \"sidebarDrop\": \"Drop resource tab (when dragging)\",\n \"sidebarCancel\": \"Cancel drag operation\",\n \"annotationsTitle\": \"Resource Annotations\",\n \"annotHighlight\": \"Create highlight from annotation (direct)\",\n \"annotReference\": \"Open reference popup for annotation\",\n \"annotDelete\": \"Delete focused annotation\",\n \"annotNavigate\": \"Navigate through annotations\",\n \"annotNavigateBack\": \"Navigate annotations backward\",\n \"listsTitle\": \"Lists & Grids\",\n \"listsFilterNav\": \"Navigate entity type filters\",\n \"listsGridNav\": \"Navigate resource grid\",\n \"listsJumpFirst\": \"Jump to first item\",\n \"listsJumpLast\": \"Jump to last item\",\n \"searchModalTitle\": \"In Search Modal\",\n \"searchNav\": \"Navigate search results\",\n \"searchSelect\": \"Select result\",\n \"searchClose\": \"Close search\",\n \"modalTitle\": \"Modal Controls\",\n \"modalClose\": \"Close active modal\",\n \"modalNavForward\": \"Navigate forward through buttons\",\n \"modalNavBackward\": \"Navigate backward through buttons\",\n \"modalActivate\": \"Activate focused button\",\n \"accessibilityTitle\": \"Accessibility\",\n \"a11ySkipLinks\": \"Navigate to skip links (when at page start)\",\n \"a11yFollowLink\": \"Follow skip link\",\n \"macNote\": \"Using Mac keyboard shortcuts. ⌘ is the Command key.\",\n \"windowsNote\": \"Using Windows/Linux keyboard shortcuts. Ctrl is the Control key.\",\n \"footerHint\": \"Press {key} anytime to show this help\",\n \"close\": \"Close\"\n },\n \"AnnotateToolbar\": {\n \"modeGroup\": \"Mode\",\n \"browse\": \"Browse\",\n \"annotate\": \"Annotate\",\n \"selectionGroup\": \"Motivation\",\n \"clickGroup\": \"Click\",\n \"shapeGroup\": \"Shape\",\n \"none\": \"None\",\n \"linking\": \"Reference\",\n \"highlighting\": \"Highlight\",\n \"assessing\": \"Assess\",\n \"commenting\": \"Comment\",\n \"tagging\": \"Tag\",\n \"detail\": \"Detail\",\n \"follow\": \"Follow\",\n \"deleting\": \"Delete\",\n \"jsonld\": \"JSON-LD\",\n \"rectangle\": \"Rectangle\",\n \"circle\": \"Circle\",\n \"polygon\": \"Polygon\"\n }\n}\n"],"mappings":";;;;AACE,cAAW;AAAA,EACT,aAAe;AAAA,EACf,SAAW;AAAA,EACX,cAAgB;AAAA,EAChB,eAAiB;AAAA,EACjB,aAAe;AAAA,EACf,UAAY;AACd;AACA,wBAAqB;AAAA,EACnB,QAAU;AAAA,EACV,cAAgB;AAAA,EAChB,gBAAkB;AAAA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AA,EAoBA;AAAA,EAgCA;AAAA,EAQA;AAAA,EAWA;AAAA,EAWA;AAAA,EAQA;AAAA,EAuBA;AAAA,EA6CA;AAqBF;","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _semiont_api_client from '@semiont/api-client';
2
2
  import { components, ResourceUri, Selector, GenerationContext, SemiontApiClient, AnnotationUri, ResourceAnnotationUri, ValidationResult, DetectionProgress as DetectionProgress$1, GenerationProgress as GenerationProgress$1, ResourceEvent as ResourceEvent$1, StoredEvent, paths } from '@semiont/api-client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { A as ApiClientManager, O as OpenResourcesManager, S as SessionManager, T as TranslationManager } from './TranslationManager-8nrCwJEY.mjs';
5
- export { a as OpenResource, b as SessionState } from './TranslationManager-8nrCwJEY.mjs';
4
+ import { A as ApiClientManager, O as OpenResourcesManager, S as SessionManager, T as TranslationManager } from './TranslationManager-Co_5fSxl.mjs';
5
+ export { a as OpenResource, b as SessionState } from './TranslationManager-Co_5fSxl.mjs';
6
6
  import * as React$1 from 'react';
7
7
  import React__default, { MutableRefObject, KeyboardEvent as KeyboardEvent$1, ReactNode, Component, ErrorInfo } from 'react';
8
8
  import * as _tanstack_react_query from '@tanstack/react-query';
@@ -15,7 +15,6 @@ import { Root as Root$1 } from 'mdast';
15
15
  import { VFile } from 'vfile';
16
16
  import { TagSchema } from '@semiont/ontology';
17
17
  export { TAG_SCHEMAS, TagCategory, TagSchema, getAllTagSchemas, getSchemaCategory as getTagCategory, getTagSchema, getTagSchemasByDomain, isValidCategory } from '@semiont/ontology';
18
- import * as next_auth from 'next-auth';
19
18
 
20
19
  type Annotation$o = components['schemas']['Annotation'];
21
20
  /**
@@ -1004,56 +1003,6 @@ declare function useAnnotationPanel<T extends Annotation$j>(annotations: T[], ho
1004
1003
  handleAnnotationRef: (id: string, el: HTMLElement | null) => void;
1005
1004
  };
1006
1005
 
1007
- /**
1008
- * Enhanced authentication hook with validation and user information
1009
- */
1010
- declare function useAuth(): {
1011
- session: next_auth.Session | null;
1012
- user: {
1013
- name?: string | null;
1014
- email?: string | null;
1015
- image?: string | null;
1016
- isAdmin?: boolean;
1017
- } | undefined;
1018
- backendUser: {
1019
- id: string;
1020
- email: string;
1021
- name?: string | undefined;
1022
- image?: string | undefined;
1023
- domain: string;
1024
- isAdmin: boolean;
1025
- isModerator: boolean;
1026
- termsAcceptedAt?: string | null;
1027
- } | undefined;
1028
- isLoading: boolean;
1029
- isAuthenticated: boolean;
1030
- hasValidBackendToken: boolean;
1031
- userDomain: string | undefined;
1032
- displayName: string;
1033
- avatarUrl: string | null | undefined;
1034
- isAdmin: boolean;
1035
- isModerator: boolean;
1036
- isFullyAuthenticated: boolean;
1037
- };
1038
- /**
1039
- * Hook for getting user preferences and settings
1040
- */
1041
- declare function useUserPreferences(): {
1042
- theme: "light" | "dark" | "system";
1043
- language: string;
1044
- timezone: string;
1045
- emailNotifications: boolean;
1046
- };
1047
- /**
1048
- * Hook for checking user permissions (future expansion)
1049
- */
1050
- declare function usePermissions(): {
1051
- canRead: boolean;
1052
- canWrite: boolean;
1053
- canAdmin: boolean;
1054
- canManageUsers: boolean;
1055
- };
1056
-
1057
1006
  /**
1058
1007
  * Creates a debounced version of a callback function
1059
1008
  *
@@ -1564,22 +1513,54 @@ declare function SessionProvider({ sessionManager, children }: {
1564
1513
  */
1565
1514
  declare function useSessionContext(): SessionManager;
1566
1515
 
1516
+ declare const AVAILABLE_LOCALES: readonly ["ar", "bn", "cs", "da", "de", "el", "en", "es", "fa", "fi", "fr", "he", "hi", "id", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "ro", "sv", "th", "tr", "uk", "vi", "zh"];
1517
+ type AvailableLocale = typeof AVAILABLE_LOCALES[number];
1567
1518
  interface TranslationProviderProps {
1568
- translationManager: TranslationManager;
1519
+ /**
1520
+ * Option 1: Provide a complete TranslationManager implementation
1521
+ */
1522
+ translationManager?: TranslationManager;
1523
+ /**
1524
+ * Option 2: Use built-in translations by specifying a locale
1525
+ * When adding new locales, just add the JSON file and update AVAILABLE_LOCALES
1526
+ */
1527
+ locale?: string;
1528
+ /**
1529
+ * Loading component to show while translations are being loaded
1530
+ * Only relevant when using dynamic locale loading
1531
+ */
1532
+ loadingComponent?: ReactNode;
1569
1533
  children: ReactNode;
1570
1534
  }
1571
1535
  /**
1572
- * Provider for translation management
1573
- * Apps must provide a TranslationManager implementation
1536
+ * Provider for translation management with dynamic loading
1537
+ *
1538
+ * Three modes of operation:
1539
+ * 1. No provider: Components use default English strings
1540
+ * 2. With locale prop: Dynamically loads translations for that locale
1541
+ * 3. With translationManager: Use custom translation implementation
1574
1542
  */
1575
- declare function TranslationProvider({ translationManager, children, }: TranslationProviderProps): react_jsx_runtime.JSX.Element;
1543
+ declare function TranslationProvider({ translationManager, locale, loadingComponent, children, }: TranslationProviderProps): react_jsx_runtime.JSX.Element;
1576
1544
  /**
1577
1545
  * Hook to access translations within a namespace
1578
- * Must be used within a TranslationProvider
1546
+ *
1547
+ * Works in three modes:
1548
+ * 1. Without provider: Returns default English translations
1549
+ * 2. With provider using locale: Returns dynamically loaded translations for that locale
1550
+ * 3. With custom provider: Uses the custom translation manager
1551
+ *
1579
1552
  * @param namespace - Translation namespace (e.g., 'Toolbar', 'ResourceViewer')
1580
1553
  * @returns Function to translate keys within the namespace
1581
1554
  */
1582
- declare function useTranslations(namespace: string): (key: string) => string;
1555
+ declare function useTranslations(namespace: string): (key: string, params?: Record<string, any>) => string;
1556
+ /**
1557
+ * Hook to preload translations for a locale
1558
+ * Useful for preloading translations before navigation
1559
+ */
1560
+ declare function usePreloadTranslations(): {
1561
+ preload: (locale: string) => Promise<boolean>;
1562
+ isLoaded: (locale: string) => boolean;
1563
+ };
1583
1564
 
1584
1565
  type Annotation$h = components['schemas']['Annotation'];
1585
1566
  interface TextSegment {
@@ -1640,7 +1621,7 @@ declare class ErrorBoundary extends Component<Props$a, State> {
1640
1621
  static getDerivedStateFromError(error: Error): State;
1641
1622
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
1642
1623
  handleReset: () => void;
1643
- render(): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<React__default.AwaitedReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
1624
+ render(): string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
1644
1625
  }
1645
1626
  /**
1646
1627
  * Specialized error boundary for async components
@@ -1811,8 +1792,6 @@ interface ProposeEntitiesModalProps {
1811
1792
  }
1812
1793
  declare function ProposeEntitiesModal({ isOpen, onConfirm, onCancel }: ProposeEntitiesModalProps): react_jsx_runtime.JSX.Element;
1813
1794
 
1814
- declare function SessionExpiredModal(): react_jsx_runtime.JSX.Element;
1815
-
1816
1795
  type Annotation$c = components['schemas']['Annotation'];
1817
1796
 
1818
1797
  interface Props$8 {
@@ -2301,7 +2280,12 @@ declare function NavigationMenu({ Link, routes, t, isAdmin, isModerator, brandin
2301
2280
  */
2302
2281
  declare function SkipLinks(): react_jsx_runtime.JSX.Element;
2303
2282
 
2304
- declare function StatusDisplay(): react_jsx_runtime.JSX.Element;
2283
+ interface StatusDisplayProps {
2284
+ isFullyAuthenticated?: boolean;
2285
+ isAuthenticated?: boolean;
2286
+ hasValidBackendToken?: boolean;
2287
+ }
2288
+ declare function StatusDisplay({ isFullyAuthenticated, isAuthenticated, hasValidBackendToken }: StatusDisplayProps): react_jsx_runtime.JSX.Element;
2305
2289
 
2306
2290
  declare function SessionTimer(): react_jsx_runtime.JSX.Element | null;
2307
2291
 
@@ -2334,8 +2318,11 @@ interface UnifiedHeaderProps {
2334
2318
  showAuthLinks?: boolean;
2335
2319
  brandingLink?: string;
2336
2320
  variant?: 'standalone' | 'embedded' | 'floating';
2321
+ isAuthenticated?: boolean;
2322
+ isAdmin?: boolean;
2323
+ isModerator?: boolean;
2337
2324
  }
2338
- declare function UnifiedHeader({ Link, routes, t, tHome, showBranding, showAuthLinks, brandingLink, variant }: UnifiedHeaderProps): react_jsx_runtime.JSX.Element;
2325
+ declare function UnifiedHeader({ Link, routes, t, tHome, showBranding, showAuthLinks, brandingLink, variant, isAuthenticated, isAdmin, isModerator }: UnifiedHeaderProps): react_jsx_runtime.JSX.Element;
2339
2326
 
2340
2327
  interface LeftSidebarProps {
2341
2328
  Link: React__default.ComponentType<LinkComponentProps>;
@@ -2346,8 +2333,11 @@ interface LeftSidebarProps {
2346
2333
  brandingLink?: string;
2347
2334
  collapsible?: boolean;
2348
2335
  storageKey?: string;
2336
+ isAuthenticated?: boolean;
2337
+ isAdmin?: boolean;
2338
+ isModerator?: boolean;
2349
2339
  }
2350
- declare function LeftSidebar({ Link, routes, t, tHome, children, brandingLink, collapsible, storageKey }: LeftSidebarProps): react_jsx_runtime.JSX.Element;
2340
+ declare function LeftSidebar({ Link, routes, t, tHome, children, brandingLink, collapsible, storageKey, isAuthenticated, isAdmin, isModerator }: LeftSidebarProps): react_jsx_runtime.JSX.Element;
2351
2341
 
2352
2342
  interface PageLayoutProps {
2353
2343
  Link: React__default.ComponentType<LinkComponentProps>;
@@ -2551,17 +2541,17 @@ interface SignInFormProps {
2551
2541
  */
2552
2542
  onGoogleSignIn: () => Promise<void>;
2553
2543
  /**
2554
- * Callback when user submits local credentials
2544
+ * Callback when user submits email/password credentials
2555
2545
  */
2556
- onLocalSignIn?: ((email: string, password: string) => Promise<void>) | undefined;
2546
+ onCredentialsSignIn?: ((email: string, password: string) => Promise<void>) | undefined;
2557
2547
  /**
2558
2548
  * Error message to display (if any)
2559
2549
  */
2560
2550
  error?: string | null;
2561
2551
  /**
2562
- * Whether to show local auth form
2552
+ * Whether to show email/password auth form
2563
2553
  */
2564
- showLocalAuth?: boolean;
2554
+ showCredentialsAuth?: boolean;
2565
2555
  /**
2566
2556
  * Link component for routing - passed from parent
2567
2557
  */
@@ -2578,21 +2568,22 @@ interface SignInFormProps {
2578
2568
  emailPlaceholder: string;
2579
2569
  passwordLabel: string;
2580
2570
  passwordPlaceholder: string;
2581
- signInLocal: string;
2571
+ signInWithCredentials: string;
2582
2572
  or: string;
2583
- localAuthEnabled: string;
2573
+ credentialsAuthEnabled: string;
2584
2574
  approvedDomainsOnly: string;
2585
2575
  backToHome: string;
2586
2576
  learnMore: string;
2587
2577
  signUpInstead: string;
2588
2578
  errorEmailRequired: string;
2589
2579
  errorPasswordRequired: string;
2580
+ tagline: string;
2590
2581
  };
2591
2582
  }
2592
2583
  /**
2593
2584
  * SignInForm - Main sign-in component
2594
2585
  */
2595
- declare function SignInForm({ onGoogleSignIn, onLocalSignIn, error, showLocalAuth, Link, translations: t, }: SignInFormProps): react_jsx_runtime.JSX.Element;
2586
+ declare function SignInForm({ onGoogleSignIn, onCredentialsSignIn, error, showCredentialsAuth, Link, translations: t, }: SignInFormProps): react_jsx_runtime.JSX.Element;
2596
2587
 
2597
2588
  interface SignUpFormProps {
2598
2589
  /**
@@ -3009,4 +3000,4 @@ interface ResourceViewerPageProps {
3009
3000
  }
3010
3001
  declare function ResourceViewerPage({ resource, rUri, content, contentLoading, annotations, referencedBy, referencedByLoading, allEntityTypes, locale, theme, onThemeChange, showLineNumbers, onLineNumbersToggle, activePanel, onPanelToggle, setActivePanel, onUpdateDocumentTags, onArchive, onUnarchive, onClone, onUpdateAnnotationBody, onRefetchAnnotations, onCreateAnnotation, onDeleteAnnotation, onTriggerSparkleAnimation, onClearNewAnnotationId, showSuccess, showError, onAnnotationAdded, onAnnotationRemoved, onAnnotationBodyUpdated, onDocumentArchived, onDocumentUnarchived, onEntityTagAdded, onEntityTagRemoved, onEventError, cacheManager, client, Link, routes, ToolbarPanels, SearchResourcesModal, GenerationConfigModal, }: ResourceViewerPageProps): react_jsx_runtime.JSX.Element;
3011
3002
 
3012
- export { ANNOTATORS, AUTH_EVENTS, AdminDevOpsPage, type AdminDevOpsPageProps, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateToolbar, AnnotateView, type Annotation$m as Annotation, type AnnotationConfig, type AnnotationCreationHandler, type AnnotationHandlers, AnnotationHistory, type AnnotationManager, AnnotationOverlay, AnnotationProvider, type AnnotationProviderProps, AnnotationUIProvider, type AnnotationUIProviderProps, type AnnotationUIState, type AnnotationsCollection, type Annotator, ApiClientManager, ApiClientProvider, type ApiClientProviderProps, AssessmentEntry, AssessmentPanel, AsyncErrorBoundary, AuthErrorDisplay, type AuthErrorDisplayProps, type AuthEventDetail, type AuthEventType, BrowseView, type CacheManager, CacheProvider, type CacheProviderProps, type ClickAction, CodeMirrorRenderer, CollaborationPanel, CommentEntry, CommentsPanel, ComposeLoadingState, type ComposeLoadingStateProps, type CreateAnnotationParams, type DeleteAnnotationParams, DetectSection, type DetectionConfig, type DetectionProgress, DetectionProgressWidget, type DevOpsFeature, type DrawingMode, EntityTagsPage, type EntityTagsPageProps, EntityTypeBadges, ErrorBoundary, Footer, type GenerationOptions, type GenerationProgress, HighlightEntry, HighlightPanel, HistoryEvent, ImageURLSchema, ImageViewer, JsonLdPanel, JsonLdView, type KeyboardShortcut, KeyboardShortcutsHelpModal, LeftSidebar, type LinkComponentProps, LiveRegionProvider, type Motivation$2 as Motivation, NavigationMenu, type OAuthProvider, type OAuthUser, OAuthUserSchema, OpenResourcesManager, OpenResourcesProvider, PageLayout, PanelHeader, PopupContainer, PopupHeader, type PreparedAnnotation, ProposeEntitiesModal, QUERY_KEYS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferencesPanel, ResourceAnnotationsProvider, ResourceCard, type ResourceCardProps, ResourceComposePage, type ResourceComposePageProps, ResourceDiscoveryPage, type ResourceDiscoveryPageProps, ResourceErrorState, type ResourceErrorStateProps, type ResourceEvent, ResourceInfoPanel, ResourceLoadingState, ResourceTagsInline, ResourceViewer, ResourceViewerPage, type ResourceViewerPageProps, type RouteBuilder, type SaveResourceParams, SelectedTextDisplay, type SelectionData, type SelectionMotivation, SemiontBranding, type SemiontResource$2 as SemiontResource, SessionExpiredModal, SessionExpiryBanner, SessionManager, SessionProvider, SessionTimer, type ShapeType, SignInForm, type SignInFormProps, SignUpForm, type SignUpFormProps, SkipLinks, StatisticsPanel, StatusDisplay, type StreamStatus, SvgDrawingCanvas, TagEntry, TagSchemasPage, type TagSchemasPageProps, TaggingPanel, type TextSegment, type TextSelection, ToastContainer, type ToastMessage, ToastProvider, type ToastType, Toolbar, type ToolbarPanelType, TranslationManager, TranslationProvider, type TranslationProviderProps, type UICreateAnnotationParams, UnifiedAnnotationsPanel, UnifiedHeader, UserMenuSkeleton, WelcomePage, type WelcomePageProps, buttonStyles, createCancelDetectionHandler, createDetectionHandler, dispatch401Error, dispatch403Error, dispatchAuthEvent, getAnnotationClassName, getAnnotationInternalType, getAnnotator, getResourceIcon, getShortcutDisplay, groupAnnotationsByType, jsonLightHighlightStyle, jsonLightTheme, onAuthEvent, rehypeRenderAnnotations, remarkAnnotations, sanitizeImageURL, supportsDetection, useAdmin, useAnnotationManager, useAnnotationPanel, useAnnotationUI, useAnnotations, useApiClient, useAuth, useAuthApi, useCacheManager, useDebounce, useDebouncedCallback, useDetectionProgress, useDocumentAnnouncements, useDoubleKeyPress, useDropdown, useEntityTypes, useFormValidation, useFormattedTime, useGenerationProgress, useHealth, useIsTyping, useKeyboardShortcuts, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useOpenResources, usePermissions, useResourceAnnotations, useResourceEvents, useResources, useRovingTabIndex, useSearchAnnouncements, useSessionContext, useSessionExpiry, useTheme, useToast, useToolbar, useTranslations, useUserPreferences, validationRules, withHandlers };
3003
+ export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateToolbar, AnnotateView, type Annotation$m as Annotation, type AnnotationConfig, type AnnotationCreationHandler, type AnnotationHandlers, AnnotationHistory, type AnnotationManager, AnnotationOverlay, AnnotationProvider, type AnnotationProviderProps, AnnotationUIProvider, type AnnotationUIProviderProps, type AnnotationUIState, type AnnotationsCollection, type Annotator, ApiClientManager, ApiClientProvider, type ApiClientProviderProps, AssessmentEntry, AssessmentPanel, AsyncErrorBoundary, AuthErrorDisplay, type AuthErrorDisplayProps, type AuthEventDetail, type AuthEventType, type AvailableLocale, BrowseView, type CacheManager, CacheProvider, type CacheProviderProps, type ClickAction, CodeMirrorRenderer, CollaborationPanel, CommentEntry, CommentsPanel, ComposeLoadingState, type ComposeLoadingStateProps, type CreateAnnotationParams, type DeleteAnnotationParams, DetectSection, type DetectionConfig, type DetectionProgress, DetectionProgressWidget, type DevOpsFeature, type DrawingMode, EntityTagsPage, type EntityTagsPageProps, EntityTypeBadges, ErrorBoundary, Footer, type GenerationOptions, type GenerationProgress, HighlightEntry, HighlightPanel, HistoryEvent, ImageURLSchema, ImageViewer, JsonLdPanel, JsonLdView, type KeyboardShortcut, KeyboardShortcutsHelpModal, LeftSidebar, type LinkComponentProps, LiveRegionProvider, type Motivation$2 as Motivation, NavigationMenu, type OAuthProvider, type OAuthUser, OAuthUserSchema, OpenResourcesManager, OpenResourcesProvider, PageLayout, PanelHeader, PopupContainer, PopupHeader, type PreparedAnnotation, ProposeEntitiesModal, QUERY_KEYS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferencesPanel, ResourceAnnotationsProvider, ResourceCard, type ResourceCardProps, ResourceComposePage, type ResourceComposePageProps, ResourceDiscoveryPage, type ResourceDiscoveryPageProps, ResourceErrorState, type ResourceErrorStateProps, type ResourceEvent, ResourceInfoPanel, ResourceLoadingState, ResourceTagsInline, ResourceViewer, ResourceViewerPage, type ResourceViewerPageProps, type RouteBuilder, type SaveResourceParams, SelectedTextDisplay, type SelectionData, type SelectionMotivation, SemiontBranding, type SemiontResource$2 as SemiontResource, SessionExpiryBanner, SessionManager, SessionProvider, SessionTimer, type ShapeType, SignInForm, type SignInFormProps, SignUpForm, type SignUpFormProps, SkipLinks, StatisticsPanel, StatusDisplay, type StreamStatus, SvgDrawingCanvas, TagEntry, TagSchemasPage, type TagSchemasPageProps, TaggingPanel, type TextSegment, type TextSelection, ToastContainer, type ToastMessage, ToastProvider, type ToastType, Toolbar, type ToolbarPanelType, TranslationManager, TranslationProvider, type TranslationProviderProps, type UICreateAnnotationParams, UnifiedAnnotationsPanel, UnifiedHeader, UserMenuSkeleton, WelcomePage, type WelcomePageProps, buttonStyles, createCancelDetectionHandler, createDetectionHandler, dispatch401Error, dispatch403Error, dispatchAuthEvent, getAnnotationClassName, getAnnotationInternalType, getAnnotator, getResourceIcon, getShortcutDisplay, groupAnnotationsByType, jsonLightHighlightStyle, jsonLightTheme, onAuthEvent, rehypeRenderAnnotations, remarkAnnotations, sanitizeImageURL, supportsDetection, useAdmin, useAnnotationManager, useAnnotationPanel, useAnnotationUI, useAnnotations, useApiClient, useAuthApi, useCacheManager, useDebounce, useDebouncedCallback, useDetectionProgress, useDocumentAnnouncements, useDoubleKeyPress, useDropdown, useEntityTypes, useFormValidation, useFormattedTime, useGenerationProgress, useHealth, useIsTyping, useKeyboardShortcuts, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useOpenResources, usePreloadTranslations, useResourceAnnotations, useResourceEvents, useResources, useRovingTabIndex, useSearchAnnouncements, useSessionContext, useSessionExpiry, useTheme, useToast, useToolbar, useTranslations, validationRules, withHandlers };