@semiont/react-ui 0.2.30-build.51 → 0.2.30-build.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +51 -22
- package/dist/index.mjs +544 -530
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/components/collapsible-resource-navigation.css +51 -0
- package/src/styles/components/footer.css +102 -0
- package/src/styles/components/header.css +109 -0
- package/src/styles/components/left-sidebar.css +134 -0
- package/src/styles/components/navigation-menu.css +59 -0
- package/src/styles/components/navigation-tabs.css +458 -0
- package/src/styles/features/resource-viewer.css +1 -2
- package/src/styles/features/resource.css +1 -1
- package/src/styles/index.css +5 -1
- package/src/styles/layout/layout.css +0 -364
- package/src/styles/panels/unified-annotations-panel.css +29 -6
- package/src/styles/components/sidebar-navigation.css +0 -583
package/dist/index.d.mts
CHANGED
|
@@ -261,21 +261,6 @@ interface NavigationProps {
|
|
|
261
261
|
/** Optional section title */
|
|
262
262
|
title?: string;
|
|
263
263
|
}
|
|
264
|
-
/**
|
|
265
|
-
* Props for the SidebarNavigation component
|
|
266
|
-
*/
|
|
267
|
-
interface SidebarNavigationProps extends NavigationProps {
|
|
268
|
-
/** Whether to show descriptions as tooltips */
|
|
269
|
-
showDescriptions?: boolean;
|
|
270
|
-
/** Custom active item class */
|
|
271
|
-
activeClassName?: string;
|
|
272
|
-
/** Custom inactive item class */
|
|
273
|
-
inactiveClassName?: string;
|
|
274
|
-
/** Whether the navigation is in collapsed state (icons only) */
|
|
275
|
-
isCollapsed?: boolean;
|
|
276
|
-
/** Whether to show text labels (when not collapsed) */
|
|
277
|
-
showText?: boolean;
|
|
278
|
-
}
|
|
279
264
|
|
|
280
265
|
/**
|
|
281
266
|
* Type definitions for resource viewer feature
|
|
@@ -2357,12 +2342,38 @@ interface NavigationMenuProps {
|
|
|
2357
2342
|
}
|
|
2358
2343
|
declare function NavigationMenu({ Link, routes, t, isAdmin, isModerator, brandingLink, onItemClick, className, currentPath }: NavigationMenuProps): react_jsx_runtime.JSX.Element;
|
|
2359
2344
|
|
|
2345
|
+
interface SimpleNavigationItem$1 {
|
|
2346
|
+
name: string;
|
|
2347
|
+
href: string;
|
|
2348
|
+
icon: React__default.ComponentType<{
|
|
2349
|
+
className?: string;
|
|
2350
|
+
}>;
|
|
2351
|
+
description?: string;
|
|
2352
|
+
}
|
|
2353
|
+
interface SimpleNavigationProps$1 {
|
|
2354
|
+
title: string;
|
|
2355
|
+
items: SimpleNavigationItem$1[];
|
|
2356
|
+
currentPath: string;
|
|
2357
|
+
LinkComponent: React__default.ComponentType<any>;
|
|
2358
|
+
dropdownContent?: (onClose: () => void) => React__default.ReactNode;
|
|
2359
|
+
isCollapsed: boolean;
|
|
2360
|
+
onToggleCollapse: () => void;
|
|
2361
|
+
icons: {
|
|
2362
|
+
chevronLeft: React__default.ComponentType<{
|
|
2363
|
+
className?: string;
|
|
2364
|
+
}>;
|
|
2365
|
+
bars: React__default.ComponentType<{
|
|
2366
|
+
className?: string;
|
|
2367
|
+
}>;
|
|
2368
|
+
};
|
|
2369
|
+
collapseSidebarLabel: string;
|
|
2370
|
+
expandSidebarLabel: string;
|
|
2371
|
+
}
|
|
2360
2372
|
/**
|
|
2361
|
-
*
|
|
2362
|
-
*
|
|
2363
|
-
* Supports collapsed state where only icons are shown.
|
|
2373
|
+
* Simple navigation component for Admin and Moderation modes.
|
|
2374
|
+
* Renders a section header with optional dropdown and static navigation tabs.
|
|
2364
2375
|
*/
|
|
2365
|
-
declare function
|
|
2376
|
+
declare function SimpleNavigation({ title, items, currentPath, LinkComponent, dropdownContent, isCollapsed, onToggleCollapse, icons, collapseSidebarLabel, expandSidebarLabel }: SimpleNavigationProps$1): react_jsx_runtime.JSX.Element;
|
|
2366
2377
|
|
|
2367
2378
|
/**
|
|
2368
2379
|
* Represents an open resource/document in the navigation
|
|
@@ -2434,6 +2445,7 @@ interface CollapsibleResourceNavigationProps {
|
|
|
2434
2445
|
bars: ComponentType<any>;
|
|
2435
2446
|
close: ComponentType<any>;
|
|
2436
2447
|
};
|
|
2448
|
+
navigationMenu?: ((onClose: () => void) => ReactNode) | undefined;
|
|
2437
2449
|
}
|
|
2438
2450
|
|
|
2439
2451
|
/**
|
|
@@ -2441,7 +2453,7 @@ interface CollapsibleResourceNavigationProps {
|
|
|
2441
2453
|
* Supports drag and drop for resource reordering when expanded.
|
|
2442
2454
|
* Platform-agnostic design for use across different React environments.
|
|
2443
2455
|
*/
|
|
2444
|
-
declare function CollapsibleResourceNavigation({ fixedItems, resources, isCollapsed, onToggleCollapse, onResourceClose, onResourceReorder,
|
|
2456
|
+
declare function CollapsibleResourceNavigation({ fixedItems, resources, isCollapsed, onToggleCollapse, onResourceClose, onResourceReorder, currentPath, LinkComponent, onNavigate, getResourceHref, className, translations, icons, navigationMenu }: CollapsibleResourceNavigationProps): react_jsx_runtime.JSX.Element;
|
|
2445
2457
|
|
|
2446
2458
|
/**
|
|
2447
2459
|
* A sortable tab for an open resource in the navigation sidebar.
|
|
@@ -2449,6 +2461,20 @@ declare function CollapsibleResourceNavigation({ fixedItems, resources, isCollap
|
|
|
2449
2461
|
*/
|
|
2450
2462
|
declare function SortableResourceTab({ resource, isCollapsed, isActive, href, onClose, onReorder, index, totalCount, LinkComponent, translations, dragHandleProps, isDragging }: SortableResourceTabProps): react_jsx_runtime.JSX.Element;
|
|
2451
2463
|
|
|
2464
|
+
interface SimpleNavigationItem {
|
|
2465
|
+
name: string;
|
|
2466
|
+
href: string;
|
|
2467
|
+
icon: React.ComponentType<any>;
|
|
2468
|
+
description?: string;
|
|
2469
|
+
}
|
|
2470
|
+
interface SimpleNavigationProps {
|
|
2471
|
+
title: string;
|
|
2472
|
+
items: SimpleNavigationItem[];
|
|
2473
|
+
currentPath: string;
|
|
2474
|
+
LinkComponent: React.ComponentType<any>;
|
|
2475
|
+
dropdownContent?: ((onClose: () => void) => ReactNode) | undefined;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2452
2478
|
interface SearchModalProps$1 {
|
|
2453
2479
|
isOpen: boolean;
|
|
2454
2480
|
onClose: () => void;
|
|
@@ -2595,12 +2621,15 @@ interface UnifiedHeaderProps {
|
|
|
2595
2621
|
}
|
|
2596
2622
|
declare function UnifiedHeader({ Link, routes, t, tHome, showBranding, showAuthLinks, brandingLink, variant, isAuthenticated, isAdmin, isModerator, currentPath }: UnifiedHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2597
2623
|
|
|
2624
|
+
interface NavigationMenuHelper {
|
|
2625
|
+
(onClose: () => void): React__default.ReactNode;
|
|
2626
|
+
}
|
|
2598
2627
|
interface LeftSidebarProps {
|
|
2599
2628
|
Link: React__default.ComponentType<LinkComponentProps>;
|
|
2600
2629
|
routes: RouteBuilder;
|
|
2601
2630
|
t: TranslateFn;
|
|
2602
2631
|
tHome: TranslateFn;
|
|
2603
|
-
children: React__default.ReactNode | ((isCollapsed: boolean, toggleCollapsed: () => void) => React__default.ReactNode);
|
|
2632
|
+
children: React__default.ReactNode | ((isCollapsed: boolean, toggleCollapsed: () => void, navigationMenu: NavigationMenuHelper) => React__default.ReactNode);
|
|
2604
2633
|
brandingLink?: string;
|
|
2605
2634
|
collapsible?: boolean;
|
|
2606
2635
|
storageKey?: string;
|
|
@@ -3543,4 +3572,4 @@ interface ResourceViewerPageProps {
|
|
|
3543
3572
|
}
|
|
3544
3573
|
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;
|
|
3545
3574
|
|
|
3546
|
-
export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateToolbar, AnnotateView, type Annotation$n 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, type BorderRadiusToken, BrowseView, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type CacheManager, CacheProvider, type CacheProviderProps, type ClickAction, CodeMirrorRenderer, CollaborationPanel, CollapsibleResourceNavigation, type CollapsibleResourceNavigationProps, type ColorToken, 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$4 as Motivation, type NavigationItem, NavigationMenu, type NavigationProps, type OAuthProvider, type OAuthUser, OAuthUserSchema, type OpenResource, OpenResourcesManager, OpenResourcesProvider, PageLayout, PanelHeader, PopupContainer, PopupHeader, type PreparedAnnotation, ProposeEntitiesModal, QUERY_KEYS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferencesPanel, type ResolvedTheme, ResourceAnnotationsProvider, ResourceCard, type ResourceCardProps, ResourceComposePage, type ResourceComposePageProps, ResourceDiscoveryPage, type ResourceDiscoveryPageProps, ResourceErrorState, type ResourceErrorStateProps, type ResourceEvent, ResourceInfoPanel, ResourceLoadingState, ResourceSearchModal, type ResourceSearchModalProps, ResourceTagsInline, ResourceViewer, ResourceViewerPage, type ResourceViewerPageProps, type RouteBuilder, type SaveResourceParams, SearchModal, type SearchModalProps, SelectedTextDisplay, type SelectionData, type SelectionMotivation, SemiontBranding, SemiontFavicon, type SemiontResource$3 as SemiontResource, SessionExpiryBanner, SessionManager, SessionProvider, SessionTimer, SettingsPanel, type ShadowToken, type ShapeType,
|
|
3575
|
+
export { ANNOTATORS, AUTH_EVENTS, AVAILABLE_LOCALES, AdminDevOpsPage, type AdminDevOpsPageProps, AdminSecurityPage, type AdminSecurityPageProps, type AdminUser, type AdminUserStats, AdminUsersPage, type AdminUsersPageProps, AnnotateToolbar, AnnotateView, type Annotation$n 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, type BorderRadiusToken, BrowseView, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type CacheManager, CacheProvider, type CacheProviderProps, type ClickAction, CodeMirrorRenderer, CollaborationPanel, CollapsibleResourceNavigation, type CollapsibleResourceNavigationProps, type ColorToken, 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$4 as Motivation, type NavigationItem, NavigationMenu, type NavigationMenuHelper, type NavigationProps, type OAuthProvider, type OAuthUser, OAuthUserSchema, type OpenResource, OpenResourcesManager, OpenResourcesProvider, PageLayout, PanelHeader, PopupContainer, PopupHeader, type PreparedAnnotation, ProposeEntitiesModal, QUERY_KEYS, RecentDocumentsPage, type RecentDocumentsPageProps, ReferenceEntry, ReferenceResolutionWidget, ReferencesPanel, type ResolvedTheme, ResourceAnnotationsProvider, ResourceCard, type ResourceCardProps, ResourceComposePage, type ResourceComposePageProps, ResourceDiscoveryPage, type ResourceDiscoveryPageProps, ResourceErrorState, type ResourceErrorStateProps, type ResourceEvent, ResourceInfoPanel, ResourceLoadingState, ResourceSearchModal, type ResourceSearchModalProps, ResourceTagsInline, ResourceViewer, ResourceViewerPage, type ResourceViewerPageProps, type RouteBuilder, type SaveResourceParams, SearchModal, type SearchModalProps, SelectedTextDisplay, type SelectionData, type SelectionMotivation, SemiontBranding, SemiontFavicon, type SemiontResource$3 as SemiontResource, SessionExpiryBanner, SessionManager, SessionProvider, SessionTimer, SettingsPanel, type ShadowToken, type ShapeType, SignInForm, type SignInFormProps, SignUpForm, type SignUpFormProps, SimpleNavigation, type SimpleNavigationItem, type SimpleNavigationProps, SkipLinks, SortableResourceTab, type SortableResourceTabProps, type SpacingToken, StatisticsPanel, StatusDisplay, type StreamStatus, SvgDrawingCanvas, TagEntry, TagSchemasPage, type TagSchemasPageProps, TaggingPanel, type TextSegment, type TextSelection, type Theme, ToastContainer, type ToastMessage, ToastProvider, type ToastType, Toolbar, type ToolbarPanelType, type TransitionToken, TranslationManager, TranslationProvider, type TranslationProviderProps, type TypographyToken, type UICreateAnnotationParams, UnifiedAnnotationsPanel, UnifiedHeader, UserMenuSkeleton, WelcomePage, type WelcomePageProps, buttonStyles, createCancelDetectionHandler, createDetectionHandler, cssVariables, dispatch401Error, dispatch403Error, dispatchAuthEvent, faviconPaths, generateCSSVariables, getAnnotationClassName, getAnnotationInternalType, getAnnotator, getResourceIcon, getShortcutDisplay, groupAnnotationsByType, jsonLightHighlightStyle, jsonLightTheme, onAuthEvent, rehypeRenderAnnotations, remarkAnnotations, sanitizeImageURL, supportsDetection, tokens, useAdmin, useAnnotationManager, useAnnotationPanel, useAnnotationUI, useAnnotations, useApiClient, useAuthApi, useCacheManager, useDebounce, useDebouncedCallback, useDetectionProgress, useDocumentAnnouncements, useDoubleKeyPress, useDropdown, useEntityTypes, useFormAnnouncements, useFormValidation, useFormattedTime, useGenerationProgress, useHealth, useIsTyping, useKeyboardShortcuts, useLanguageChangeAnnouncements, useLineNumbers, useLiveRegion, useLoadingState, useLocalStorage, useOpenResources, usePreloadTranslations, useResourceAnnotations, useResourceEvents, useResourceLoadingAnnouncements, useResources, useRovingTabIndex, useSearchAnnouncements, useSessionContext, useSessionExpiry, useTheme, useToast, useToolbar, useTranslations, validationRules, withHandlers };
|