valtech-components 2.0.813 → 2.0.814

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.
@@ -62,3 +62,25 @@ export declare class PageRefreshService {
62
62
  static ɵfac: i0.ɵɵFactoryDeclaration<PageRefreshService, never>;
63
63
  static ɵprov: i0.ɵɵInjectableDeclaration<PageRefreshService>;
64
64
  }
65
+ /**
66
+ * Conecta una página al pull-to-refresh estándar en UNA línea, sin lifecycle
67
+ * hooks manuales: registra el handler y lo desregistra al destruir la página
68
+ * (vía `DestroyRef`).
69
+ *
70
+ * DEBE llamarse en un injection context (constructor o field initializer).
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * export class MiPage {
75
+ * private data = createRefreshableStream(() => this.svc.getX());
76
+ * readonly items = this.data.data;
77
+ *
78
+ * constructor() {
79
+ * connectPageRefresh(() => this.data.reload());
80
+ * }
81
+ * }
82
+ * ```
83
+ *
84
+ * Reemplaza el patrón `ngOnInit`→`register` / `ngOnDestroy`→`unregister`.
85
+ */
86
+ export declare function connectPageRefresh(handler: PageRefreshHandler): void;
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.813";
5
+ export declare const VERSION = "2.0.814";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.813",
3
+ "version": "2.0.814",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"