forlogic-core 2.4.1 → 2.4.2
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.
|
@@ -2,10 +2,18 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface ModuleContextType {
|
|
3
3
|
/** Alias do módulo configurado pelo projeto consumidor (ex: 'performance', 'suppliers') */
|
|
4
4
|
moduleAlias: string | null;
|
|
5
|
+
/**
|
|
6
|
+
* Base URL da API do módulo. Quando informada, `useModuleAccess` busca as
|
|
7
|
+
* associações em `{moduleApiUrl}/api/{moduleAlias}/v1/Users/{userId}/associations`
|
|
8
|
+
* em vez da common.
|
|
9
|
+
*/
|
|
10
|
+
moduleApiUrl: string | null;
|
|
5
11
|
}
|
|
6
12
|
export interface ModuleProviderProps {
|
|
7
13
|
/** Alias do módulo do projeto consumidor */
|
|
8
14
|
moduleAlias?: string | null;
|
|
15
|
+
/** Base URL da API do módulo (opcional). Ver `ModuleContextType.moduleApiUrl`. */
|
|
16
|
+
moduleApiUrl?: string | null;
|
|
9
17
|
children: ReactNode;
|
|
10
18
|
}
|
|
11
19
|
/**
|
|
@@ -20,7 +28,7 @@ export interface ModuleProviderProps {
|
|
|
20
28
|
* </ModuleProvider>
|
|
21
29
|
* ```
|
|
22
30
|
*/
|
|
23
|
-
export declare function ModuleProvider({ moduleAlias, children }: ModuleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function ModuleProvider({ moduleAlias, moduleApiUrl, children }: ModuleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
32
|
/**
|
|
25
33
|
* Hook para acessar o alias do módulo configurado pelo projeto consumidor.
|
|
26
34
|
*
|