@veeqo/ui 5.6.0 → 5.7.0
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/components/Anchor/Anchor.d.ts +6 -7
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/isExternalLink.d.ts +9 -0
- package/dist/utils/isExternalLink.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const defaultAllowedHostnames: string[];
|
|
2
|
+
/**
|
|
3
|
+
* Check if a URL/path string is an external link
|
|
4
|
+
* @param {string} urlOrPath - URL or path
|
|
5
|
+
* @param {string[]} allowedHostnames - List of allowed hostnames - default: ['app.veeqo.com']
|
|
6
|
+
|
|
7
|
+
* @returns {Boolean}
|
|
8
|
+
*/
|
|
9
|
+
export declare function isExternalLink(urlOrPath: string, allowedHostnames?: string[]): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|