@eintrek/erp-shell 0.1.18 → 0.1.19
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/dist/index.esm.js +13 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/navigation/nav-user.d.ts +13 -1
- package/package.json +1 -1
|
@@ -7,7 +7,19 @@ export interface NavUserProps {
|
|
|
7
7
|
name?: string | null;
|
|
8
8
|
description?: string | null;
|
|
9
9
|
language?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Company logo shown in place of the generic building icon. Must be a
|
|
12
|
+
* src the browser can load unauthenticated (public URL / data: / blob:)
|
|
13
|
+
* — the shell has no API client to fetch a protected image with.
|
|
14
|
+
*/
|
|
15
|
+
logoUrl?: string | null;
|
|
10
16
|
} | null;
|
|
17
|
+
/**
|
|
18
|
+
* Profile picture for the sidebar avatar. Takes precedence over
|
|
19
|
+
* `session.user.image`, which most apps never populate — pass a blob: URL
|
|
20
|
+
* when the image sits behind an authenticated endpoint.
|
|
21
|
+
*/
|
|
22
|
+
avatarSrc?: string | null;
|
|
11
23
|
/** Where to navigate on "ข้อมูลส่วนตัว". Hidden if omitted. */
|
|
12
24
|
profileHref?: string;
|
|
13
25
|
/** Where to navigate on "เลือกธุรกิจ". Default: "/select-organization". */
|
|
@@ -15,4 +27,4 @@ export interface NavUserProps {
|
|
|
15
27
|
/** Redirect after signOut. Default: "/auth/signin". */
|
|
16
28
|
signInRedirectHref?: string;
|
|
17
29
|
}
|
|
18
|
-
export declare function NavUser({ organization, profileHref, selectOrganizationHref, signInRedirectHref, }?: NavUserProps): import("react/jsx-runtime").JSX.Element | null;
|
|
30
|
+
export declare function NavUser({ organization, avatarSrc, profileHref, selectOrganizationHref, signInRedirectHref, }?: NavUserProps): import("react/jsx-runtime").JSX.Element | null;
|