@aiquants/menu-bar 0.5.0 → 0.6.0
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 +4 -4
- package/dist/components/SessionInfo.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/types/user.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ export { SessionInfo, DefaultLink } from '@aiquants/menu-bar';
|
|
|
31
31
|
export type { IMenu, ISubmenu } from '@aiquants/menu-bar';
|
|
32
32
|
export type { Theme } from '@aiquants/menu-bar';
|
|
33
33
|
export type { SessionInfoProps, LinkProps } from '@aiquants/menu-bar';
|
|
34
|
-
export type {
|
|
34
|
+
export type { UserProfile, UserPhoto } from '@aiquants/menu-bar';
|
|
35
35
|
|
|
36
36
|
// CSS (import separately)
|
|
37
37
|
import '@aiquants/menu-bar/css';
|
|
@@ -123,10 +123,10 @@ interface ISubmenu {
|
|
|
123
123
|
}
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
###
|
|
126
|
+
### UserProfile Type
|
|
127
127
|
|
|
128
128
|
```tsx
|
|
129
|
-
interface
|
|
129
|
+
interface UserProfile {
|
|
130
130
|
displayName: string;
|
|
131
131
|
photos: UserPhoto[];
|
|
132
132
|
id?: string;
|
|
@@ -141,7 +141,7 @@ interface UserPhoto {
|
|
|
141
141
|
|
|
142
142
|
```tsx
|
|
143
143
|
interface SessionInfoProps {
|
|
144
|
-
user:
|
|
144
|
+
user: UserProfile | null;
|
|
145
145
|
onLogout?: () => void;
|
|
146
146
|
LinkComponent: React.ComponentType<LinkProps>;
|
|
147
147
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserProfile } from '../types/user';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Link component props interface.
|
|
@@ -23,7 +23,7 @@ export declare const DefaultLink: ({ to, className, children }: LinkProps) => Re
|
|
|
23
23
|
*/
|
|
24
24
|
export interface SessionInfoProps {
|
|
25
25
|
/** User profile information from Google OAuth */
|
|
26
|
-
user:
|
|
26
|
+
user: UserProfile | null;
|
|
27
27
|
/** Custom Link component (optional, defaults to DefaultLink) */
|
|
28
28
|
LinkComponent?: React.ComponentType<LinkProps>;
|
|
29
29
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { DefaultLink, SessionInfo } from './components/SessionInfo';
|
|
|
3
3
|
export type { IMenu, ISubmenu } from './contents/MenuList';
|
|
4
4
|
export { MenuBar } from './MenuBar';
|
|
5
5
|
export type { Theme } from './types';
|
|
6
|
-
export type {
|
|
6
|
+
export type { UserProfile } from './types/user';
|
package/dist/types/user.d.ts
CHANGED