@nativescript/angular 21.0.1-alpha.0 → 21.0.1-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/angular",
3
- "version": "21.0.1-alpha.0",
3
+ "version": "21.0.1-alpha.2",
4
4
  "homepage": "https://nativescript.org/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1138,6 +1138,12 @@ declare class NSLocationStrategy extends LocationStrategy implements OnDestroy {
1138
1138
  _modalNavigationDepth: number;
1139
1139
  constructor(frameService: FrameService, startPath?: string);
1140
1140
  getState(): unknown;
1141
+ resetForHmr(): {
1142
+ outlets: number;
1143
+ states: number;
1144
+ callbacks: number;
1145
+ hadUrlTree: boolean;
1146
+ };
1141
1147
  path(): string;
1142
1148
  prepareExternalUrl(internal: string): string;
1143
1149
  pushState(state: any, title: string, url: string, queryParams: string): void;
@@ -1818,7 +1824,7 @@ declare class ModalDialogService {
1818
1824
  * and reattaches them on back.
1819
1825
  * Reuses routes as long as their route config is the same.
1820
1826
  */
1821
- declare class NSRouteReuseStrategy implements RouteReuseStrategy {
1827
+ declare class NSRouteReuseStrategy implements RouteReuseStrategy, OnDestroy {
1822
1828
  private location;
1823
1829
  private cacheByOutlet;
1824
1830
  constructor(location: NSLocationStrategy);
@@ -1837,6 +1843,8 @@ declare class NSRouteReuseStrategy implements RouteReuseStrategy {
1837
1843
  markCacheForPop(outletKey: string): void;
1838
1844
  clearMarkedCache(outletKey: string): void;
1839
1845
  clearModalCache(outletKey: string): void;
1846
+ clearAllCaches(): number;
1847
+ ngOnDestroy(): void;
1840
1848
  static ɵfac: i0.ɵɵFactoryDeclaration<NSRouteReuseStrategy, never>;
1841
1849
  static ɵprov: i0.ɵɵInjectableDeclaration<NSRouteReuseStrategy>;
1842
1850
  }
@@ -2076,6 +2084,7 @@ declare class NativeScriptDebug {
2076
2084
  static readonly routeReuseStrategyTraceCategory = "ns-route-reuse-strategy";
2077
2085
  static readonly listViewTraceCategory = "ns-list-view";
2078
2086
  static readonly bootstrapCategory = "bootstrap";
2087
+ static readonly hmrTraceCategory = "ns-ng-hmr";
2079
2088
  static readonly enabled: boolean;
2080
2089
  static isLogEnabled(): boolean;
2081
2090
  static animationsLog(message: string): void;
@@ -2090,6 +2099,8 @@ declare class NativeScriptDebug {
2090
2099
  static listViewError(message: string): void;
2091
2100
  static bootstrapLog(message: string): void;
2092
2101
  static bootstrapLogError(message: string): void;
2102
+ static hmrLog(message: string): void;
2103
+ static hmrLogError(message: string): void;
2093
2104
  }
2094
2105
 
2095
2106
  /**