@eintrek/erp-shell 0.1.61 → 0.1.62
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.d.ts +1 -0
- package/dist/index.esm.js +40 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +40 -5
- package/dist/index.js.map +1 -1
- package/dist/navigation/nav-user.d.ts +4 -1
- package/dist/navigation/platform-url.d.ts +23 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -30,7 +30,10 @@ export interface NavUserProps {
|
|
|
30
30
|
* when the image sits behind an authenticated endpoint.
|
|
31
31
|
*/
|
|
32
32
|
avatarSrc?: string | null;
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Where "ตั้งค่าบัญชี" goes — `accountSettingsHref(orgCode)`, Platform's
|
|
35
|
+
* page. An absolute URL is opened with a full page load. Hidden if omitted.
|
|
36
|
+
*/
|
|
34
37
|
profileHref?: string;
|
|
35
38
|
/** Where to navigate on "เลือกธุรกิจ". Default: "/select-organization". */
|
|
36
39
|
selectOrganizationHref?: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where Platform lives, and the pages every app sends people to on it.
|
|
3
|
+
*
|
|
4
|
+
* Personal settings — profile, password, signature, LINE — exist once, on
|
|
5
|
+
* Platform. Every other app links there instead of keeping its own copy.
|
|
6
|
+
*
|
|
7
|
+
* Plain .ts (no JSX) so node --test can import it; app-registry.tsx reads the
|
|
8
|
+
* base from here too, so the app switcher and the account link never disagree.
|
|
9
|
+
*/
|
|
10
|
+
/** Read per call: Next inlines NEXT_PUBLIC_* at the consuming app's build. */
|
|
11
|
+
export declare function platformBaseUrl(): string;
|
|
12
|
+
export interface AccountSettingsHrefOptions {
|
|
13
|
+
/**
|
|
14
|
+
* The app asking. Platform keeps the link relative so it stays a
|
|
15
|
+
* client-side navigation; every other app gets Platform's absolute URL.
|
|
16
|
+
*/
|
|
17
|
+
activeApp?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* ตั้งค่าบัญชี for an organisation: `/{code}/account/settings` on Platform.
|
|
21
|
+
* Undefined without an organisation code — there is no page to open then.
|
|
22
|
+
*/
|
|
23
|
+
export declare function accountSettingsHref(orgCode: string | null | undefined, { activeApp }?: AccountSettingsHrefOptions): string | undefined;
|
package/dist/version.d.ts
CHANGED