mui-toolpad-extended-tuni 3.0.2 → 3.1.0
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.cjs +289 -118
- package/dist/index.es.js +42420 -33860
- package/dist/src/LMSToolpad/components/Microservices/MicroserviceNavigationBuilder.d.ts +1 -1
- package/dist/src/LMSToolpad/components/Microservices/MicroserviceSubsections.d.ts +1 -1
- package/dist/src/LMSToolpad/components/tools/addActions.d.ts +1 -1
- package/dist/src/LMSToolpad/components/tools/addIcons.d.ts +1 -1
- package/dist/src/LMSToolpad/store/useThemeStore.d.ts +1 -1
- package/dist/src/index.d.ts +12 -35
- package/package.json +2 -9
- package/dist/mui-toolpad-extended-tuni.css +0 -1
- package/dist/src/LMSToolpad/components/Dialogs/DialogOpener.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Dialogs/Dialogs.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Dialogs/ExtendedDialog.d.ts +0 -8
- package/dist/src/LMSToolpad/components/Dialogs/FormDialog.d.ts +0 -14
- package/dist/src/LMSToolpad/components/Dialogs/dialogRegistry.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Events/EventBus.d.ts +0 -34
- package/dist/src/LMSToolpad/components/Events/UserBus.d.ts +0 -111
- package/dist/src/LMSToolpad/components/Events/hooks/useCurrentUser.d.ts +0 -11
- package/dist/src/LMSToolpad/components/Events/hooks/useUserActions.d.ts +0 -15
- package/dist/src/LMSToolpad/components/Events/hooks/useUserPreferences.d.ts +0 -22
- package/dist/src/LMSToolpad/components/Events/index.d.ts +0 -10
- package/dist/src/LMSToolpad/components/Events/types.d.ts +0 -16
- package/dist/src/LMSToolpad/components/Events/userTypes.d.ts +0 -78
- package/dist/src/LMSToolpad/components/Navigation/NavigationBuilder.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Navigation/NavigationFilter.d.ts +0 -1
- package/dist/src/LMSToolpad/components/Navigation/NavigationRegistry.d.ts +0 -116
- package/dist/src/LMSToolpad/components/Navigation/hooks/useMicroserviceNavigation.d.ts +0 -4
- package/dist/src/LMSToolpad/components/Navigation/hooks/useMicroserviceRoutes.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Navigation/hooks/useNavigationSectionManager.d.ts +0 -23
- package/dist/src/LMSToolpad/components/Navigation/hooks/useSyncNavigationFilters.d.ts +0 -1
- package/dist/src/LMSToolpad/components/Navigation/store/microserviceUtils.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Navigation/store/navigationCalculator.d.ts +0 -11
- package/dist/src/LMSToolpad/components/Navigation/store/sectionManager.d.ts +0 -9
- package/dist/src/LMSToolpad/components/Navigation/store/types.d.ts +0 -90
- package/dist/src/LMSToolpad/components/Navigation/store/useNavigationFilterStore.d.ts +0 -6
- package/dist/src/LMSToolpad/components/Navigation/store/useNavigationStore.d.ts +0 -50
- package/dist/src/LMSToolpad/components/Notifications/Notifications.d.ts +0 -3
- package/dist/src/LMSToolpad/components/Notifications/store/useNotificationsStore.d.ts +0 -22
- package/dist/src/LMSToolpad/utils/apiPrefix.d.ts +0 -2
- package/dist/src/LMSToolpad/utils/caseConverter.d.ts +0 -17
- package/dist/src/LMSToolpad/utils/cookieUtils.d.ts +0 -27
- package/dist/src/LMSToolpad/utils/parseDate.d.ts +0 -2
- package/dist/src/LMSToolpad/utils/slugify.d.ts +0 -1
- package/dist/src/common/components/index.d.ts +0 -2
- package/dist/src/common/components/layout/GridLayout/GridItem.d.ts +0 -17
- package/dist/src/common/components/layout/GridLayout/GridItemContext.d.ts +0 -26
- package/dist/src/common/components/layout/GridLayout/ResponsiveGridLayout.d.ts +0 -16
- package/dist/src/common/components/layout/GridLayout/Tools/BreakpointIndicator.d.ts +0 -8
- package/dist/src/common/components/layout/GridLayout/Tools/EditModeToggler.d.ts +0 -7
- package/dist/src/common/components/layout/GridLayout/hooks/useGridLayoutManagement.d.ts +0 -27
- package/dist/src/common/components/layout/GridLayout/index.d.ts +0 -12
- package/dist/src/common/components/layout/GridLayout/layoutStorageUtils.d.ts +0 -52
- package/dist/src/common/components/layout/GridLayout/layoutUtils.d.ts +0 -78
- package/dist/src/common/components/layout/GridLayout/store/usePanelStore.d.ts +0 -27
- package/dist/src/common/components/layout/GridLayout/useGridLayout.d.ts +0 -11
- package/dist/src/common/components/layout/index.d.ts +0 -1
- package/dist/src/common/components/ui/CenteredHeading/CenteredHeading.d.ts +0 -7
- package/dist/src/common/components/ui/CollapsingButtons/CollapsingButtons.d.ts +0 -11
- package/dist/src/common/components/ui/CompoundPanel/CompoundPanel.d.ts +0 -86
- package/dist/src/common/components/ui/LoadingScreen/LoadingScreen.d.ts +0 -2
- package/dist/src/common/components/ui/Panel/Expandable/Expandable.d.ts +0 -4
- package/dist/src/common/components/ui/Panel/Expandable/context/ExpandableContextProvider.d.ts +0 -10
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useCollapseHandler.d.ts +0 -2
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useExpandable.d.ts +0 -17
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useExpansionAnimation.d.ts +0 -5
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useInitialSetup.d.ts +0 -6
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useResizeHandler.d.ts +0 -1
- package/dist/src/common/components/ui/Panel/Expandable/store/useExpandablePanelStore.d.ts +0 -7
- package/dist/src/common/components/ui/Panel/Main/Context/PanelContextProvider.d.ts +0 -50
- package/dist/src/common/components/ui/Panel/Main/Panel.d.ts +0 -3
- package/dist/src/common/components/ui/Panel/Main/hooks/useDimensionManagement.d.ts +0 -13
- package/dist/src/common/components/ui/Panel/Main/hooks/usePersistentDimensions.d.ts +0 -19
- package/dist/src/common/components/ui/Panel/Main/tools/BlurOverlay.d.ts +0 -6
- package/dist/src/common/components/ui/Panel/Main/tools/ToolsContainer.d.ts +0 -11
- package/dist/src/common/components/ui/Panel/Movable/DraggableItem.d.ts +0 -6
- package/dist/src/common/components/ui/Panel/Movable/MovablePanel.d.ts +0 -9
- package/dist/src/common/components/ui/Panel/Movable/MoveToggler.d.ts +0 -3
- package/dist/src/common/components/ui/Panel/Movable/context/MovableContextProvider.d.ts +0 -10
- package/dist/src/common/components/ui/Panel/Movable/hooks/usePersistentOrder.d.ts +0 -3
- package/dist/src/common/components/ui/Panel/Resizable/Context/ResizableContextProvider.d.ts +0 -27
- package/dist/src/common/components/ui/Panel/Resizable/Hooks/useResizeHandlers.d.ts +0 -26
- package/dist/src/common/components/ui/Panel/Resizable/Hooks/useResponsiveResize.d.ts +0 -14
- package/dist/src/common/components/ui/Panel/Resizable/Resizable.d.ts +0 -3
- package/dist/src/common/components/ui/Panel/Resizable/ResizeHandlers.d.ts +0 -7
- package/dist/src/common/components/ui/Panel/Resizable/ResizeIndicator.d.ts +0 -9
- package/dist/src/common/components/ui/Panel/Scrollable/InternalScrolling.d.ts +0 -11
- package/dist/src/common/components/ui/Panel/Scrollable/PaginationDots.d.ts +0 -13
- package/dist/src/common/components/ui/Panel/Scrollable/Scrollable.d.ts +0 -5
- package/dist/src/common/components/ui/Panel/Scrollable/context/ScrollerContextProvider.d.ts +0 -15
- package/dist/src/common/components/ui/Panel/Scrollable/hooks/useScrollControls.d.ts +0 -28
- package/dist/src/common/components/ui/Panel/TBR/PanelContent.d.ts +0 -24
- package/dist/src/common/components/ui/Panel/TBR/ResizablePanel.d.ts +0 -3
- package/dist/src/common/components/ui/Panel/TBR/ResizeHandlers.d.ts +0 -10
- package/dist/src/common/components/ui/Panel/TBR/ResizeIndicator.d.ts +0 -10
- package/dist/src/common/components/ui/Panel/TBR/useResizablePanel.d.ts +0 -32
- package/dist/src/common/components/ui/Panel/types.d.ts +0 -9
- package/dist/src/common/components/ui/Scroller/PaginationDots.d.ts +0 -13
- package/dist/src/common/components/ui/Scroller/Scroller.d.ts +0 -14
- package/dist/src/common/components/ui/Scroller/context/ScrollerContextProvider.d.ts +0 -15
- package/dist/src/common/components/ui/Scroller/hooks/useScrollControls.d.ts +0 -28
- package/dist/src/common/components/ui/Scroller/types.d.ts +0 -1
- package/dist/src/common/components/ui/SpeedDialButton/SpeedDialButton.d.ts +0 -20
- package/dist/src/common/components/ui/index.d.ts +0 -15
- package/dist/src/common/hooks/index.d.ts +0 -1
- package/dist/src/common/hooks/useRetry.d.ts +0 -12
- package/dist/src/common/index.d.ts +0 -2
- /package/dist/src/{common/components/ui → LMSToolpad/components}/ThemeToggle/ThemeToggle.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NavigationStoreItem } from '
|
|
1
|
+
import { NavigationStoreItem } from '@mui-toolpad-extended-tuni/core';
|
|
2
2
|
export declare const addIcons: (navItems: NavigationStoreItem[]) => NavigationStoreItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Components, Theme, PaletteMode, PaletteOptions } from '@mui/material/styles';
|
|
2
|
-
import { ColorSchemePreference } from '
|
|
2
|
+
import { ColorSchemePreference } from '@mui-toolpad-extended-tuni/core';
|
|
3
3
|
export interface TypographyVariantStyle extends Partial<React.CSSProperties> {
|
|
4
4
|
}
|
|
5
5
|
export interface ThemeTypography {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,39 +6,22 @@ export * from './LMSToolpad/interfaces';
|
|
|
6
6
|
* **STORES**
|
|
7
7
|
*/
|
|
8
8
|
export { default as useDialogStore } from './LMSToolpad/store/useDialogStore';
|
|
9
|
-
export { userBus, UserBus, useCurrentUser, useUserPreferences, useUserActions, } from '
|
|
10
|
-
export type { UserData, UserEvent, UserEventType, UserPreferences, PlatformRole, UserBusStoreConfig,
|
|
11
|
-
export {
|
|
12
|
-
export
|
|
13
|
-
export {
|
|
14
|
-
export { useMicroserviceNavigation } from './LMSToolpad/components/Navigation/hooks/useMicroserviceNavigation';
|
|
15
|
-
export { useNavigationSectionManager } from './LMSToolpad/components/Navigation/hooks/useNavigationSectionManager';
|
|
16
|
-
export { useSyncNavigationFilters } from './LMSToolpad/components/Navigation/hooks/useSyncNavigationFilters';
|
|
9
|
+
export { userBus, UserBus, useCurrentUser, useUserPreferences, useUserActions, EventBus, eventBus, } from '@mui-toolpad-extended-tuni/core';
|
|
10
|
+
export type { UserData, UserEvent, UserEventType, UserPreferences, PlatformRole, UserBusStoreConfig, Event, EventSource, } from '@mui-toolpad-extended-tuni/core';
|
|
11
|
+
export type { Event as EventType } from '@mui-toolpad-extended-tuni/core';
|
|
12
|
+
export { registerMicroservice, unregisterMicroservice, registerRouteProvider, unregisterRouteProvider, getMicroservice, getAllMicroservices, getMicroserviceIds, isMicroserviceRegistered, useMicroserviceRegistryStore, useMicroserviceRoutes, useMicroserviceNavigation, useNavigationSectionManager, useSyncNavigationFilters, useNavigationStore, filterNavigationByRole, useNavigationFilterStore, NavigationSectionBuilder, NavigationFilter, calculateNavigationFromSections, updateMicroserviceNavigationForSections, getAllRegisteredMicroservices, } from '@mui-toolpad-extended-tuni/core';
|
|
13
|
+
export type { MicroserviceEntry, RouteProvider, NavigationStoreItem, NavigationPageStoreItem, NavigationHeaderItem, NavigationDividerItem, NavigationSection, ViewStore, ToolMetadata, NavigationFilterState, } from '@mui-toolpad-extended-tuni/core';
|
|
17
14
|
export { registerAppToolbarAction, unregisterAppToolbarAction, registerPageToolbarAction, unregisterPageToolbarAction, useToolbarRegistryStore, } from './LMSToolpad/layout/Toolbars/toolbarRegistry';
|
|
18
|
-
export {
|
|
19
|
-
export type { NavigationStoreItem, NavigationPageStoreItem, NavigationHeaderItem, NavigationDividerItem, NavigationSection, ViewStore, ToolMetadata, addSectionProps, } from './LMSToolpad/components/Navigation/store/types';
|
|
20
|
-
export { useNavigationFilterStore } from './LMSToolpad/components/Navigation/store/useNavigationFilterStore';
|
|
21
|
-
export type { NavigationFilterState } from './LMSToolpad/components/Navigation/store/useNavigationFilterStore';
|
|
22
|
-
export { NavigationSectionBuilder } from './LMSToolpad/components/Navigation/NavigationBuilder';
|
|
23
|
-
export { NavigationFilter } from './LMSToolpad/components/Navigation/NavigationFilter';
|
|
24
|
-
export { default as Notifications } from './LMSToolpad/components/Notifications/Notifications';
|
|
25
|
-
export { useNotificationStore } from './LMSToolpad/components/Notifications/store/useNotificationsStore';
|
|
15
|
+
export { Notifications, useNotificationStore } from '@mui-toolpad-extended-tuni/core';
|
|
26
16
|
/**
|
|
27
17
|
* **COMPONENTS**
|
|
28
18
|
*/
|
|
29
19
|
export { default as Home } from './LMSToolpad/components/Routes/Home/Home';
|
|
30
20
|
export { default as Microservices } from './LMSToolpad/components/Microservices/Microservices';
|
|
31
|
-
export * from '
|
|
32
|
-
export {
|
|
33
|
-
export { SpeedDialButton } from './common/components/ui/SpeedDialButton/SpeedDialButton';
|
|
34
|
-
export { useGridItemContext } from './common/components/layout/GridLayout/GridItemContext';
|
|
35
|
-
export { createGridItem } from './common/components/layout/GridLayout/layoutUtils';
|
|
36
|
-
export { default as DialogOpener } from './LMSToolpad/components/Dialogs/DialogOpener';
|
|
37
|
-
export { default as FormDialog } from './LMSToolpad/components/Dialogs/FormDialog';
|
|
38
|
-
export { default as ExtendedDialog } from './LMSToolpad/components/Dialogs/ExtendedDialog';
|
|
39
|
-
export { default as Dialogs } from './LMSToolpad/components/Dialogs/Dialogs';
|
|
40
|
-
export { registerDialog, getDialog } from './LMSToolpad/components/Dialogs/dialogRegistry';
|
|
21
|
+
export * from '@mui-toolpad-extended-tuni/core';
|
|
22
|
+
export { DialogOpener, FormDialog, ExtendedDialog, Dialogs, openDialog, closeDialog, registerDialog } from '@mui-toolpad-extended-tuni/core';
|
|
41
23
|
export { default as IconWithBadge } from './LMSToolpad/components/IconWithBadge';
|
|
24
|
+
export { default as ThemeToggle } from './LMSToolpad/components/ThemeToggle/ThemeToggle';
|
|
42
25
|
export { default as EditableText } from './LMSToolpad/Forms/Components/Editables/EditableText';
|
|
43
26
|
export { default as EditableSwitch } from './LMSToolpad/Forms/Components/Editables/EditableSwitch';
|
|
44
27
|
export { default as EditableNumber } from './LMSToolpad/Forms/Components/Editables/EditableNumber';
|
|
@@ -51,11 +34,7 @@ export { default as EditableColor } from './LMSToolpad/Forms/Components/Editable
|
|
|
51
34
|
*/
|
|
52
35
|
export { default as ErrorBoundary } from './LMSToolpad/tools/ErrorBoundary';
|
|
53
36
|
export { default as NullStateWarning } from './LMSToolpad/tools/NullStateWarning';
|
|
54
|
-
export { convertObjectKeysToCamelCase, convertObjectKeysToUnderscore, } from '
|
|
55
|
-
export { parseDate } from './LMSToolpad/utils/parseDate';
|
|
56
|
-
export { slugify } from './LMSToolpad/utils/slugify';
|
|
57
|
-
export { getApiPrefix } from './LMSToolpad/utils/apiPrefix';
|
|
58
|
-
export { getCookie, setCookie, deleteCookie } from './LMSToolpad/utils/cookieUtils';
|
|
37
|
+
export { convertObjectKeysToCamelCase, convertObjectKeysToUnderscore, parseDate, slugify, getApiPrefix, apiPrefix, getCookie, setCookie, deleteCookie, } from '@mui-toolpad-extended-tuni/core';
|
|
59
38
|
export type { MicroserviceConfig } from './LMSToolpad/components/Microservices/types';
|
|
60
39
|
export { buildMicroServiceNavigation } from './LMSToolpad/components/Microservices/MicroserviceNavigationBuilder';
|
|
61
40
|
export type { BuildMicroServiceNavigationProps } from './LMSToolpad/components/Microservices/MicroserviceNavigationBuilder';
|
|
@@ -69,7 +48,5 @@ export { default as axios } from './LMSToolpad/network/axiosConfig';
|
|
|
69
48
|
*/
|
|
70
49
|
export { baseUrl } from './LMSToolpad/constants';
|
|
71
50
|
export * from './LMSToolpad/interfaces';
|
|
72
|
-
export {
|
|
73
|
-
export type {
|
|
74
|
-
export type { Event as EventType } from './LMSToolpad/components/Events/types';
|
|
75
|
-
export { useRetry } from './common/hooks/useRetry';
|
|
51
|
+
export { useRetry } from '@mui-toolpad-extended-tuni/core';
|
|
52
|
+
export type { fetchState } from '@mui-toolpad-extended-tuni/core';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "Extended Toolpad",
|
|
5
5
|
"author": "Jaakko Rajala",
|
|
6
|
-
"version": "3.0
|
|
6
|
+
"version": "3.1.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.cjs",
|
|
9
9
|
"module": "./dist/index.es.js",
|
|
@@ -55,18 +55,12 @@
|
|
|
55
55
|
"@emotion/react": "^11.0.0",
|
|
56
56
|
"@emotion/styled": "^11.0.0",
|
|
57
57
|
"@fontsource/roboto": "^5.0.14",
|
|
58
|
-
"@
|
|
59
|
-
"@fullcalendar/daygrid": "^6.1.15",
|
|
60
|
-
"@fullcalendar/interaction": "^6.1.15",
|
|
61
|
-
"@fullcalendar/react": "^6.1.15",
|
|
62
|
-
"@fullcalendar/scrollgrid": "^6.1.15",
|
|
63
|
-
"@fullcalendar/timegrid": "^6.1.15",
|
|
58
|
+
"@mui-toolpad-extended-tuni/core": "^3.1.0",
|
|
64
59
|
"@mui/icons-material": "^7.3.4",
|
|
65
60
|
"@mui/material": "^7.3.4",
|
|
66
61
|
"@mui/x-date-pickers": "^7.25.0",
|
|
67
62
|
"@toolpad/core": "^0.16.0",
|
|
68
63
|
"@types/axios": "^0.9.36",
|
|
69
|
-
"@types/luxon": "^3.7.1",
|
|
70
64
|
"@types/react-router-dom": "^5.3.3",
|
|
71
65
|
"@types/react-slider": "^1.3.6",
|
|
72
66
|
"@xyflow/react": "^12.4.4",
|
|
@@ -74,7 +68,6 @@
|
|
|
74
68
|
"chart.js": "^4.5.1",
|
|
75
69
|
"d3-force": "^3.0.0",
|
|
76
70
|
"lodash": "^4.17.21",
|
|
77
|
-
"luxon": "^3.7.2",
|
|
78
71
|
"notistack": "^3.0.1",
|
|
79
72
|
"react": "^19.0.0",
|
|
80
73
|
"react-chartjs-2": "^5.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { dialogType } from '../../store/useDialogStore';
|
|
2
|
-
type DialogOpenerProps = {
|
|
3
|
-
title: string;
|
|
4
|
-
dialogId: dialogType;
|
|
5
|
-
callOnOpen?: (event: React.MouseEvent<HTMLButtonElement | HTMLElement>) => void;
|
|
6
|
-
showTitle?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const DialogOpener: ({ title, dialogId, callOnOpen, showTitle, }: DialogOpenerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default DialogOpener;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type CustomDialogProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
open: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
};
|
|
7
|
-
declare const ExtendedDialog: ({ children, open, onClose, ...dialogProps }: CustomDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ExtendedDialog;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from '@mui/material';
|
|
2
|
-
interface FormDialogProps {
|
|
3
|
-
onSubmit: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
4
|
-
title: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
submitText?: string;
|
|
7
|
-
disableSubmit?: boolean;
|
|
8
|
-
maxWidth?: DialogProps["maxWidth"];
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
-
showUnsavedChangesWarning?: boolean;
|
|
11
|
-
isDirty?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const FormDialog: React.FC<FormDialogProps>;
|
|
14
|
-
export default FormDialog;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Event } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Event Bus for decoupling event producers from consumers.
|
|
4
|
-
* Modules can publish events and other modules can subscribe to them.
|
|
5
|
-
* This is a generic event system that any module can use.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EventBus {
|
|
8
|
-
private static instance;
|
|
9
|
-
private subscribers;
|
|
10
|
-
private events;
|
|
11
|
-
private constructor();
|
|
12
|
-
static getInstance(): EventBus;
|
|
13
|
-
/**
|
|
14
|
-
* Subscribe to event updates
|
|
15
|
-
*/
|
|
16
|
-
subscribe(callback: (events: Event[]) => void): () => void;
|
|
17
|
-
/**
|
|
18
|
-
* Publish events to the bus
|
|
19
|
-
*/
|
|
20
|
-
publish(sourceId: string, events: Event[]): void;
|
|
21
|
-
/**
|
|
22
|
-
* Remove all events from a specific source
|
|
23
|
-
*/
|
|
24
|
-
removeSource(sourceId: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* Get all current events
|
|
27
|
-
*/
|
|
28
|
-
getAllEvents(): Event[];
|
|
29
|
-
/**
|
|
30
|
-
* Clear all events
|
|
31
|
-
*/
|
|
32
|
-
clear(): void;
|
|
33
|
-
}
|
|
34
|
-
export declare const eventBus: EventBus;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { UserEvent, UserData } from './userTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Configuration interface for UserBus store methods.
|
|
4
|
-
* This allows UserBus to work with any user store implementation.
|
|
5
|
-
*/
|
|
6
|
-
export interface UserBusStoreConfig {
|
|
7
|
-
getUser: () => Promise<void>;
|
|
8
|
-
updateUser: (userData: UserData) => Promise<UserData>;
|
|
9
|
-
setUserToUpdate: (user: UserData | null) => void;
|
|
10
|
-
fetchCourseUsers: (courseId: string) => Promise<void>;
|
|
11
|
-
logout: () => Promise<void>;
|
|
12
|
-
getState: () => {
|
|
13
|
-
user: UserData | null;
|
|
14
|
-
courseUsers?: UserData[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* User Bus for decoupling user state changes from consumers.
|
|
19
|
-
* Modules can subscribe to user events and react to user state changes.
|
|
20
|
-
* This follows the same pattern as EventBus but is specifically for user-related events.
|
|
21
|
-
*
|
|
22
|
-
* UserBus requires store methods to be configured via configureStore() before use.
|
|
23
|
-
* This allows it to work without direct dependencies on user store implementations.
|
|
24
|
-
*/
|
|
25
|
-
export declare class UserBus {
|
|
26
|
-
private static instance;
|
|
27
|
-
private subscribers;
|
|
28
|
-
private currentUser;
|
|
29
|
-
private lastEvent;
|
|
30
|
-
private storeConfig;
|
|
31
|
-
private constructor();
|
|
32
|
-
/**
|
|
33
|
-
* Configure UserBus with store methods.
|
|
34
|
-
* This must be called before using store-dependent methods.
|
|
35
|
-
*/
|
|
36
|
-
configureStore(config: UserBusStoreConfig): void;
|
|
37
|
-
private getStoreConfig;
|
|
38
|
-
static getInstance(): UserBus;
|
|
39
|
-
/**
|
|
40
|
-
* Subscribe to user event updates
|
|
41
|
-
* @param callback Function to call when user events occur
|
|
42
|
-
* @returns Unsubscribe function
|
|
43
|
-
*/
|
|
44
|
-
subscribe(callback: (event: UserEvent) => void): () => void;
|
|
45
|
-
/**
|
|
46
|
-
* Publish a user event to the bus
|
|
47
|
-
* @param event User event to publish
|
|
48
|
-
*/
|
|
49
|
-
publish(event: UserEvent): void;
|
|
50
|
-
/**
|
|
51
|
-
* Get the current user synchronously
|
|
52
|
-
* @returns Current user data or null
|
|
53
|
-
*/
|
|
54
|
-
getCurrentUser(): UserData | null;
|
|
55
|
-
/**
|
|
56
|
-
* Get the current user synchronously (alias for getCurrentUser)
|
|
57
|
-
* @returns Current user data or null
|
|
58
|
-
*/
|
|
59
|
-
getCurrentUserSync(): UserData | null;
|
|
60
|
-
/**
|
|
61
|
-
* Subscribe to user updates and get current user
|
|
62
|
-
* @param callback Function to call with current user and updates
|
|
63
|
-
* @returns Unsubscribe function
|
|
64
|
-
*/
|
|
65
|
-
subscribeToUser(callback: (user: UserData | null) => void): () => void;
|
|
66
|
-
/**
|
|
67
|
-
* Get the last user event
|
|
68
|
-
* @returns Last user event or null
|
|
69
|
-
*/
|
|
70
|
-
getLastEvent(): UserEvent | null;
|
|
71
|
-
/**
|
|
72
|
-
* Clear all user state
|
|
73
|
-
*/
|
|
74
|
-
clear(): void;
|
|
75
|
-
/**
|
|
76
|
-
* Initialize UserBus with current user from store
|
|
77
|
-
* Should be called by UserEventPublisher on mount
|
|
78
|
-
*/
|
|
79
|
-
initializeFromStore(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Get user from store and publish to bus
|
|
82
|
-
* Delegates to store.getUser() and publishes event when complete
|
|
83
|
-
*/
|
|
84
|
-
getUser(): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* Update user and publish event
|
|
87
|
-
* Delegates to store.updateUser() and publishes event
|
|
88
|
-
*/
|
|
89
|
-
updateUser(userData: UserData): Promise<UserData>;
|
|
90
|
-
/**
|
|
91
|
-
* Set user to update (for editing)
|
|
92
|
-
* Delegates to store.setUserToUpdate()
|
|
93
|
-
*/
|
|
94
|
-
setUserToUpdate(user: UserData | null): void;
|
|
95
|
-
/**
|
|
96
|
-
* Fetch course users
|
|
97
|
-
* Delegates to store.fetchCourseUsers()
|
|
98
|
-
*/
|
|
99
|
-
fetchCourseUsers(courseId: string): Promise<void>;
|
|
100
|
-
/**
|
|
101
|
-
* Get course users from store
|
|
102
|
-
* @returns Course users array or undefined
|
|
103
|
-
*/
|
|
104
|
-
getCourseUsers(): UserData[] | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* Logout user and publish event
|
|
107
|
-
* Delegates to store.logout() and publishes event
|
|
108
|
-
*/
|
|
109
|
-
logout(): Promise<void>;
|
|
110
|
-
}
|
|
111
|
-
export declare const userBus: UserBus;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UserData } from '../userTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Hook to get current user from UserBus
|
|
4
|
-
* Automatically updates when user changes via UserBus events
|
|
5
|
-
*
|
|
6
|
-
* @returns { user: UserData | null, isLoading: boolean }
|
|
7
|
-
*/
|
|
8
|
-
export declare const useCurrentUser: () => {
|
|
9
|
-
user: UserData | null;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UserData } from '../userTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Hook that provides user actions through UserBus
|
|
4
|
-
* All actions trigger UserBus events when called
|
|
5
|
-
*
|
|
6
|
-
* @returns { updateUser, setUserToUpdate, fetchCourseUsers, getUser, logout, getCourseUsers }
|
|
7
|
-
*/
|
|
8
|
-
export declare const useUserActions: () => {
|
|
9
|
-
updateUser: (userData: UserData) => Promise<UserData>;
|
|
10
|
-
setUserToUpdate: (user: UserData | null) => void;
|
|
11
|
-
fetchCourseUsers: (courseId: string) => Promise<void>;
|
|
12
|
-
getUser: () => Promise<void>;
|
|
13
|
-
logout: () => Promise<void>;
|
|
14
|
-
getCourseUsers: () => UserData[] | undefined;
|
|
15
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
export interface UserPreferences {
|
|
3
|
-
navigationType: "direct" | "instances";
|
|
4
|
-
visibleCourseLists: {
|
|
5
|
-
isStudent: boolean;
|
|
6
|
-
isStudentOld: boolean;
|
|
7
|
-
isTeacher: boolean;
|
|
8
|
-
isTeacherOld: boolean;
|
|
9
|
-
available: boolean;
|
|
10
|
-
};
|
|
11
|
-
lastVisitedCourses: string[];
|
|
12
|
-
visibleNavigation: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Hook to get user preferences from UserBus
|
|
16
|
-
* Automatically updates when user preferences change via UserBus events
|
|
17
|
-
*
|
|
18
|
-
* @returns { preferences: UserPreferences | null }
|
|
19
|
-
*/
|
|
20
|
-
export declare const useUserPreferences: () => {
|
|
21
|
-
preferences: UserPreferences | null;
|
|
22
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
export { EventBus, eventBus } from './EventBus';
|
|
3
|
-
export type { Event, EventSource } from './types';
|
|
4
|
-
export { UserBus, userBus } from './UserBus';
|
|
5
|
-
export type { UserBusStoreConfig } from './UserBus';
|
|
6
|
-
export type { UserData, UserEvent, UserEventType, PlatformRole, navigationTypes, gender, userId } from './userTypes';
|
|
7
|
-
export { useCurrentUser } from './hooks/useCurrentUser';
|
|
8
|
-
export { useUserPreferences } from './hooks/useUserPreferences';
|
|
9
|
-
export { useUserActions } from './hooks/useUserActions';
|
|
10
|
-
export type { UserPreferences } from './hooks/useUserPreferences';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
/**
|
|
3
|
-
* Generic Event interface that can be used by any module.
|
|
4
|
-
* This is the base event type for the Events API.
|
|
5
|
-
*/
|
|
6
|
-
export interface Event {
|
|
7
|
-
id: string;
|
|
8
|
-
title: string;
|
|
9
|
-
start: Date | string;
|
|
10
|
-
end?: Date | string;
|
|
11
|
-
metadata?: Record<string, any>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Event source identifier type for tracking which module published the event
|
|
15
|
-
*/
|
|
16
|
-
export type EventSource = string;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
/**
|
|
3
|
-
* User data type definition.
|
|
4
|
-
* This is defined here to avoid circular dependencies.
|
|
5
|
-
*/
|
|
6
|
-
export type userId = string;
|
|
7
|
-
export type navigationTypes = "direct" | "instances";
|
|
8
|
-
export type gender = "male" | "female" | "other";
|
|
9
|
-
export type PlatformRole = "admin" | "developer" | "moderator" | "creator" | "user" | "guest";
|
|
10
|
-
export interface UserData {
|
|
11
|
-
id: userId;
|
|
12
|
-
name: string;
|
|
13
|
-
email: string;
|
|
14
|
-
gender?: gender;
|
|
15
|
-
image?: {
|
|
16
|
-
large: string;
|
|
17
|
-
medium: string;
|
|
18
|
-
thumbnail: string;
|
|
19
|
-
};
|
|
20
|
-
department?: string;
|
|
21
|
-
platformRoles: PlatformRole[];
|
|
22
|
-
privacySettings: {
|
|
23
|
-
allowAnalytics: boolean;
|
|
24
|
-
allowPersonalization: boolean;
|
|
25
|
-
allowCommunications: boolean;
|
|
26
|
-
allowThirdPartySharing: boolean;
|
|
27
|
-
};
|
|
28
|
-
gdprConsent: {
|
|
29
|
-
accepted: boolean;
|
|
30
|
-
acceptedDate?: string;
|
|
31
|
-
lastUpdated: string;
|
|
32
|
-
};
|
|
33
|
-
dataRetention: {
|
|
34
|
-
deleteAccountAfterInactivity?: number;
|
|
35
|
-
deleteDataAfterAccountDeletion?: number;
|
|
36
|
-
};
|
|
37
|
-
preferences: {
|
|
38
|
-
navigationType: navigationTypes;
|
|
39
|
-
visibleCourseLists: {
|
|
40
|
-
isStudent: boolean;
|
|
41
|
-
isStudentOld: boolean;
|
|
42
|
-
isTeacher: boolean;
|
|
43
|
-
isTeacherOld: boolean;
|
|
44
|
-
available: boolean;
|
|
45
|
-
};
|
|
46
|
-
lastVisitedCourses: string[];
|
|
47
|
-
visibleNavigation: string[];
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* User event types for UserBus communication.
|
|
52
|
-
* These events are published when user state changes occur.
|
|
53
|
-
*/
|
|
54
|
-
export type UserEventType = "user:loggedIn" | "user:updated" | "user:preferencesChanged" | "user:loggedOut";
|
|
55
|
-
export interface UserEvent {
|
|
56
|
-
type: UserEventType;
|
|
57
|
-
user: UserData | null;
|
|
58
|
-
timestamp: string;
|
|
59
|
-
metadata?: Record<string, unknown>;
|
|
60
|
-
}
|
|
61
|
-
export interface UserLoggedInEvent extends UserEvent {
|
|
62
|
-
type: "user:loggedIn";
|
|
63
|
-
user: UserData;
|
|
64
|
-
}
|
|
65
|
-
export interface UserUpdatedEvent extends UserEvent {
|
|
66
|
-
type: "user:updated";
|
|
67
|
-
user: UserData;
|
|
68
|
-
previousUser?: UserData;
|
|
69
|
-
}
|
|
70
|
-
export interface UserPreferencesChangedEvent extends UserEvent {
|
|
71
|
-
type: "user:preferencesChanged";
|
|
72
|
-
user: UserData;
|
|
73
|
-
changedPreferences?: string[];
|
|
74
|
-
}
|
|
75
|
-
export interface UserLoggedOutEvent extends UserEvent {
|
|
76
|
-
type: "user:loggedOut";
|
|
77
|
-
user: null;
|
|
78
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const NavigationFilter: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode, ReactElement } from 'react';
|
|
2
|
-
import { SvgIconComponent } from '@mui/icons-material';
|
|
3
|
-
/**
|
|
4
|
-
* Microservice Registry System
|
|
5
|
-
*
|
|
6
|
-
* @version 1.3.0
|
|
7
|
-
*
|
|
8
|
-
* A flexible system for registering and managing microservices for grid layouts.
|
|
9
|
-
* Supports dynamic registration, unregistration, and automatic re-rendering.
|
|
10
|
-
* Optimized to prevent excessive re-rendering.
|
|
11
|
-
*
|
|
12
|
-
* Now supports route providers for microservice-agnostic route registration.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Route provider function that returns Route elements
|
|
16
|
-
*/
|
|
17
|
-
export type RouteProvider = () => ReactElement[];
|
|
18
|
-
/**
|
|
19
|
-
* Microservice entry containing both the component and optional props
|
|
20
|
-
*/
|
|
21
|
-
export interface MicroserviceEntry {
|
|
22
|
-
Component: ComponentType<any>;
|
|
23
|
-
props?: Record<string, any>;
|
|
24
|
-
name: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
category?: string;
|
|
27
|
-
iconComponent?: SvgIconComponent;
|
|
28
|
-
metadata?: {
|
|
29
|
-
keepVisible?: boolean;
|
|
30
|
-
order?: number;
|
|
31
|
-
tags?: string[];
|
|
32
|
-
showInNavigation?: boolean;
|
|
33
|
-
route?: {
|
|
34
|
-
path: string;
|
|
35
|
-
element?: ReactNode;
|
|
36
|
-
index?: boolean;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare const useMicroserviceRegistryStore: () => {
|
|
41
|
-
microservices: Map<string, MicroserviceEntry>;
|
|
42
|
-
routeProviders: Map<string, RouteProvider>;
|
|
43
|
-
lastUpdate: number;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Register a new microservice.
|
|
47
|
-
*
|
|
48
|
-
* @param id - The unique identifier for this microservice.
|
|
49
|
-
* @param Component - The React component to render.
|
|
50
|
-
* @param options - Optional configuration for the microservice including props and metadata.
|
|
51
|
-
*/
|
|
52
|
-
export declare function registerMicroservice(id: string, Component: ComponentType<any>, options?: {
|
|
53
|
-
props?: Record<string, any>;
|
|
54
|
-
name?: string;
|
|
55
|
-
description?: string;
|
|
56
|
-
category?: string;
|
|
57
|
-
iconComponent?: SvgIconComponent;
|
|
58
|
-
metadata?: {
|
|
59
|
-
keepVisible?: boolean;
|
|
60
|
-
order?: number;
|
|
61
|
-
tags?: string[];
|
|
62
|
-
showInNavigation?: boolean;
|
|
63
|
-
route?: {
|
|
64
|
-
path: string;
|
|
65
|
-
element?: ReactNode;
|
|
66
|
-
index?: boolean;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}): void;
|
|
70
|
-
/**
|
|
71
|
-
* Unregister a microservice.
|
|
72
|
-
*
|
|
73
|
-
* @param id - The unique identifier for the microservice to remove.
|
|
74
|
-
*/
|
|
75
|
-
export declare function unregisterMicroservice(id: string): void;
|
|
76
|
-
/**
|
|
77
|
-
* Get a specific microservice by ID.
|
|
78
|
-
*
|
|
79
|
-
* @param id - The unique identifier for the microservice.
|
|
80
|
-
* @returns The microservice entry or undefined if not found.
|
|
81
|
-
*/
|
|
82
|
-
export declare function getMicroservice(id: string): MicroserviceEntry | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Get all registered microservices.
|
|
85
|
-
*
|
|
86
|
-
* @returns A Map of all registered microservices.
|
|
87
|
-
*/
|
|
88
|
-
export declare function getAllMicroservices(): Map<string, MicroserviceEntry>;
|
|
89
|
-
/**
|
|
90
|
-
* Get all microservice IDs.
|
|
91
|
-
*
|
|
92
|
-
* @returns An array of all registered microservice IDs.
|
|
93
|
-
*/
|
|
94
|
-
export declare function getMicroserviceIds(): string[];
|
|
95
|
-
/**
|
|
96
|
-
* Check if a microservice is registered.
|
|
97
|
-
*
|
|
98
|
-
* @param id - The unique identifier for the microservice.
|
|
99
|
-
* @returns True if the microservice is registered, false otherwise.
|
|
100
|
-
*/
|
|
101
|
-
export declare function isMicroserviceRegistered(id: string): boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Register a route provider.
|
|
104
|
-
* Route providers are functions that return Route elements, allowing microservices
|
|
105
|
-
* to register complex nested route structures.
|
|
106
|
-
*
|
|
107
|
-
* @param id - The unique identifier for this route provider.
|
|
108
|
-
* @param provider - Function that returns an array of Route elements.
|
|
109
|
-
*/
|
|
110
|
-
export declare function registerRouteProvider(id: string, provider: RouteProvider): void;
|
|
111
|
-
/**
|
|
112
|
-
* Unregister a route provider.
|
|
113
|
-
*
|
|
114
|
-
* @param id - The unique identifier for the route provider to remove.
|
|
115
|
-
*/
|
|
116
|
-
export declare function unregisterRouteProvider(id: string): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Hook that generates routes from registered microservices
|
|
4
|
-
* @returns Array of Route elements based on registered microservice routes
|
|
5
|
-
*/
|
|
6
|
-
export declare const useMicroserviceRoutes: () => ReactElement<unknown, string | import('react').JSXElementConstructor<any>>[];
|