mui-toolpad-extended-tuni 3.0.0 → 3.0.1
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/README.md +13 -11
- package/dist/index.cjs +115 -115
- package/dist/index.es.js +11917 -11877
- package/dist/src/App.d.ts +1 -1
- package/dist/src/LMSToolpad/{LMSProvider.d.ts → ToolpadProvider.d.ts} +7 -6
- package/dist/src/LMSToolpad/components/Calendar/CalendarMicroservice.d.ts +1 -1
- package/dist/src/LMSToolpad/components/Users/UserMicroservice.d.ts +1 -1
- package/dist/src/index.d.ts +3 -2
- package/package.json +5 -4
package/dist/src/App.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Architecture:
|
|
6
6
|
* - BrowserRouter: Provides routing context
|
|
7
|
-
* -
|
|
7
|
+
* - ToolpadProvider: Core Toolpad functionality, auth, theme, layout
|
|
8
8
|
* - Microservices: Top-level routing (Home, Help, Contact, dynamic routes)
|
|
9
9
|
* - UserMicroservice: Optional extension - self-contained user module with UserBus integration
|
|
10
10
|
* - CalendarMicroservice: Optional extension - self-contained calendar module with EventBus integration
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ToolpadProviderProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* ToolpadProvider Component
|
|
7
7
|
*
|
|
8
8
|
* @version 3.0.0
|
|
9
9
|
* @breaking-changes
|
|
10
|
+
* - Renamed from LMSProvider to ToolpadProvider in v3.0.0
|
|
10
11
|
* - Complete architectural restructuring for better separation of concerns
|
|
11
12
|
* - Removed direct course management (now handled by CourseManager)
|
|
12
13
|
* - Simplified authentication handling (now handled by AuthenticationManager)
|
|
@@ -24,11 +25,11 @@ export interface LMSProviderProps {
|
|
|
24
25
|
* @example
|
|
25
26
|
* ```tsx
|
|
26
27
|
* <BrowserRouter>
|
|
27
|
-
* <
|
|
28
|
+
* <ToolpadProvider>
|
|
28
29
|
* <YourApp />
|
|
29
|
-
* </
|
|
30
|
+
* </ToolpadProvider>
|
|
30
31
|
* </BrowserRouter>
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
declare const
|
|
34
|
-
export default
|
|
34
|
+
declare const ToolpadProvider: React.FC<ToolpadProviderProps>;
|
|
35
|
+
export default ToolpadProvider;
|
|
@@ -15,7 +15,7 @@ interface CalendarMicroserviceProps {
|
|
|
15
15
|
* Calendar receives events from EventBus, not directly from Courses.
|
|
16
16
|
* Courses publishes events via CourseEventPublisher, Calendar subscribes via CalendarEventAggregator.
|
|
17
17
|
*
|
|
18
|
-
* This component should be used in App.tsx, not
|
|
18
|
+
* This component should be used in App.tsx, not ToolpadProvider.tsx, to maintain
|
|
19
19
|
* proper separation of concerns and avoid tight coupling.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
@@ -16,7 +16,7 @@ interface UserMicroserviceProps {
|
|
|
16
16
|
* to react to user changes. Direct useUserStore access is only allowed within the Users
|
|
17
17
|
* module itself, in Events/UserBus for delegation, and in DevTools components.
|
|
18
18
|
*
|
|
19
|
-
* This component should be used in App.tsx, not
|
|
19
|
+
* This component should be used in App.tsx, not ToolpadProvider.tsx, to maintain
|
|
20
20
|
* proper separation of concerns and avoid tight coupling.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @format */
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as ToolpadProvider } from './LMSToolpad/ToolpadProvider';
|
|
3
3
|
export { BrowserRouter, HashRouter, MemoryRouter, Routes, Route, useNavigate, useLocation, useParams, Navigate, Link, Outlet, } from 'react-router-dom';
|
|
4
4
|
export * from './LMSToolpad/interfaces';
|
|
5
5
|
/**
|
|
@@ -15,7 +15,7 @@ export { useMicroserviceNavigation } from './LMSToolpad/components/Navigation/ho
|
|
|
15
15
|
export { useNavigationSectionManager } from './LMSToolpad/components/Navigation/hooks/useNavigationSectionManager';
|
|
16
16
|
export { useSyncNavigationFilters } from './LMSToolpad/components/Navigation/hooks/useSyncNavigationFilters';
|
|
17
17
|
export { useNavigationStore, filterNavigationByRole, } from './LMSToolpad/components/Navigation/store/useNavigationStore';
|
|
18
|
-
export type { NavigationStoreItem, NavigationPageStoreItem, NavigationHeaderItem, NavigationDividerItem, NavigationSection, ViewStore, ToolMetadata, } from './LMSToolpad/components/Navigation/store/types';
|
|
18
|
+
export type { NavigationStoreItem, NavigationPageStoreItem, NavigationHeaderItem, NavigationDividerItem, NavigationSection, ViewStore, ToolMetadata, addSectionProps, } from './LMSToolpad/components/Navigation/store/types';
|
|
19
19
|
export { useNavigationFilterStore } from './LMSToolpad/components/Navigation/store/useNavigationFilterStore';
|
|
20
20
|
export type { NavigationFilterState } from './LMSToolpad/components/Navigation/store/useNavigationFilterStore';
|
|
21
21
|
export { NavigationSectionBuilder } from './LMSToolpad/components/Navigation/NavigationBuilder';
|
|
@@ -28,6 +28,7 @@ export { useNotificationStore } from './LMSToolpad/components/Notifications/stor
|
|
|
28
28
|
export { default as Home } from './LMSToolpad/components/Routes/Home/Home';
|
|
29
29
|
export { default as Microservices } from './LMSToolpad/components/Microservices/Microservices';
|
|
30
30
|
export * from './common/components';
|
|
31
|
+
export { default as Scroller } from './common/components/ui/Scroller/Scroller';
|
|
31
32
|
export { SpeedDialButton } from './common/components/ui/SpeedDialButton/SpeedDialButton';
|
|
32
33
|
export { useGridItemContext } from './common/components/layout/GridLayout/GridItemContext';
|
|
33
34
|
export { createGridItem } from './common/components/layout/GridLayout/layoutUtils';
|
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.0.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.cjs",
|
|
9
9
|
"module": "./dist/index.es.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/Jalez/mui-toolpad-extended-tuni"
|
|
16
|
+
"url": "git+https://github.com/Jalez/mui-toolpad-extended-tuni.git"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"clean": "rm -rf dist && rm -rf build && rm -rf coverage && rm -rf node_modules/.cache",
|
|
40
40
|
"dev": "vite --open --port 3100",
|
|
41
|
-
"build": "tsc && vite build",
|
|
41
|
+
"build": "tsc --project tsconfig.json && vite build",
|
|
42
42
|
"lint": "eslint .",
|
|
43
43
|
"preview": "vite preview",
|
|
44
44
|
"test": "vitest --coverage"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-colorful": "^5.6.1",
|
|
82
82
|
"react-dom": "^19.0.0",
|
|
83
83
|
"react-grid-layout": "^1.5.0",
|
|
84
|
-
"react-router-dom": "^7.
|
|
84
|
+
"react-router-dom": "^7.11.0",
|
|
85
85
|
"styled-components": "^6.1.0",
|
|
86
86
|
"uuid": "^10.0.0",
|
|
87
87
|
"zustand": "^4.5.4"
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
"globals": "^15.9.0",
|
|
108
108
|
"jsdom": "^25.0.1",
|
|
109
109
|
"msw": "^2.7.0",
|
|
110
|
+
"mui-toolpad-extended-tuni": "^3.0.0",
|
|
110
111
|
"typescript": "^5.7.3",
|
|
111
112
|
"typescript-eslint": "^8.0.0",
|
|
112
113
|
"vite": "^6.4.0",
|