@declarion/react 0.1.58 → 0.1.59
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-lib/index.js +1041 -1034
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/branding.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true when `value` is a renderable logo URL. Accepts:
|
|
3
|
+
* - root-relative paths ("/logo.png"), served from the UI bundle root;
|
|
4
|
+
* - absolute http(s) URLs;
|
|
5
|
+
* - data:image/... URIs.
|
|
6
|
+
*
|
|
7
|
+
* Rejects inline SVG markup and any other string so callers can't
|
|
8
|
+
* accidentally inject operator-controlled YAML into a dangerouslySet
|
|
9
|
+
* surface. Returns false for null/undefined/empty input.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isValidLogoUrl(value: string | undefined | null): boolean;
|