ng-easycommerce-v18 0.3.19-beta.2 → 0.3.19-beta.4

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.
@@ -18,7 +18,7 @@ export declare class CoreConstantsService {
18
18
  /**
19
19
  * Document token para acceso SSR-compatible al documento
20
20
  */
21
- private document;
21
+ private _document;
22
22
  /**
23
23
  * Contiene los datos provisto por el frontend en el archivo environment.ts
24
24
  */
@@ -27,6 +27,10 @@ export declare class CoreConstantsService {
27
27
  * Guarda la variable window del web browser.
28
28
  */
29
29
  private window?;
30
+ /**
31
+ * Getter seguro para document que verifica la plataforma
32
+ */
33
+ private get document();
30
34
  constructor();
31
35
  /**
32
36
  * Path usado en las colecciones de productos.
@@ -1,16 +1,22 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RuntimeConfig } from '../interfaces/runtime-config';
4
+ import { Environment } from '../interfaces';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class RuntimeConfigService {
6
7
  private platformId;
7
8
  private http;
9
+ private environment;
8
10
  private configSubject;
9
11
  config$: Observable<RuntimeConfig | null>;
10
12
  private _config;
11
13
  private _loadPromise;
12
14
  private _isLoaded;
13
- constructor(platformId: Object, http: HttpClient);
15
+ constructor(platformId: Object, http: HttpClient, environment: Environment | null);
16
+ /**
17
+ * Obtiene configuración de fallback desde environment.ts
18
+ */
19
+ private getFallbackConfig;
14
20
  /**
15
21
  * Inicialización única - llamada por APP_INITIALIZER
16
22
  * Garantiza que la configuración se carga solo una vez al inicio
@@ -58,6 +64,6 @@ export declare class RuntimeConfigService {
58
64
  * Método helper para construir URLs del frontend
59
65
  */
60
66
  buildFrontendUrl(path: string): string;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeConfigService, never>;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeConfigService, [null, null, { optional: true; }]>;
62
68
  static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeConfigService>;
63
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-easycommerce-v18",
3
- "version": "0.3.19-beta.2",
3
+ "version": "0.3.19-beta.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"