@real-router/angular 0.22.2 → 0.24.0

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/README.md CHANGED
@@ -665,6 +665,36 @@ bootstrapApplication(AppComponent, {
665
665
 
666
666
  No-op on unsupported browsers (Firefox as of 2026-04, SSR). Utility is created by `provideEnvironmentInitializer` at bootstrap and torn down via `inject(DestroyRef)`. Option is a snapshot at bootstrap — not reactive to runtime changes. Customization is pure CSS via `::view-transition-*` pseudo-elements and `view-transition-name` for hero morphs. See [View Transitions guide](https://github.com/greydragon888/real-router/wiki/View-Transitions) for patterns.
667
667
 
668
+ ## Navigation Direction
669
+
670
+ `createDirectionTracker(router)` writes `data-nav-direction="forward" | "back"` on `<html>` on every leave, so exit and entry animations can key off the direction. Install it **before** `router.usePlugin(browserPluginFactory())`: both listen to `popstate`, and the tracker has to see the event first.
671
+
672
+ ```typescript
673
+ import { browserPluginFactory } from "@real-router/browser-plugin";
674
+ import { createRouter } from "@real-router/core";
675
+ import {
676
+ createDirectionTracker,
677
+ provideRealRouter,
678
+ } from "@real-router/angular";
679
+
680
+ const router = createRouter(routes);
681
+
682
+ createDirectionTracker(router); // before usePlugin
683
+ router.usePlugin(browserPluginFactory());
684
+
685
+ bootstrapApplication(AppComponent, {
686
+ providers: [provideRealRouter(router)],
687
+ });
688
+ ```
689
+
690
+ ```css
691
+ html[data-nav-direction="back"] .page {
692
+ animation-name: slide-in-from-left;
693
+ }
694
+ ```
695
+
696
+ `destroy()` removes the listener and the attribute. Without a `document` (SSR) it returns a no-op instance. The argument must be a live `Router`: the tracker follows its transitions through `getPluginApi`. The API is unstable — it may change in a minor release. Live demo: [`examples/web/angular/animation-examples/route-animations/`](../../examples/web/angular/animation-examples/route-animations/). Recipes: [Routing Animations guide](https://github.com/greydragon888/real-router/wiki/Routing-Animations).
697
+
668
698
  ## Angular-Specific Patterns
669
699
 
670
700
  ### Signals, Not Observables
@@ -730,11 +760,9 @@ export class MyComponent {
730
760
  }
731
761
  ```
732
762
 
733
- `sourceToSignal` follows the same rule — it calls `inject(DestroyRef)` internally.
734
-
735
763
  ### DestroyRef for Cleanup
736
764
 
737
- Subscriptions created by `sourceToSignal` and the directives clean up automatically via `DestroyRef.onDestroy`. No manual unsubscribe needed.
765
+ Router subscriptions the adapter creates — in its `inject*` functions, providers and directives — clean up automatically via `DestroyRef.onDestroy`. No manual unsubscribe needed.
738
766
 
739
767
  ### Zoneless Compatibility
740
768
 
@@ -746,19 +774,6 @@ The adapter is signal-first and does not depend on Zone.js. It works with `provi
746
774
 
747
775
  In `RealLink` / `RealLinkActive`, `[routeParams]` is routed through `shallowEqual` content-stabilization before the effect reads it, so an inline-literal binding re-allocated on every change detection only re-creates the source on real content change (see [Object `routeParams`](#object-routeparams--content-stabilized), #988).
748
776
 
749
- ## Signal Bridge
750
-
751
- ### `sourceToSignal(source)`
752
-
753
- Bridges any `RouterSource<T>` (from `@real-router/sources`) into an Angular `Signal<T>`. Cleanup wires through `inject(DestroyRef)` — must be called in an injection context. Used internally by `RouterErrorBoundary`; exposed for custom composables that need to bridge router sources into reactive signals.
754
-
755
- ```typescript
756
- import { sourceToSignal } from "@real-router/angular";
757
- import { createTransitionSource } from "@real-router/sources";
758
-
759
- const transitionSignal = sourceToSignal(createTransitionSource(router));
760
- ```
761
-
762
777
  ## Documentation
763
778
 
764
779
  Full documentation: [Wiki](https://github.com/greydragon888/real-router/wiki) — start with the [Angular Integration guide](https://github.com/greydragon888/real-router/wiki/Angular-Integration) for Angular-specific examples and gotchas.
package/dist/README.md CHANGED
@@ -665,6 +665,36 @@ bootstrapApplication(AppComponent, {
665
665
 
666
666
  No-op on unsupported browsers (Firefox as of 2026-04, SSR). Utility is created by `provideEnvironmentInitializer` at bootstrap and torn down via `inject(DestroyRef)`. Option is a snapshot at bootstrap — not reactive to runtime changes. Customization is pure CSS via `::view-transition-*` pseudo-elements and `view-transition-name` for hero morphs. See [View Transitions guide](https://github.com/greydragon888/real-router/wiki/View-Transitions) for patterns.
667
667
 
668
+ ## Navigation Direction
669
+
670
+ `createDirectionTracker(router)` writes `data-nav-direction="forward" | "back"` on `<html>` on every leave, so exit and entry animations can key off the direction. Install it **before** `router.usePlugin(browserPluginFactory())`: both listen to `popstate`, and the tracker has to see the event first.
671
+
672
+ ```typescript
673
+ import { browserPluginFactory } from "@real-router/browser-plugin";
674
+ import { createRouter } from "@real-router/core";
675
+ import {
676
+ createDirectionTracker,
677
+ provideRealRouter,
678
+ } from "@real-router/angular";
679
+
680
+ const router = createRouter(routes);
681
+
682
+ createDirectionTracker(router); // before usePlugin
683
+ router.usePlugin(browserPluginFactory());
684
+
685
+ bootstrapApplication(AppComponent, {
686
+ providers: [provideRealRouter(router)],
687
+ });
688
+ ```
689
+
690
+ ```css
691
+ html[data-nav-direction="back"] .page {
692
+ animation-name: slide-in-from-left;
693
+ }
694
+ ```
695
+
696
+ `destroy()` removes the listener and the attribute. Without a `document` (SSR) it returns a no-op instance. The argument must be a live `Router`: the tracker follows its transitions through `getPluginApi`. The API is unstable — it may change in a minor release. Live demo: [`examples/web/angular/animation-examples/route-animations/`](../../examples/web/angular/animation-examples/route-animations/). Recipes: [Routing Animations guide](https://github.com/greydragon888/real-router/wiki/Routing-Animations).
697
+
668
698
  ## Angular-Specific Patterns
669
699
 
670
700
  ### Signals, Not Observables
@@ -730,11 +760,9 @@ export class MyComponent {
730
760
  }
731
761
  ```
732
762
 
733
- `sourceToSignal` follows the same rule — it calls `inject(DestroyRef)` internally.
734
-
735
763
  ### DestroyRef for Cleanup
736
764
 
737
- Subscriptions created by `sourceToSignal` and the directives clean up automatically via `DestroyRef.onDestroy`. No manual unsubscribe needed.
765
+ Router subscriptions the adapter creates — in its `inject*` functions, providers and directives — clean up automatically via `DestroyRef.onDestroy`. No manual unsubscribe needed.
738
766
 
739
767
  ### Zoneless Compatibility
740
768
 
@@ -746,19 +774,6 @@ The adapter is signal-first and does not depend on Zone.js. It works with `provi
746
774
 
747
775
  In `RealLink` / `RealLinkActive`, `[routeParams]` is routed through `shallowEqual` content-stabilization before the effect reads it, so an inline-literal binding re-allocated on every change detection only re-creates the source on real content change (see [Object `routeParams`](#object-routeparams--content-stabilized), #988).
748
776
 
749
- ## Signal Bridge
750
-
751
- ### `sourceToSignal(source)`
752
-
753
- Bridges any `RouterSource<T>` (from `@real-router/sources`) into an Angular `Signal<T>`. Cleanup wires through `inject(DestroyRef)` — must be called in an injection context. Used internally by `RouterErrorBoundary`; exposed for custom composables that need to bridge router sources into reactive signals.
754
-
755
- ```typescript
756
- import { sourceToSignal } from "@real-router/angular";
757
- import { createTransitionSource } from "@real-router/sources";
758
-
759
- const transitionSignal = sourceToSignal(createTransitionSource(router));
760
- ```
761
-
762
777
  ## Documentation
763
778
 
764
779
  Full documentation: [Wiki](https://github.com/greydragon888/real-router/wiki) — start with the [Angular Integration guide](https://github.com/greydragon888/real-router/wiki/Angular-Integration) for Angular-specific examples and gotchas.
@@ -3003,5 +3003,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
3003
3003
  * Generated bundle index. Do not edit.
3004
3004
  */
3005
3005
 
3006
- export { NAVIGATOR, NavigationAnnouncer, ROUTE, ROUTER, RealLink, RealLinkActive, RouteMatch, RouteNotFound, RouteSelf, RouteView, RouterErrorBoundary, injectIsActiveRoute, injectNavigator, injectRoute, injectRouteEnter, injectRouteExit, injectRouteNode, injectRouteUtils, injectRouter, injectRouterTransition, provideRealRouter, provideRealRouterFactory, sourceToSignal };
3006
+ export { NAVIGATOR, NavigationAnnouncer, ROUTE, ROUTER, RealLink, RealLinkActive, RouteMatch, RouteNotFound, RouteSelf, RouteView, RouterErrorBoundary, createDirectionTracker, injectIsActiveRoute, injectNavigator, injectRoute, injectRouteEnter, injectRouteExit, injectRouteNode, injectRouteUtils, injectRouter, injectRouterTransition, provideRealRouter, provideRealRouterFactory };
3007
3007
  //# sourceMappingURL=real-router-angular.mjs.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/angular",
3
- "version": "0.22.2",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "description": "Angular 22 integration for Real-Router",
6
6
  "exports": {
@@ -49,7 +49,7 @@
49
49
  "peerDependencies": {
50
50
  "@angular/common": ">=22.0.0",
51
51
  "@angular/core": ">=22.0.0",
52
- "@real-router/core": "workspace:>=0.147.0"
52
+ "@real-router/core": "workspace:>=0.148.0"
53
53
  },
54
54
  "module": "fesm2022/real-router-angular.mjs",
55
55
  "typings": "types/real-router-angular.d.ts"
@@ -1,12 +1,38 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Signal, InjectionToken, EnvironmentProviders, TemplateRef, OnInit } from '@angular/core';
3
3
  import * as _real_router_core from '@real-router/core';
4
- import { RouterError, Params, Navigator, Router, DefaultDependencies, PluginFactory, State, SearchParams, NavigationTarget, NavigationOptions } from '@real-router/core';
4
+ import { Router, RouterError, Params, Navigator, DefaultDependencies, PluginFactory, State, SearchParams, NavigationTarget, NavigationOptions } from '@real-router/core';
5
5
  export { Navigator } from '@real-router/core';
6
- import { RouteSnapshot, RouterSource, RouterTransitionSnapshot } from '@real-router/sources';
6
+ import { RouteSnapshot, RouterTransitionSnapshot } from '@real-router/sources';
7
7
  export { RouteSnapshot, RouterErrorSnapshot, RouterTransitionSnapshot } from '@real-router/sources';
8
8
  import { RouteUtils } from '@real-router/route-utils';
9
9
 
10
+ interface DirectionTracker {
11
+ destroy: () => void;
12
+ }
13
+ /**
14
+ * Track navigation direction (forward / back) and write it to
15
+ * `<html data-nav-direction>` on every leave. CSS / JS readers consume
16
+ * the attribute via `html[data-nav-direction="back"]` selectors or
17
+ * `document.documentElement.dataset.navDirection`.
18
+ *
19
+ * Mechanism-agnostic — works identically whether downstream UI uses CSS
20
+ * `@keyframes`, View Transitions pseudo-elements, or library state
21
+ * (motion's `motion.div initial={{ x: ... }}`).
22
+ *
23
+ * Implementation:
24
+ * - On install, set `data-nav-direction="forward"` baseline.
25
+ * - Attach a `popstate` listener that flips an internal flag to
26
+ * `true`. Browser back/forward navigation triggers popstate; user
27
+ * clicks on `<Link>` / programmatic `router.navigate(...)` do not.
28
+ * - On every `subscribeLeave`, write
29
+ * `popstateFlag ? "back" : "forward"` and reset the flag.
30
+ *
31
+ * Returns `{ destroy }` to clean up the listener and clear the dataset
32
+ * attribute.
33
+ */
34
+ declare function createDirectionTracker(router: Router): DirectionTracker;
35
+
10
36
  type ScrollRestorationMode = "restore" | "top" | "native";
11
37
  interface ScrollRestorationOptions {
12
38
  mode?: ScrollRestorationMode | undefined;
@@ -226,9 +252,6 @@ interface RealRouterFactoryOptions<TDeps extends DefaultDependencies = DefaultDe
226
252
  */
227
253
  declare function provideRealRouterFactory<TDeps extends DefaultDependencies = DefaultDependencies>(options: RealRouterFactoryOptions<TDeps>): EnvironmentProviders;
228
254
 
229
- /** Must be called within an injection context (constructor, field initializer, runInInjectionContext). */
230
- declare function sourceToSignal<T>(source: RouterSource<T>): Signal<T>;
231
-
232
255
  declare function injectRouter(): Router;
233
256
 
234
257
  declare function injectNavigator(): Navigator;
@@ -543,6 +566,6 @@ declare class RealLinkActive {
543
566
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RealLinkActive, "[realLinkActive]", never, { "realLinkActive": { "alias": "realLinkActive"; "required": false; "isSignal": true; }; "routeName": { "alias": "routeName"; "required": false; "isSignal": true; }; "routeParams": { "alias": "routeParams"; "required": false; "isSignal": true; }; "activeStrict": { "alias": "activeStrict"; "required": false; "isSignal": true; }; "ignoreQueryParams": { "alias": "ignoreQueryParams"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
544
567
  }
545
568
 
546
- export { NAVIGATOR, NavigationAnnouncer, ROUTE, ROUTER, RealLink, RealLinkActive, RouteMatch, RouteNotFound, RouteSelf, RouteView, RouterErrorBoundary, injectIsActiveRoute, injectNavigator, injectRoute, injectRouteEnter, injectRouteExit, injectRouteNode, injectRouteUtils, injectRouter, injectRouterTransition, provideRealRouter, provideRealRouterFactory, sourceToSignal };
547
- export type { ErrorContext, RealRouterFactoryOptions, RealRouterOptions, RequestDepsFactory, RequestPluginsFactory, RouteEnterContext, RouteEnterHandler, RouteExitContext, RouteExitHandler, RouteSignals, UseRouteEnterOptions, UseRouteExitOptions };
569
+ export { NAVIGATOR, NavigationAnnouncer, ROUTE, ROUTER, RealLink, RealLinkActive, RouteMatch, RouteNotFound, RouteSelf, RouteView, RouterErrorBoundary, createDirectionTracker, injectIsActiveRoute, injectNavigator, injectRoute, injectRouteEnter, injectRouteExit, injectRouteNode, injectRouteUtils, injectRouter, injectRouterTransition, provideRealRouter, provideRealRouterFactory };
570
+ export type { DirectionTracker, ErrorContext, RealRouterFactoryOptions, RealRouterOptions, RequestDepsFactory, RequestPluginsFactory, RouteEnterContext, RouteEnterHandler, RouteExitContext, RouteExitHandler, RouteSignals, UseRouteEnterOptions, UseRouteExitOptions };
548
571
  //# sourceMappingURL=real-router-angular.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"real-router-angular.d.ts","sources":["../../src/dom-utils/scroll-restore.ts","../../src/dom-utils/scroll-spy.ts","../../src/types.ts","../../src/tokens.ts","../../src/providers.ts","../../src/providersFactory.ts","../../src/sourceToSignal.ts","../../src/functions/injectRouter.ts","../../src/functions/injectNavigator.ts","../../src/functions/injectRoute.ts","../../src/functions/injectRouteNode.ts","../../src/functions/injectRouteUtils.ts","../../src/functions/injectRouterTransition.ts","../../src/functions/injectIsActiveRoute.ts","../../src/functions/injectRouteExit.ts","../../src/functions/injectRouteEnter.ts","../../src/directives/RouteMatch.ts","../../src/directives/RouteNotFound.ts","../../src/directives/RouteSelf.ts","../../src/components/RouteView.ts","../../src/components/RouterErrorBoundary.ts","../../src/components/NavigationAnnouncer.ts","../../src/directives/RealLink.ts","../../src/directives/RealLinkActive.ts"],"mappings":";;;;;;;;;AAqBM,KAAM,qBAAqB;UAEhB,wBAAwB;AACvC,WAAO,qBAAqB;AAC5B;6BAC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AA,CAAA,WAAA,CAAA,MAAA;2BACC,aAAA,CAAA,WAAA;gCACK,aAAA,CAAA,WAAA;AAE1B;AACA;AACA;AAIA;;;AA4CA;oDA9DW,cAAc;sDAAd,cAAc;AAuE1B;;","names":[]}
1
+ {"version":3,"file":"real-router-angular.d.ts","sources":["../../src/dom-utils/direction-tracker.ts","../../src/dom-utils/scroll-restore.ts","../../src/dom-utils/scroll-spy.ts","../../src/types.ts","../../src/tokens.ts","../../src/providers.ts","../../src/providersFactory.ts","../../src/functions/injectRouter.ts","../../src/functions/injectNavigator.ts","../../src/functions/injectRoute.ts","../../src/functions/injectRouteNode.ts","../../src/functions/injectRouteUtils.ts","../../src/functions/injectRouterTransition.ts","../../src/functions/injectIsActiveRoute.ts","../../src/functions/injectRouteExit.ts","../../src/functions/injectRouteEnter.ts","../../src/directives/RouteMatch.ts","../../src/directives/RouteNotFound.ts","../../src/directives/RouteSelf.ts","../../src/components/RouteView.ts","../../src/components/RouterErrorBoundary.ts","../../src/components/NavigationAnnouncer.ts","../../src/directives/RealLink.ts","../../src/directives/RealLinkActive.ts"],"mappings":";;;;;;;;;UAKiB,gBAAgB;;AAEhC;AAQD;;;;;;;;;;;;;;;;;;;;AAoBG;AACH,iBAAgB,sBAAsB,SAAS,MAAM,GAAG,gBAAgB;;ACflE,KAAM,qBAAqB;UAEhB,wBAAwB;AACvC,WAAO,qBAAqB;AAC5B;6BACyB,WAAW;AACpC;;;;;;;;;;;AAWG;AACH,eAAW,cAAc;AACzB;;;;;;AAMG;AACH;AACD;;AC5CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;UACc,gBAAgB;AAC/B;;;;AAIG;;AAGH;;;;AAIG;AACH;AAEA;;;;;;;;AAQG;6BACsB,WAAW;AACrC;;UC/DgB,YAAY,WAAW,MAAM,GAAG,MAAM;yBAChC,MAAM,CAAC,aAAa;AACzC,wBAAoB,SAAS;AAC9B;UAEgB,YAAY;eAChB,WAAW;;AAEvB;;ACP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AACb;2BAEgB,aAAA,CAAA,MAAA,CAAA,YAAA;AAarB;AACA;;oDAvBW,mBAAmB;sDAAnB,mBAAmB;AA8C/B;;ACzDD,cAIa,mBAAoB,YAAW,MAAM;AAChD;;;;;;;;;AASG;qBACY,aAAA,CAAA,WAAA;AACf,kCAA4B,aAAA,CAAA,WAAA,UAAiB,KAAK;AAElD;;;AASA;oDAvBW,mBAAmB;sDAAnB,mBAAmB;AAqC/B;;AClBD,cAMa,QAAQ;wBACD,aAAA,CAAA,WAAA;0BAME,aAAA,CAAA,WAAA,CAAA,MAAA;AACpB;;;AAGG;0BACiB,aAAA,CAAA,WAAA,CAAA,YAAA;AACpB;;;;AAIG;iBACQ,aAAA,CAAA,WAAA,CAAA,gBAAA,CAAA,MAAA,EAAA,YAAA;2BACU,aAAA,CAAA,WAAA,CAAA,iBAAA;8BACG,aAAA,CAAA,WAAA;2BACH,aAAA,CAAA,WAAA;gCACK,aAAA,CAAA,WAAA;AAC1B;;;;;AAKG;mBACU,aAAA,CAAA,WAAA;AAEb;AACA;AAEA;AAOA;AAKA;;;;;AAwEA,mBAAe,UAAU;AAuBzB;AAUA;oDAvJW,QAAQ;sDAAR,QAAQ;AAoKpB;;AC9LD,cACa,cAAc;6BACF,aAAA,CAAA,WAAA;wBACL,aAAA,CAAA,WAAA;0BAME,aAAA,CAAA,WAAA,CAAA,MAAA;2BACC,aAAA,CAAA,WAAA;gCACK,aAAA,CAAA,WAAA;AAE1B;AACA;AACA;AAIA;;;AA4CA;oDA9DW,cAAc;sDAAd,cAAc;AAuE1B;;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/angular",
3
- "version": "0.22.2",
3
+ "version": "0.24.0",
4
4
  "type": "commonjs",
5
5
  "description": "Angular 22 integration for Real-Router",
6
6
  "exports": {
@@ -53,14 +53,14 @@
53
53
  "@angular/compiler-cli": "~22.1.6",
54
54
  "@angular/core": "~22.1.6",
55
55
  "@angular/platform-browser": "~22.1.6",
56
- "@real-router/core": "^0.147.8",
56
+ "@real-router/core": "^0.148.0",
57
57
  "ng-packagr": "22.1.1",
58
58
  "typescript": "6.0.3"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@angular/common": ">=22.0.0",
62
62
  "@angular/core": ">=22.0.0",
63
- "@real-router/core": ">=0.147.0"
63
+ "@real-router/core": ">=0.148.0"
64
64
  },
65
65
  "scripts": {
66
66
  "test": "vitest",