@flarehr/apollo-super-selection 5.15.48847 → 5.17.50662
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/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-40d52425.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-d7f9d782.system.entry.js +69 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/sss-button_43.cjs.entry.js +112 -22
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +1 -0
- package/dist/lib/collection/components/super-campaign/super-campaign.js +63 -13
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors-api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +1 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +1 -3
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +3 -2
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +13 -3
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +5 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +17 -3
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +8 -1
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -3
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/sss-button_43.entry.js +112 -22
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_43.entry.js +5 -5
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +10 -1
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +6 -1
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors-api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +4 -2
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +6 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-11c7ec31.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-1677af86.system.entry.js +0 -69
|
@@ -5,6 +5,14 @@ export declare type SuperCampaignCommonEventPayload = {
|
|
|
5
5
|
export declare type SuperCampaignLoadedEvent = SuperCampaignCommonEventPayload & {
|
|
6
6
|
type: 'super-campaign-loaded';
|
|
7
7
|
};
|
|
8
|
+
export declare type SuperCampaignLoadFailedEvent = SuperCampaignCommonEventPayload & {
|
|
9
|
+
type: 'super-campaign-load-failed';
|
|
10
|
+
reason: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type SuperCampaignFailedEvent = SuperCampaignCommonEventPayload & {
|
|
13
|
+
type: 'super-campaign-failed';
|
|
14
|
+
reason: string;
|
|
15
|
+
};
|
|
8
16
|
export declare type ChooseAnotherFundRequestedEvent = SuperCampaignCommonEventPayload & {
|
|
9
17
|
type: 'choose-another-fund-requested';
|
|
10
18
|
};
|
|
@@ -71,7 +79,7 @@ export declare type ShownFund = {
|
|
|
71
79
|
fundType: ShownFundType;
|
|
72
80
|
};
|
|
73
81
|
export declare type ShownFundType = 'promoted' | 'promoted-default' | 'defined-benefits';
|
|
74
|
-
export declare type EventPayload = SuperCampaignLoadedEvent | ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
|
|
82
|
+
export declare type EventPayload = SuperCampaignLoadedEvent | SuperCampaignLoadFailedEvent | SuperCampaignFailedEvent | ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
|
|
75
83
|
export declare type EventType = EventPayload['type'];
|
|
76
84
|
export declare type EventHandlers = {
|
|
77
85
|
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
@@ -81,3 +89,4 @@ export declare type EventHandlers = {
|
|
|
81
89
|
export declare const Usi: {
|
|
82
90
|
clean: (usi: string) => string;
|
|
83
91
|
};
|
|
92
|
+
export declare const LoadWaitingTimeout = 30000;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { RouterHistory } from '@stencil/router';
|
|
2
2
|
export declare class SuperCampaignHost {
|
|
3
3
|
history: RouterHistory;
|
|
4
|
-
private
|
|
4
|
+
private scriptImported;
|
|
5
5
|
private backendUrl;
|
|
6
6
|
private accessToken;
|
|
7
|
+
private loadingTimeoutRef;
|
|
7
8
|
private superCampaignEventHandlers;
|
|
8
9
|
constructor();
|
|
9
10
|
componentWillLoad(): Promise<void>;
|
|
10
11
|
disconnectedCallback(): void;
|
|
11
12
|
render(): Element[];
|
|
13
|
+
private activateFallbackMechanism;
|
|
14
|
+
private superCampaignLoadingTimeoutTriggered;
|
|
12
15
|
private createApolloSuperCampaignScriptUrl;
|
|
13
16
|
private getBaseUrl;
|
|
14
17
|
private getEnvironmentTag;
|
|
15
18
|
private subscribeToSuperCampaignEvents;
|
|
16
19
|
private unSubscribeFromSuperCampaignEvents;
|
|
17
20
|
private superCampaignLoaded;
|
|
21
|
+
private superCampaignLoadFailed;
|
|
22
|
+
private superCampaignFailed;
|
|
18
23
|
private chooseAnotherFundRequested;
|
|
19
24
|
private fundPanelShown;
|
|
20
25
|
private fundTileClicked;
|
|
@@ -117,6 +117,13 @@ export declare type SuperFundDetailChangeRequested = {
|
|
|
117
117
|
} | {
|
|
118
118
|
DefaultFund: ViewedDefaultFundDetail;
|
|
119
119
|
};
|
|
120
|
+
export declare type SuperCampaignActivationFailedDetail = {
|
|
121
|
+
reason: string;
|
|
122
|
+
};
|
|
123
|
+
export declare type SuperCampaignOperationFailedDetail = {
|
|
124
|
+
reason: string;
|
|
125
|
+
};
|
|
126
|
+
export declare type SuperCampaignActivationSucceededDetail = Record<string, never>;
|
|
120
127
|
export declare type SuperSelectionAnalyticsEvent = {
|
|
121
128
|
SuperFundPdsViewed: SuperFundPdsViewedDetail;
|
|
122
129
|
} | {
|
|
@@ -137,6 +144,12 @@ export declare type SuperSelectionAnalyticsEvent = {
|
|
|
137
144
|
SuperFundPrefillViewed: SuperFundPrefillViewedDetail;
|
|
138
145
|
} | {
|
|
139
146
|
SuperFundPrefillDeclined: SuperFundPrefillDeclinedDetail;
|
|
147
|
+
} | {
|
|
148
|
+
SuperCampaignActivationSucceeded: SuperCampaignActivationSucceededDetail;
|
|
149
|
+
} | {
|
|
150
|
+
SuperCampaignActivationFailed: SuperCampaignActivationFailedDetail;
|
|
151
|
+
} | {
|
|
152
|
+
SuperCampaignOperationFailed: SuperCampaignOperationFailedDetail;
|
|
140
153
|
};
|
|
141
154
|
export declare type SuperSelectionEventDto = {
|
|
142
155
|
event: SuperSelectionAnalyticsEvent;
|
|
@@ -17,5 +17,6 @@ export declare class EventTrackingService {
|
|
|
17
17
|
TrackSuperFundPrefillViewedAsync(detail: model.SuperFundPrefillViewedDetail): Promise<void>;
|
|
18
18
|
TrackSuperFundPrefillDeclinedAsync(detail: model.SuperFundPrefillDeclinedDetail): Promise<void>;
|
|
19
19
|
TrackSuperFundDetailChangeRequestedAsync(detail: model.SuperFundDetailChangeRequested): Promise<void>;
|
|
20
|
+
TrackSuperCampaignActivationSucceededAsync(detail: model.SuperCampaignActivationSucceededDetail): Promise<void>;
|
|
20
21
|
private trackEventAsync;
|
|
21
22
|
}
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { OnChangeHandler } from '@stencil/store/dist/types';
|
|
|
2
2
|
import * as O from 'fp-ts/lib/Option';
|
|
3
3
|
import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
|
|
4
4
|
import { PromotedFundsConfigSourceDto, SuperBuyerDto } from '../api/super-selection.api.dto';
|
|
5
|
-
import { AppContextState, SuperCampaignState } from './super-selection.store';
|
|
5
|
+
import { AppContextState, SuperCampaignComponentStatus, SuperCampaignState } from './super-selection.store';
|
|
6
6
|
export declare type PromotedFundsConfig = {
|
|
7
7
|
shownFunds: string[];
|
|
8
8
|
promotedDefaultFundPosition?: number;
|
|
@@ -34,8 +34,10 @@ export declare class SuperSelectionAppService {
|
|
|
34
34
|
loadCampaignConnectAsync(): Promise<void>;
|
|
35
35
|
setSuperCampaignPromotedFundsShown(shownFunds: SuperCampaignShownFund[]): void;
|
|
36
36
|
get superCampaignState(): SuperCampaignState | undefined;
|
|
37
|
-
|
|
37
|
+
get superCampaignComponentStatus(): SuperCampaignComponentStatus;
|
|
38
|
+
set superCampaignComponentStatus(value: SuperCampaignComponentStatus);
|
|
38
39
|
get isUsingSuperCampaign(): boolean;
|
|
40
|
+
get isSuperCampaignFallbackActivated(): boolean;
|
|
39
41
|
}
|
|
40
42
|
declare const _default: SuperSelectionAppService;
|
|
41
43
|
export default _default;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as O from 'fp-ts/lib/Option';
|
|
2
2
|
import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
|
|
3
3
|
import { AccountConfigurationDto, CampaignConnectDto, ProfileConfigurationDto, SuperBuyerDto, SuperChoicePrefillDto } from '../api/super-selection.api.dto';
|
|
4
|
+
export declare enum SuperCampaignComponentStatus {
|
|
5
|
+
NotLoaded = 1,
|
|
6
|
+
Loaded = 2,
|
|
7
|
+
NotWorking = 3
|
|
8
|
+
}
|
|
4
9
|
export declare type AppContextState = {
|
|
5
10
|
apiBaseUrl: O.Option<string>;
|
|
6
11
|
appBaseUrl: O.Option<string>;
|
|
@@ -18,6 +23,7 @@ export declare type AppContextState = {
|
|
|
18
23
|
campaignConnect: O.Option<CampaignConnectDto>;
|
|
19
24
|
superCampaignEnabled: boolean;
|
|
20
25
|
superCampaignState: SuperCampaignState | undefined;
|
|
26
|
+
superCampaignComponentStatus: SuperCampaignComponentStatus;
|
|
21
27
|
};
|
|
22
28
|
export declare class SuperCampaignState {
|
|
23
29
|
private _promotedFundsShown;
|