@mui-toolpad-extended-tuni/courses 3.0.3 → 3.0.4
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 +20 -4
- package/dist/CourseTools.d.ts +1 -1
- package/dist/Forms/CourseSettings/CourseSettingsTabs.d.ts +1 -1
- package/dist/Forms/CourseSettings/tabs/EnrollmentTab.d.ts +1 -1
- package/dist/Forms/CourseSettings/tabs/StaffTab.d.ts +1 -1
- package/dist/components/ToolDisplayer/ToolCard.d.ts +1 -1
- package/dist/components/ToolDisplayer/ToolDisplayer.d.ts +1 -1
- package/dist/context/CourseMicroserviceContext.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +1 -1
- package/dist/store/useCourseStore.d.ts +2 -2
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -5,14 +5,20 @@ Courses microservice extension for MUI Toolpad Extended TUNI. This package provi
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @mui-toolpad-extended-tuni/courses
|
|
8
|
+
npm install @mui-toolpad-extended-tuni/courses @mui-toolpad-extended-tuni/main @mui-toolpad-extended-tuni/core
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
**
|
|
11
|
+
**Important**: You must also install `@mui-toolpad-extended-tuni/main` and `@mui-toolpad-extended-tuni/core` as they are required peer dependencies.
|
|
12
12
|
|
|
13
|
-
## Peer Dependencies
|
|
13
|
+
## Required Peer Dependencies
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
This package requires the following peer dependencies to be installed:
|
|
16
|
+
|
|
17
|
+
### Required Packages
|
|
18
|
+
- **`@mui-toolpad-extended-tuni/main`**: ^3.3.0 - **MUST be installed separately**
|
|
19
|
+
- **`@mui-toolpad-extended-tuni/core`**: ^3.1.0 - **MUST be installed separately** (also required by main)
|
|
20
|
+
|
|
21
|
+
### React & UI Framework
|
|
16
22
|
- `react@^19.0.0`
|
|
17
23
|
- `react-dom@^19.0.0`
|
|
18
24
|
- `react-router-dom@^7.0.0`
|
|
@@ -24,6 +30,16 @@ npm install @mui-toolpad-extended-tuni/courses
|
|
|
24
30
|
- `axios@^1.7.0`
|
|
25
31
|
- `zustand@^4.5.0`
|
|
26
32
|
|
|
33
|
+
### Installation Example
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install @mui-toolpad-extended-tuni/courses @mui-toolpad-extended-tuni/main @mui-toolpad-extended-tuni/core \
|
|
37
|
+
react react-dom react-router-dom \
|
|
38
|
+
@mui/material @mui/icons-material @mui/x-date-pickers \
|
|
39
|
+
@emotion/react @emotion/styled \
|
|
40
|
+
axios zustand
|
|
41
|
+
```
|
|
42
|
+
|
|
27
43
|
## Usage
|
|
28
44
|
|
|
29
45
|
### Basic Setup
|
package/dist/CourseTools.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CourseRaw } from '../../store/useCourseStore';
|
|
2
|
-
import { UserData } from 'mui-toolpad-extended-tuni';
|
|
2
|
+
import { UserData } from '@mui-toolpad-extended-tuni/main';
|
|
3
3
|
type CourseSettingsProps = {
|
|
4
4
|
formData: CourseRaw;
|
|
5
5
|
handleUpdateFormData: (newData: CourseRaw) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { NavigationPageStoreItem } from 'mui-toolpad-extended-tuni';
|
|
2
|
+
import { NavigationPageStoreItem } from '@mui-toolpad-extended-tuni/main';
|
|
3
3
|
/**
|
|
4
4
|
* Context for course microservices to register themselves
|
|
5
5
|
*/
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var oa=Object.defineProperty;var aa=(t,e,r)=>e in t?oa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Qn=(t,e,r)=>aa(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("mui-toolpad-extended-tuni"),B=require("react"),S=require("@mui/material"),la=require("@emotion/styled"),ua=require("@emotion/react"),gt=require("@mui/x-date-pickers");function ca(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const be=ca(B);function wi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xt={exports:{}},$t={};/**
|
|
1
|
+
"use strict";var oa=Object.defineProperty;var aa=(t,e,r)=>e in t?oa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Qn=(t,e,r)=>aa(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("@mui-toolpad-extended-tuni/main"),B=require("react"),S=require("@mui/material"),la=require("@emotion/styled"),ua=require("@emotion/react"),gt=require("@mui/x-date-pickers");function ca(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const be=ca(B);function wi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xt={exports:{}},$t={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ha = Object.defineProperty;
|
|
2
2
|
var Za = (t, e, r) => e in t ? Ha(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var Es = (t, e, r) => Za(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { axios as ns, convertObjectKeysToUnderscore as Ja, convertObjectKeysToCamelCase as ss, EditableImage as Ka, EditableText as pt, EditableAutocomplete as Ut, EditableNumber as ro, EditableSelect as no, parseDate as Mr, EditableSwitch as Qa, useDialogStore as so, useUserActions as Xa, useNotificationStore as tr, userBus as $r, FormDialog as el, useNavigationStore as io, useParams as Br, useNavigate as rr, LoadingScreen as oo, Outlet as ao, CenteredHeading as Cr, Route as Ue, MicroserviceSubsections as ks, registerRouteProvider as tl, unregisterRouteProvider as rl, NavigationSectionBuilder as nl, eventBus as Is, Scroller as Ms, useLocation as sl, useGridItemContext as il, useRetry as ol, createGridItem as al, registerDialog as ll } from "mui-toolpad-extended-tuni";
|
|
4
|
+
import { axios as ns, convertObjectKeysToUnderscore as Ja, convertObjectKeysToCamelCase as ss, EditableImage as Ka, EditableText as pt, EditableAutocomplete as Ut, EditableNumber as ro, EditableSelect as no, parseDate as Mr, EditableSwitch as Qa, useDialogStore as so, useUserActions as Xa, useNotificationStore as tr, userBus as $r, FormDialog as el, useNavigationStore as io, useParams as Br, useNavigate as rr, LoadingScreen as oo, Outlet as ao, CenteredHeading as Cr, Route as Ue, MicroserviceSubsections as ks, registerRouteProvider as tl, unregisterRouteProvider as rl, NavigationSectionBuilder as nl, eventBus as Is, Scroller as Ms, useLocation as sl, useGridItemContext as il, useRetry as ol, createGridItem as al, registerDialog as ll } from "@mui-toolpad-extended-tuni/main";
|
|
5
5
|
import * as ye from "react";
|
|
6
6
|
import jt, { useState as we, useEffect as Ce, useContext as ul, createContext as cl, useCallback as $s, useMemo as is } from "react";
|
|
7
7
|
import { Box as oe, Stack as xe, Divider as os, Typography as ge, List as Pn, ListItem as Ln, Avatar as Vn, ListItemText as Ct, IconButton as ct, useTheme as Yr, useMediaQuery as as, Tabs as Fn, Tab as ze, FormControlLabel as dl, Switch as fl, TextField as lo, Paper as Wn, FormControl as hl, InputLabel as ml, Select as pl, MenuItem as Je, Tooltip as Pe, Menu as _s, ListItemIcon as dr, Card as uo, Skeleton as gl, CardActionArea as yl, CardContent as bl, Button as co, Fade as vl, SvgIcon as Sl } from "@mui/material";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fetchState } from 'mui-toolpad-extended-tuni';
|
|
1
|
+
import { fetchState } from '@mui-toolpad-extended-tuni/main';
|
|
2
2
|
export type courseRole = "student" | "teacher" | "guest";
|
|
3
3
|
export type visibilityMode = "public" | "enrolled" | "private";
|
|
4
4
|
export type courseEventType = "lecture" | "exercise" | "exam" | "deadline" | "other";
|
|
@@ -142,5 +142,5 @@ interface CourseStore {
|
|
|
142
142
|
* - Updated Course interface requires code and instance fields
|
|
143
143
|
* - Changed course identification logic to use code + instance
|
|
144
144
|
*/
|
|
145
|
-
declare const useCourseStore: import('zustand/traditional').UseBoundStoreWithEqualityFn<import('zustand
|
|
145
|
+
declare const useCourseStore: import('zustand/traditional').UseBoundStoreWithEqualityFn<import('zustand').StoreApi<CourseStore>>;
|
|
146
146
|
export default useCourseStore;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui-toolpad-extended-tuni/courses",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Courses microservice for MUI Toolpad Extended TUNI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"dev": "vite build --watch"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"mui-toolpad-extended-tuni": "^3.
|
|
39
|
+
"@mui-toolpad-extended-tuni/core": "^3.1.0",
|
|
40
|
+
"@mui-toolpad-extended-tuni/main": "^3.3.0",
|
|
40
41
|
"@emotion/react": "^11.0.0",
|
|
41
42
|
"@emotion/styled": "^11.0.0",
|
|
42
43
|
"@mui/icons-material": "^7.0.0",
|
|
@@ -47,6 +48,8 @@
|
|
|
47
48
|
"react-router-dom": "^7.0.0",
|
|
48
49
|
"axios": "^1.7.0",
|
|
49
50
|
"zustand": "^4.5.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@mui-toolpad-extended-tuni/main": "^3.3.0"
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
|