@flarehr/apollo-super-selection 4.54.43093 → 4.55.43666

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.
Files changed (21) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-06c394ee.system.entry.js +69 -0
  3. package/dist/lib/apollo-super-selection/p-90e363b7.entry.js +14 -0
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/cjs/sss-button_41.cjs.entry.js +46 -26
  6. package/dist/lib/collection/components/super-campaign/super-campaign-event-handlers.js +26 -0
  7. package/dist/lib/collection/components/super-campaign/super-campaign-types.js +1 -0
  8. package/dist/lib/collection/components/super-campaign/super-campaign.js +16 -0
  9. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +3 -5
  10. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -20
  11. package/dist/lib/esm/sss-button_41.entry.js +46 -26
  12. package/dist/lib/esm-es5/sss-button_41.entry.js +4 -4
  13. package/dist/lib/types/components/super-campaign/super-campaign-event-handlers.d.ts +2 -0
  14. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +30 -0
  15. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +3 -0
  16. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -28
  17. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-types.d.ts +1 -0
  18. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -4
  19. package/package.json +1 -1
  20. package/dist/lib/apollo-super-selection/p-4e5b95c3.system.entry.js +0 -69
  21. package/dist/lib/apollo-super-selection/p-89d1f1eb.entry.js +0 -14
@@ -0,0 +1,2 @@
1
+ import { EventHandlers } from './super-campaign-types';
2
+ export declare const eventHandlers: EventHandlers;
@@ -0,0 +1,30 @@
1
+ export declare type Sender = 'super-campaign';
2
+ export declare type SuperCampaignCommonEventPayload = {
3
+ sender: Sender;
4
+ };
5
+ export declare type ChooseAnotherFundRequestedEvent = SuperCampaignCommonEventPayload & {
6
+ type: 'choose-another-fund-requested';
7
+ };
8
+ export declare type FundPanelShownEvent = SuperCampaignCommonEventPayload & {
9
+ type: 'fund-panel-shown';
10
+ shownFunds: Array<ShownFund>;
11
+ };
12
+ export declare type FundTileClickedEvent = SuperCampaignCommonEventPayload & {
13
+ type: 'fund-tile-clicked';
14
+ fundId: string;
15
+ fundUsi?: string;
16
+ fundName: string;
17
+ fundType: ShownFundType;
18
+ };
19
+ export declare type ShownFund = {
20
+ fundId: string;
21
+ fundType: ShownFundType;
22
+ };
23
+ export declare type ShownFundType = 'Promoted' | 'PromotedDefault' | 'PromotedDefaultWithJoin';
24
+ export declare type EventPayload = ChooseAnotherFundRequestedEvent | FundPanelShownEvent | FundTileClickedEvent;
25
+ export declare type EventType = EventPayload['type'];
26
+ export declare type EventHandlers = {
27
+ [k in EventType]: (event: Extract<EventPayload, {
28
+ t: k;
29
+ }>) => Promise<void>;
30
+ };
@@ -3,8 +3,11 @@ export declare class SuperCampaignHost {
3
3
  private backendUrl;
4
4
  private accessToken;
5
5
  componentWillLoad(): Promise<void>;
6
+ disconnectedCallback(): void;
6
7
  render(): Element[];
7
8
  private createApolloSuperCampaignScriptUrl;
8
9
  private getBaseUrl;
9
10
  private getEnvironmentTag;
11
+ private subscribeToSuperCampaignEvents;
12
+ private unSubscribeFromSuperCampaignEvents;
10
13
  }
@@ -1,28 +1,8 @@
1
- export declare type FinancialProductViewedDetail = {
2
- fundUsi: string;
3
- fundName: string;
4
- financialProduct: string;
5
- };
6
1
  export declare type SuperFundPdsViewedDetail = {
7
2
  fundUsi?: string;
8
3
  fundName: string;
9
4
  pageName: string;
10
5
  };
11
- export declare type FinancialProductAcceptedDetail = {
12
- fundUsi: string;
13
- fundName: string;
14
- financialProduct: string;
15
- };
16
- export declare type FinancialProductRejectedDetail = {
17
- fundUsi: string;
18
- fundName: string;
19
- financialProduct: string;
20
- };
21
- export declare type SuperFundPrivacyConfirmationAcceptedDetail = {
22
- fundUsi: string;
23
- fundName: string;
24
- financialProduct: string;
25
- };
26
6
  export declare type ViewedPromotedFundDetail = {
27
7
  fundUsi?: string;
28
8
  fundName: string;
@@ -127,15 +107,7 @@ export declare type SuperFundDetailChangeRequested = {
127
107
  DefaultFund: ViewedDefaultFundDetail;
128
108
  };
129
109
  export declare type SuperSelectionAnalyticsEvent = {
130
- FinancialProductViewed: FinancialProductViewedDetail;
131
- } | {
132
110
  SuperFundPdsViewed: SuperFundPdsViewedDetail;
133
- } | {
134
- FinancialProductAccepted: FinancialProductAcceptedDetail;
135
- } | {
136
- FinancialProductRejected: FinancialProductRejectedDetail;
137
- } | {
138
- SuperFundPrivacyConfirmationAccepted: SuperFundPrivacyConfirmationAcceptedDetail;
139
111
  } | {
140
112
  SuperFundDetailViewed: SuperFundDetailViewedDetail;
141
113
  } | {
@@ -21,6 +21,7 @@ declare type PromotedFundJoinAppParams = {
21
21
  fundId: string;
22
22
  authToken: string;
23
23
  employerDefault: boolean;
24
+ definedBenefitsEligibility?: boolean;
24
25
  };
25
26
  export declare type PromotedFundJoinData = PromotedFundJoinMemberData & PromotedFundJoinAppParams;
26
27
  export declare type NotificationData = {
@@ -3,11 +3,7 @@ export declare class EventTrackingService {
3
3
  private static instance;
4
4
  static get Instance(): EventTrackingService;
5
5
  private readonly eventTrackingApi;
6
- TrackFinancialProductViewedAsync(detail: model.FinancialProductViewedDetail): Promise<void>;
7
6
  TrackSuperFundPdsViewedAsync(detail: model.SuperFundPdsViewedDetail): Promise<void>;
8
- TrackFinancialProductAcceptedAsync(detail: model.FinancialProductAcceptedDetail): Promise<void>;
9
- TrackFinancialProductRejectedAsync(detail: model.FinancialProductRejectedDetail): Promise<void>;
10
- TrackSuperFundPrivacyConfirmationAcceptedAsync(detail: model.SuperFundPrivacyConfirmationAcceptedDetail): Promise<void>;
11
7
  TrackPromotedSuperFundDetailViewedAsync(detail: model.ViewedPromotedFundDetail): Promise<void>;
12
8
  TrackPromotedDefaultSuperFundDetailViewedAsync(detail: model.ViewedPromotedDefaultFundDetail): Promise<void>;
13
9
  TrackMyOwnSuperFundDetailViewedAsync(detail: model.ViewedMyOwnFundDetail): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection",
3
- "version": "4.54.43093",
3
+ "version": "4.55.43666",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",