@mui-toolpad-extended-tuni/users 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 CHANGED
@@ -5,14 +5,20 @@ Users microservice extension for MUI Toolpad Extended TUNI. This package provide
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @mui-toolpad-extended-tuni/users
8
+ npm install @mui-toolpad-extended-tuni/users @mui-toolpad-extended-tuni/main @mui-toolpad-extended-tuni/core
9
9
  ```
10
10
 
11
- **Note**: This package requires `mui-toolpad-extended-tuni@^3.0.0` as a peer dependency.
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
- - `mui-toolpad-extended-tuni@^3.0.0`
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`
@@ -23,6 +29,16 @@ npm install @mui-toolpad-extended-tuni/users
23
29
  - `axios@^1.7.0`
24
30
  - `zustand@^4.5.0`
25
31
 
32
+ ### Installation Example
33
+
34
+ ```bash
35
+ npm install @mui-toolpad-extended-tuni/users @mui-toolpad-extended-tuni/main @mui-toolpad-extended-tuni/core \
36
+ react react-dom react-router-dom \
37
+ @mui/material @mui/icons-material \
38
+ @emotion/react @emotion/styled \
39
+ axios zustand
40
+ ```
41
+
26
42
  ## Usage
27
43
 
28
44
  ### Basic Setup
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("mui-toolpad-extended-tuni"),A=require("react"),O=require("@mui/material");function Ae(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B={exports:{}},z={},M={exports:{}},H={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@mui-toolpad-extended-tuni/main"),A=require("react"),O=require("@mui/material");function Ae(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B={exports:{}},z={},M={exports:{}},H={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.js
4
4
  *
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { userBus } from 'mui-toolpad-extended-tuni';
1
+ import { userBus } from '@mui-toolpad-extended-tuni/main';
2
2
  import { configureUserBus } from './configureUserBus';
3
3
  export { default as UserMicroservice } from './UserMicroservice';
4
4
  export { useUserStore } from './store/useUserStore';
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { convertObjectKeysToUnderscore as Le, axios as J, convertObjectKeysToCamelCase as ie, userBus as N, useDialogStore as ke, useNotificationStore as Ve, FormDialog as We, EditableImage as Me, EditableText as H, EditableSwitch as ge, EditableNumber as Se, useSyncNavigationFilters as Fe, registerDialog as Ge } from "mui-toolpad-extended-tuni";
2
- import { userBus as Tt } from "mui-toolpad-extended-tuni";
1
+ import { convertObjectKeysToUnderscore as Le, axios as J, convertObjectKeysToCamelCase as ie, userBus as N, useDialogStore as ke, useNotificationStore as Ve, FormDialog as We, EditableImage as Me, EditableText as H, EditableSwitch as ge, EditableNumber as Se, useSyncNavigationFilters as Fe, registerDialog as Ge } from "@mui-toolpad-extended-tuni/main";
2
+ import { userBus as Tt } from "@mui-toolpad-extended-tuni/main";
3
3
  import P, { useState as ve, useEffect as V, useRef as Je } from "react";
4
4
  import { Box as C, Paper as K, Typography as X, MenuItem as $e, ListItemIcon as Be, Avatar as Ye, ListItemText as ze } from "@mui/material";
5
5
  function qe(t) {
@@ -1,4 +1,4 @@
1
- import { UserData } from 'mui-toolpad-extended-tuni';
1
+ import { UserData } from '@mui-toolpad-extended-tuni/main';
2
2
  export declare const getCurrentUser: () => Promise<UserData>;
3
3
  export declare const getUsers: (courseId?: string) => Promise<UserData[]>;
4
4
  export declare const createUser: (userData: Partial<UserData>) => Promise<UserData>;
@@ -1,5 +1,5 @@
1
- import { fetchState, UserData } from 'mui-toolpad-extended-tuni';
2
- export type { UserData, PlatformRole, userId, navigationTypes, gender } from 'mui-toolpad-extended-tuni';
1
+ import { fetchState, UserData } from '@mui-toolpad-extended-tuni/main';
2
+ export type { UserData, PlatformRole, userId, navigationTypes, gender } from '@mui-toolpad-extended-tuni/main';
3
3
  export interface UserState {
4
4
  fetchState: fetchState;
5
5
  user: UserData | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui-toolpad-extended-tuni/users",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Users microservice for MUI Toolpad Extended TUNI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -30,21 +30,29 @@
30
30
  "users"
31
31
  ],
32
32
  "license": "MIT",
33
- "sideEffects": ["./dist/index.es.js", "./dist/index.cjs", "./dist/configureUserBus.js"],
33
+ "sideEffects": [
34
+ "./dist/index.es.js",
35
+ "./dist/index.cjs",
36
+ "./dist/configureUserBus.js"
37
+ ],
34
38
  "scripts": {
35
39
  "build": "tsc --skipLibCheck && vite build",
36
40
  "dev": "vite build --watch"
37
41
  },
38
42
  "peerDependencies": {
39
- "mui-toolpad-extended-tuni": "^3.0.0",
40
43
  "@emotion/react": "^11.0.0",
41
44
  "@emotion/styled": "^11.0.0",
45
+ "@mui-toolpad-extended-tuni/core": "^3.1.0",
46
+ "@mui-toolpad-extended-tuni/main": "^3.3.0",
42
47
  "@mui/icons-material": "^7.0.0",
43
48
  "@mui/material": "^7.0.0",
49
+ "axios": "^1.7.0",
44
50
  "react": "^19.0.0",
45
51
  "react-dom": "^19.0.0",
46
52
  "react-router-dom": "^7.0.0",
47
- "axios": "^1.7.0",
48
53
  "zustand": "^4.5.0"
54
+ },
55
+ "devDependencies": {
56
+ "@mui-toolpad-extended-tuni/main": "^3.3.0"
49
57
  }
50
58
  }