@bluealba/pae-ui-react-core 4.1.1 → 4.1.2-develop-1324
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.cjs.js +39 -39
- package/dist/index.esm.js +1466 -1450
- package/dist/index.systemjs.js +59 -59
- package/dist/index.umd.js +42 -42
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useServiceWebSocketURL.d.ts +13 -0
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ export { useAuth } from './useAuth';
|
|
|
24
24
|
export { useOperations } from './useOperations';
|
|
25
25
|
export { useServiceInvoker, type ServiceInvoker } from './useServiceInvoker';
|
|
26
26
|
export { useServiceBaseURL } from './useServiceBaseURL';
|
|
27
|
+
export { useServiceWebSocketURL } from './useServiceWebSocketURL';
|
|
27
28
|
export { useTrackEvent } from './habits/useTrackEvent';
|
|
28
29
|
export { useTrackEvents } from './habits/useTrackEvents';
|
|
29
30
|
export { type ApplicationEvent } from './habits/ApplicationEvent';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Given a serviceName it returns its WebSocket URL with impersonation and tenant
|
|
3
|
+
* query params forwarded from the current page URL.
|
|
4
|
+
*
|
|
5
|
+
* This hook is specifically designed for WebSocket connections that need to
|
|
6
|
+
* maintain impersonation context from the parent page.
|
|
7
|
+
*
|
|
8
|
+
* @param serviceName - The service name as registered in the catalog
|
|
9
|
+
* @param skipThrow - If true, returns null instead of throwing when service is not found
|
|
10
|
+
* @returns The WebSocket URL with forwarded query params, or null if service not found
|
|
11
|
+
*/
|
|
12
|
+
export declare const useServiceWebSocketURL: (serviceName: string, skipThrow?: boolean) => string | null;
|
|
13
|
+
export default useServiceWebSocketURL;
|