@flarehr/apollo-super-selection 4.58.46161 → 4.60.46274

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.
@@ -2,6 +2,9 @@ export declare type Sender = 'super-campaign';
2
2
  export declare type SuperCampaignCommonEventPayload = {
3
3
  sender: Sender;
4
4
  };
5
+ export declare type SuperCampaignLoadedEvent = SuperCampaignCommonEventPayload & {
6
+ type: 'super-campaign-loaded';
7
+ };
5
8
  export declare type ChooseAnotherFundRequestedEvent = SuperCampaignCommonEventPayload & {
6
9
  type: 'choose-another-fund-requested';
7
10
  };
@@ -68,7 +71,7 @@ export declare type ShownFund = {
68
71
  fundType: ShownFundType;
69
72
  };
70
73
  export declare type ShownFundType = 'promoted' | 'promoted-default' | 'defined-benefits';
71
- export declare type EventPayload = ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
74
+ export declare type EventPayload = SuperCampaignLoadedEvent | ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
72
75
  export declare type EventType = EventPayload['type'];
73
76
  export declare type EventHandlers = {
74
77
  [k in EventType]: (event: CustomEvent<Extract<EventPayload, {
@@ -14,6 +14,7 @@ export declare class SuperCampaignHost {
14
14
  private getEnvironmentTag;
15
15
  private subscribeToSuperCampaignEvents;
16
16
  private unSubscribeFromSuperCampaignEvents;
17
+ private superCampaignLoaded;
17
18
  private chooseAnotherFundRequested;
18
19
  private fundPanelShown;
19
20
  private fundTileClicked;
@@ -34,6 +34,8 @@ export declare class SuperSelectionAppService {
34
34
  loadCampaignConnectAsync(): Promise<void>;
35
35
  setSuperCampaignPromotedFundsShown(shownFunds: SuperCampaignShownFund[]): void;
36
36
  get superCampaignState(): SuperCampaignState | undefined;
37
+ initializeSuperCampaignState(value: SuperCampaignState): void;
38
+ get isUsingSuperCampaign(): boolean;
37
39
  }
38
40
  declare const _default: SuperSelectionAppService;
39
41
  export default _default;
@@ -20,9 +20,10 @@ export declare type AppContextState = {
20
20
  superCampaignState: SuperCampaignState | undefined;
21
21
  };
22
22
  export declare class SuperCampaignState {
23
- private promotedFundsShown;
24
- constructor(funds: SuperCampaignShownFund[]);
23
+ private _promotedFundsShown;
24
+ constructor();
25
25
  get PromotedFundIds(): string[];
26
+ set promotedFundsShown(value: SuperCampaignShownFund[]);
26
27
  get DefaultFundPosition(): number | undefined;
27
28
  }
28
29
  export declare const initialState: AppContextState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection",
3
- "version": "4.58.46161",
3
+ "version": "4.60.46274",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",