minerva-plexus-csd 1.1.16 → 1.1.18

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.d.ts CHANGED
@@ -4,6 +4,11 @@ import { default as i18n } from 'i18next';
4
4
  import { JSX as JSX_2 } from 'react/jsx-runtime';
5
5
  import { ReactNode } from 'react';
6
6
 
7
+ declare interface ApiConfig {
8
+ apiUrl: string;
9
+ apiKey: string;
10
+ }
11
+
7
12
  export declare const ApiConfigProvider: ({ children, initialConfig, }: {
8
13
  children: ReactNode;
9
14
  initialConfig?: Partial<ApiConfigType>;
@@ -89,12 +94,10 @@ export declare function detectLang(): string;
89
94
  /**
90
95
  * Obtiene la configuración actual de la API.
91
96
  *
92
- * Si la app destino no la configura, usa los valores de DEFAULTS.
97
+ * Prioridad: Configuración runtime (setApiConfig) > VITE env vars > Defaults.
98
+ * Si no está configurado, lanza error en producción para forzar setup.
93
99
  */
94
- export declare const getApiConfig: () => {
95
- apiUrl: string;
96
- apiKey: string;
97
- };
100
+ export declare const getApiConfig: () => ApiConfig;
98
101
 
99
102
  export { i18n }
100
103
 
@@ -299,10 +302,7 @@ export declare const ServiceProvider: ({ children, usedService, }: {
299
302
  /**
300
303
  * Permite que la app destino configure la API antes de usar la librería.
301
304
  */
302
- export declare const setApiConfig: (config: {
303
- apiUrl: string;
304
- apiKey: string;
305
- }) => void;
305
+ export declare const setApiConfig: (config: Partial<ApiConfig>) => void;
306
306
 
307
307
  export declare const setAssetsBasePath: (path: string) => void;
308
308