@posiwise/public-modules 0.1.21 → 0.1.23

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": "@posiwise/public-modules",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit } from "@angular/core";
2
+ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from "@angular/core";
3
3
  import { AppBaseComponent } from "@posiwise/app-base-component";
4
4
  import { AbTestService, AuthService, CommonService, CustomToastService, GeoService, MainApiHttpService } from "@posiwise/common-services";
5
5
  import * as i3 from "@angular/common";
@@ -314,13 +314,20 @@ export declare class LandingPageComponent implements OnInit, OnDestroy {
314
314
  private readonly router;
315
315
  private readonly document;
316
316
  private readonly cdr;
317
+ private readonly injector;
317
318
  MICRO_SERVICE_MAPPING: {
318
319
  Core: typeof MainApiHttpService;
319
320
  };
320
321
  MicroService: typeof MainApiHttpService;
321
- constructor(authService: AuthService, router: Router, document: Document, cdr: ChangeDetectorRef);
322
+ constructor(authService: AuthService, router: Router, document: Document, cdr: ChangeDetectorRef, injector: Injector);
322
323
  ngOnInit(): void;
323
324
  ngOnDestroy(): void;
325
+ /**
326
+ * The page body renders only after the A/B experiment resolves, so the
327
+ * browser's (and the router's) jump to `#fragment` on load finds nothing
328
+ * and stays at the top. Re-run the jump once the variant is in the DOM.
329
+ */
330
+ scrollToFragment(): void;
324
331
  navigateToLogin(): void;
325
332
  static ɵfac: i0.ɵɵFactoryDeclaration<LandingPageComponent, never>;
326
333
  static ɵcmp: i0.ɵɵComponentDeclaration<LandingPageComponent, "ng-component", never, {}, {}, never, never, false, never>;
@@ -712,6 +719,12 @@ export declare class AbTestContainerComponent implements OnInit, AfterContentIni
712
719
  * Specifies boolean to show the experiment as fallback
713
720
  */
714
721
  showDefaultExperiment: boolean;
722
+ /**
723
+ * Fires once the experiment response (or its failure fallback) has been
724
+ * handed to the alternatives, i.e. when the page content is about to
725
+ * render. Hosts use it for work that needs that content in the DOM.
726
+ */
727
+ readonly resolved: EventEmitter<void>;
715
728
  private readonly alternatives;
716
729
  constructor(service: AbTestService, cdr: ChangeDetectorRef, platformId: object);
717
730
  ngOnInit(): void;
@@ -729,7 +742,9 @@ export declare class AbTestContainerComponent implements OnInit, AfterContentIni
729
742
  "alias": "serviceInput";
730
743
  "required": false;
731
744
  };
732
- }, {}, ["alternatives"], ["*"], false, never>;
745
+ }, {
746
+ "resolved": "resolved";
747
+ }, ["alternatives"], ["*"], false, never>;
733
748
  }
734
749
  declare namespace ab_alternative_component_d_exports {
735
750
  export { AbAlternativeComponent };