tycho-components 0.45.3 → 0.45.4
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/configs/brand.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export declare function resolveBrandLogo(options?: {
|
|
|
26
26
|
brandId?: string;
|
|
27
27
|
origin?: string;
|
|
28
28
|
}): string;
|
|
29
|
+
/**
|
|
30
|
+
* Absolute short platform logo URL: `{origin}/brands/{id}/logo-short.png`.
|
|
31
|
+
* Use in compact chrome (apps drawer tile, etc.).
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveBrandLogoShort(options?: {
|
|
34
|
+
brandId?: string;
|
|
35
|
+
origin?: string;
|
|
36
|
+
}): string;
|
|
29
37
|
/**
|
|
30
38
|
* Resolve platform branding for a front-end app.
|
|
31
39
|
* Pass `options` from Vite plugins (Node) where `import.meta.env` may be unavailable.
|
package/dist/configs/brand.js
CHANGED
|
@@ -58,6 +58,15 @@ export function resolveBrandLogo(options) {
|
|
|
58
58
|
const origin = options?.origin ?? readEnvOrigin();
|
|
59
59
|
return `${brandAssetBase(id, origin)}/logo.png`;
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Absolute short platform logo URL: `{origin}/brands/{id}/logo-short.png`.
|
|
63
|
+
* Use in compact chrome (apps drawer tile, etc.).
|
|
64
|
+
*/
|
|
65
|
+
export function resolveBrandLogoShort(options) {
|
|
66
|
+
const id = resolveBrandId(options?.brandId ?? readEnvBrandId());
|
|
67
|
+
const origin = options?.origin ?? readEnvOrigin();
|
|
68
|
+
return `${brandAssetBase(id, origin)}/logo-short.png`;
|
|
69
|
+
}
|
|
61
70
|
/**
|
|
62
71
|
* Resolve platform branding for a front-end app.
|
|
63
72
|
* Pass `options` from Vite plugins (Node) where `import.meta.env` may be unavailable.
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { default as CookieStorage } from './CookieStorage';
|
|
|
4
4
|
export { commonLocalization, commonResources, featureResources, mergeResources, } from './Localization';
|
|
5
5
|
export { applyAuthErrorHandling, createApiClient, dispatchAccessDeniedError, dispatchApiError, dispatchClientError, dispatchServerApiError, isAccessDeniedApiError, isHandledApiError, isHandledAuthError, markApiErrorHandled, markAuthErrorHandled, parserApiBase, lexiconApiBase, platformApi, resolveAccessDeniedMessage, } from './api';
|
|
6
6
|
export type { ApiErrorHandled, ApplyAuthErrorHandlingOptions, AuthErrorHandled, AuthErrorHandling, CreateApiClientOptions, ServerErrorHandling, } from './api';
|
|
7
|
-
export { brandAssetBase, brandFromEnv, createBrand, resolveBrandLogo, } from './brand';
|
|
7
|
+
export { brandAssetBase, brandFromEnv, createBrand, resolveBrandLogo, resolveBrandLogoShort, } from './brand';
|
|
8
8
|
export type { AppCode, BrandConfig, BrandId } from './brand';
|
|
9
9
|
export { default as ProfileService } from './services/ProfileService';
|
|
10
10
|
export { getCommonDispatch, registerCommonDispatch, } from './store/commonDispatchBridge';
|
package/dist/configs/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { default as CommonDispatchBridge } from './CommonDispatchBridge';
|
|
|
3
3
|
export { default as CookieStorage } from './CookieStorage';
|
|
4
4
|
export { commonLocalization, commonResources, featureResources, mergeResources, } from './Localization';
|
|
5
5
|
export { applyAuthErrorHandling, createApiClient, dispatchAccessDeniedError, dispatchApiError, dispatchClientError, dispatchServerApiError, isAccessDeniedApiError, isHandledApiError, isHandledAuthError, markApiErrorHandled, markAuthErrorHandled, parserApiBase, lexiconApiBase, platformApi, resolveAccessDeniedMessage, } from './api';
|
|
6
|
-
export { brandAssetBase, brandFromEnv, createBrand, resolveBrandLogo, } from './brand';
|
|
6
|
+
export { brandAssetBase, brandFromEnv, createBrand, resolveBrandLogo, resolveBrandLogoShort, } from './brand';
|
|
7
7
|
export { default as ProfileService } from './services/ProfileService';
|
|
8
8
|
export { getCommonDispatch, registerCommonDispatch, } from './store/commonDispatchBridge';
|
|
9
9
|
export { TOUR_FALLBACK_LOCALE, TOUR_LOCALES, buildAnchorMap, buildDriveSteps, createTourDriver, defaultMatchPathnames, flattenWorkflowSteps, getWorkflowsForPath, hasMatchingWorkflow, loadKnowledgeBase, localizeKnowledgeBase, pickLocalizedString, resolveAnchor, resolveAnchorById, resolveTourLocale, useDriverTour, waitForSelector, } from './tour';
|
|
@@ -7,7 +7,7 @@ import { useCorpusUtils } from "../../../configs/useCorpusUtils";
|
|
|
7
7
|
import { useLoggedUtils } from "../../../configs/useLoggedUtils";
|
|
8
8
|
import HeaderButtons from "../HeaderButtons";
|
|
9
9
|
import HeaderUser from "../HeaderUser";
|
|
10
|
-
import {
|
|
10
|
+
import { resolveBrandLogoShort } from "../../../configs/brand";
|
|
11
11
|
import { AvailableApps } from "../types/App";
|
|
12
12
|
import youtube from "./youtube.png";
|
|
13
13
|
import "./style.scss";
|
|
@@ -20,7 +20,7 @@ export default function HeaderApps({ navigateLogout, navigateNotLogged, hideKeyb
|
|
|
20
20
|
const resources = [
|
|
21
21
|
{
|
|
22
22
|
code: "platform",
|
|
23
|
-
image:
|
|
23
|
+
image: resolveBrandLogoShort(),
|
|
24
24
|
visibility: "public",
|
|
25
25
|
external: platformOrigin || undefined,
|
|
26
26
|
},
|