@mui-toolpad-extended-tuni/users 3.0.1 → 3.0.3
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 +3 -3
- package/dist/UserEventPublisher.d.ts +1 -0
- package/dist/UserMicroservice.d.ts +1 -1
- package/dist/UserSwitcher.d.ts +3 -0
- package/dist/configureUserBus.d.ts +0 -4
- package/dist/index.cjs +8 -241
- package/dist/index.d.ts +4 -1
- package/dist/index.es.js +766 -13014
- package/package.json +2 -2
- package/dist/mocks/constants.d.ts +0 -59
- package/dist/mocks/endpoints.d.ts +0 -3
- package/dist/mocks/generators.d.ts +0 -6
- package/dist/mocks/types.d.ts +0 -52
package/README.md
CHANGED
|
@@ -31,18 +31,18 @@ The users microservice automatically configures the UserBus when imported:
|
|
|
31
31
|
|
|
32
32
|
```tsx
|
|
33
33
|
import { BrowserRouter } from 'react-router-dom';
|
|
34
|
-
import {
|
|
34
|
+
import { ToolpadProvider, Microservices } from 'mui-toolpad-extended-tuni';
|
|
35
35
|
import { UserMicroservice } from '@mui-toolpad-extended-tuni/users';
|
|
36
36
|
|
|
37
37
|
function App() {
|
|
38
38
|
return (
|
|
39
39
|
<BrowserRouter>
|
|
40
|
-
<
|
|
40
|
+
<ToolpadProvider>
|
|
41
41
|
<Microservices>
|
|
42
42
|
<UserMicroservice />
|
|
43
43
|
{/* Other microservices */}
|
|
44
44
|
</Microservices>
|
|
45
|
-
</
|
|
45
|
+
</ToolpadProvider>
|
|
46
46
|
</BrowserRouter>
|
|
47
47
|
);
|
|
48
48
|
}
|
|
@@ -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
|