@eintrek/erp-shell 0.1.20 → 0.1.22
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 -2
- package/dist/hooks/use-org-side-effects.d.ts +14 -3
- package/dist/index.esm.js +68 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +68 -15
- package/dist/index.js.map +1 -1
- package/dist/navigation/navigation-data-helpers.d.ts +3 -1
- package/dist/navigation/organization-switcher.d.ts +5 -0
- package/package.json +1 -1
|
@@ -20,5 +20,7 @@ export declare function filterNavigationModulesByPermission(modules: Module[], r
|
|
|
20
20
|
export declare function getActiveModule(pathname: string, modules: Module[]): string | null;
|
|
21
21
|
/** Find the active sub-module id from `pathname`. */
|
|
22
22
|
export declare function getActiveSubModule(pathname: string, modules: Module[]): string | null;
|
|
23
|
-
/** Prepend `code` (org code) to a relative URL so `/sales` → `/O25.../sales`.
|
|
23
|
+
/** Prepend `code` (org code) to a relative URL so `/sales` → `/O25.../sales`.
|
|
24
|
+
* Absolute `http(s)://` URLs are left intact; optional `{code}` placeholder is replaced.
|
|
25
|
+
*/
|
|
24
26
|
export declare function buildUrlWithCode(code: string | undefined, url: string): string;
|
|
@@ -3,6 +3,11 @@ export interface OrganizationLike {
|
|
|
3
3
|
id: string | number;
|
|
4
4
|
name?: string | null;
|
|
5
5
|
code?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Public/blob logo URL. When missing or broken, falls back to Building2.
|
|
8
|
+
* Host apps typically pass print-format `logo_url` for the active org.
|
|
9
|
+
*/
|
|
10
|
+
logoUrl?: string | null;
|
|
6
11
|
}
|
|
7
12
|
export interface OrganizationSwitcherProps {
|
|
8
13
|
/** Currently-selected org (typically from ERP context). */
|