@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 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 { LMSProvider, Microservices } from 'mui-toolpad-extended-tuni';
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
- <LMSProvider>
40
+ <ToolpadProvider>
41
41
  <Microservices>
42
42
  <UserMicroservice />
43
43
  {/* Other microservices */}
44
44
  </Microservices>
45
- </LMSProvider>
45
+ </ToolpadProvider>
46
46
  </BrowserRouter>
47
47
  );
48
48
  }
@@ -1,3 +1,4 @@
1
+ /** @format */
1
2
  /**
2
3
  * UserEventPublisher publishes user state changes to the UserBus.
3
4
  * This component converts user store changes to user events and publishes them.
@@ -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 LMSProvider.tsx, to maintain
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
@@ -0,0 +1,3 @@
1
+ /** @format */
2
+ declare const UserSwitcher: React.FC;
3
+ export default UserSwitcher;
@@ -1,6 +1,2 @@
1
1
  /** @format */
2
- /**
3
- * Configure UserBus with store methods from useUserStore.
4
- * This should be called once when the users package is initialized.
5
- */
6
2
  export declare function configureUserBus(): void;