@mx-cartographer/experiences 9.7.66 → 9.7.67-alpha-ram-usp-1
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/CHANGELOG.md +12 -0
- package/dist/core/stores/GlobalCopyStore.d.ts +6 -0
- package/dist/core/stores/GlobalCopyStore.es.js +14 -8
- package/dist/core/stores/GlobalCopyStore.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +24 -0
- package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.d.ts +6 -0
- package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +158 -0
- package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +11 -11
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js +3 -3
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js +11 -11
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.d.ts +4 -2
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.es.js +31 -28
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +91 -59
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +7 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +8 -5
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js +5 -5
- package/dist/insights-v2/components/BaseLayout.es.js +113 -112
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
- package/dist/insights-v2/components/CompactInsightCard.es.js +132 -104
- package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
- package/dist/insights-v2/components/CtaStatus.d.ts +5 -1
- package/dist/insights-v2/components/CtaStatus.es.js +28 -23
- package/dist/insights-v2/components/CtaStatus.es.js.map +1 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +4 -3
- package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
- package/dist/insights-v2/components/InsightTransactionRow.d.ts +3 -1
- package/dist/insights-v2/components/InsightTransactionRow.es.js +36 -20
- package/dist/insights-v2/components/InsightTransactionRow.es.js.map +1 -1
- package/dist/insights-v2/components/SubscriptionStatus/subscriptionFrequency.d.ts +4 -0
- package/dist/insights-v2/components/SubscriptionStatus/subscriptionFrequency.es.js +10 -0
- package/dist/insights-v2/components/SubscriptionStatus/subscriptionFrequency.es.js.map +1 -0
- package/dist/insights-v2/components/TransactionListCard.d.ts +5 -1
- package/dist/insights-v2/components/TransactionListCard.es.js +61 -45
- package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -1
- package/dist/insights-v2/components/TransferLogoCard.d.ts +2 -8
- package/dist/insights-v2/components/TransferLogoCard.es.js +57 -57
- package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -1
- package/dist/insights-v2/components/celebrationGradients.es.js +1 -1
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaConfig.es.js +28 -15
- package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/runCtaAction.d.ts +7 -0
- package/dist/insights-v2/ctaActions/runCtaAction.es.js +73 -62
- package/dist/insights-v2/ctaActions/runCtaAction.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/subscriptionAnswer.d.ts +7 -1
- package/dist/insights-v2/ctaActions/subscriptionAnswer.es.js +114 -0
- package/dist/insights-v2/ctaActions/subscriptionAnswer.es.js.map +1 -0
- package/dist/insights-v2/ctaActions/types.d.ts +5 -2
- package/dist/insights-v2/ctaActions/useCtaAction.d.ts +6 -0
- package/dist/insights-v2/ctaActions/useCtaAction.es.js +32 -27
- package/dist/insights-v2/ctaActions/useCtaAction.es.js.map +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -0
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -0
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +74 -68
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/microinsights/cards/InsightCard.es.js +91 -86
- package/dist/microinsights/cards/InsightCard.es.js.map +1 -1
- package/dist/microinsights/cards/MicroCtaStatus.d.ts +18 -0
- package/dist/microinsights/cards/MicroCtaStatus.es.js +44 -0
- package/dist/microinsights/cards/MicroCtaStatus.es.js.map +1 -0
- package/dist/microinsights/stores/CopyStore.d.ts +4 -1
- package/dist/microinsights/stores/CopyStore.es.js +13 -10
- package/dist/microinsights/stores/CopyStore.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [9.7.68] - 10-30-2026
|
|
2
|
+
|
|
3
|
+
- **ADDED** - Unexpected Subscription Payment on the shared subscription status CTA (WEC-2126): `confirm_subscription_status` registers `subscriptionEntryStep({ statusLabels: { positive: 'subscribed', negative: 'not_subscribed' } })`, so the card follows the live repeating transaction as pulse did (none / `USER_RESPONSE_UNKNOWN` → Confirm Status, `CONFIRMED` → "Subscribed | Undo", any other answer → "Not subscribed | Undo"). New `subscription_status_modal_block`, a centred modal every widget's "Confirm Status" opens: the row from the opening CTA's `drilldown_data` with the live frequency, "I'm Subscribed" / "I'm Not Subscribed", then the three reasons; it saves through `answerSubscription`, reports the "No" press, and shows a success snackbar or an error one with Try Again. Words from the new optional `insights_feed.subscription_status_modal` copy (`SubscriptionStatusModalCopy`); a missing word renders nothing
|
|
4
|
+
- **ADDED** - `transaction_block` / `warning_wash` follows the beat's live repeating transaction (`followsSubscription`): the frequency word under the amount (`InsightTransactionRow` `amountCaption`), a status badge over the row (`TransactionListCard` `badge`: `data.icon` flag, `data.reviewed_icon` tick once subscribed) and the answered wash. It only reads the store
|
|
5
|
+
- **ADDED** - The micro card resolves its `in_description_cta` through the CTA layer (`MicroCtaStatusGate`): answered, it shows the opening block's `answeredTitle` (USP: "Unexpected Charge Reviewed"), `data.reviewed_icon` and the presenter's "Undo", and a tap goes to the host instead of re-opening the block; with missing data it shows no action
|
|
6
|
+
- **CHANGED** - Subscription Status dialogs: fixed `xs` width, white paper, 4px radius, full-bleed wash; reasons as 44px rows with inset dividers. `CtaStatus` neutral tone is the white alert (paper fill, 50% black border). The `warning_wash` badge is a 32px palette disc with a `contrastText` glyph; `TransactionListCard` gains `elevated`
|
|
7
|
+
- **CHANGED** - `useBeatCtaActions` prepares the CTA the card has: the primary one, else the in-description one, so a step's data also loads on mini (which has no primary CTA)
|
|
8
|
+
|
|
9
|
+
## [9.7.67] - 10-30-2026
|
|
10
|
+
|
|
11
|
+
- **FIXED** - Discovered Accounts and Switch Direct Deposit account-switch graphic, embedded linked logos and Direct Deposit status pill now match Figma (WEC-2157)
|
|
12
|
+
|
|
1
13
|
## [9.7.66] - 10-29-2026
|
|
2
14
|
|
|
3
15
|
- **ADDED** - Shared subscription status CTA for Insights 2.0 (WEC-2158), for Subscription Detected and Unexpected Subscription Payment. The answer lives on the repeating transaction (`user_response`), so a CTA step can now draw a `CtaStatus` or nothing instead of the button (`presenter`, full card; `hideAll` also hides the secondary CTA) and load what it reads once per beat (`prepare`). `subscriptionEntryStep({ statusLabels, answerCounts? })` (`ctaActions/subscriptionAnswer.ts`) builds a beat's entry: unanswered draws the button; answered draws the status with Undo (writes `USER_RESPONSE_UNKNOWN`); a missing repeating transaction hides both CTAs, as pulse did. The repeating transactions load once per page on every card (mini too), retried by the next card after a failure; a second Undo while one is saving is ignored. The words are general copy, as pulse's were: `insights_feed.general` `confirmed` / `incorrect` / `subscribed` / `not_subscribed` / `undo` (new optional keys); the beat sends none. A beat's own survey saves the answer through `answerSubscription` and reports the "No" press through `reportSubscriptionMarkedIncorrect` (pulse's Subscription Confirmation events, Undo included). No beat registers an entry yet
|
|
@@ -10,5 +10,11 @@ export declare class GlobalCopyStore {
|
|
|
10
10
|
constructor(globalStore: GlobalStore);
|
|
11
11
|
loadCopy: () => Promise<void>;
|
|
12
12
|
getCopy: (namespace: string, translationKey?: string) => Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Merges an already-loaded section into `copy` (no request), for a host that did not load the
|
|
15
|
+
* copy, e.g. the micro widget handing over the insights_feed it loaded with its own copy. A
|
|
16
|
+
* section the store already has is kept.
|
|
17
|
+
*/
|
|
18
|
+
setSection: <K extends keyof GlobalCopy>(key: K, section: GlobalCopy[K] | undefined) => void;
|
|
13
19
|
private captureError;
|
|
14
20
|
}
|
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
import { GlobalCopyApi as
|
|
2
|
-
import { makeAutoObservable as a, runInAction as
|
|
3
|
-
var
|
|
1
|
+
import { GlobalCopyApi as i } from "../api/GlobalCopyApi.es.js";
|
|
2
|
+
import { makeAutoObservable as a, runInAction as r } from "mobx";
|
|
3
|
+
var c = class {
|
|
4
4
|
globalStore;
|
|
5
|
-
api = new
|
|
5
|
+
api = new i("/", "");
|
|
6
6
|
copy = {};
|
|
7
7
|
featureNamespace = "experiences";
|
|
8
8
|
isInitialized = !1;
|
|
9
9
|
constructor(t) {
|
|
10
|
-
this.globalStore = t, this.api = new
|
|
10
|
+
this.globalStore = t, this.api = new i(t.endpoint, t.sessionToken, t.onError), a(this);
|
|
11
11
|
}
|
|
12
12
|
loadCopy = async () => {
|
|
13
|
-
await this.getCopy(this.featureNamespace),
|
|
13
|
+
await this.getCopy(this.featureNamespace), r(() => {
|
|
14
14
|
this.isInitialized = !0;
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
getCopy = async (t, o = "") => {
|
|
18
18
|
try {
|
|
19
19
|
const e = await this.api.getGlobalCopy(t, o);
|
|
20
|
-
|
|
20
|
+
r(() => {
|
|
21
21
|
this.copy = e[t];
|
|
22
22
|
});
|
|
23
23
|
} catch (e) {
|
|
24
24
|
this.captureError("getCopy", e);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
+
setSection = (t, o) => {
|
|
28
|
+
!o || this.copy?.[t] || (this.copy = {
|
|
29
|
+
...this.copy,
|
|
30
|
+
[t]: o
|
|
31
|
+
});
|
|
32
|
+
};
|
|
27
33
|
captureError = (t, o) => this.globalStore.captureException(o, {
|
|
28
34
|
store: "GlobalCopyStore",
|
|
29
35
|
action: t
|
|
30
36
|
});
|
|
31
37
|
};
|
|
32
38
|
export {
|
|
33
|
-
|
|
39
|
+
c as GlobalCopyStore
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
//# sourceMappingURL=GlobalCopyStore.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalCopyStore.es.js","names":[],"sources":["../../../src/core/stores/GlobalCopyStore.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from 'mobx'\n\nimport { GlobalCopyApi } from '../api'\nimport { GlobalCopy } from '../types'\n\nimport { GlobalStore } from './GlobalStore'\n\nexport class GlobalCopyStore {\n globalStore: GlobalStore\n api: GlobalCopyApi = new GlobalCopyApi('/', '')\n\n copy: GlobalCopy = {} as GlobalCopy\n featureNamespace = 'experiences'\n\n isInitialized = false\n\n constructor(globalStore: GlobalStore) {\n this.globalStore = globalStore\n this.api = new GlobalCopyApi(\n globalStore.endpoint,\n globalStore.sessionToken,\n globalStore.onError,\n )\n\n makeAutoObservable(this)\n }\n\n loadCopy = async () => {\n await this.getCopy(this.featureNamespace)\n\n runInAction(() => {\n this.isInitialized = true\n })\n }\n\n getCopy = async (namespace: string, translationKey: string = '') => {\n try {\n const newCopy = await this.api.getGlobalCopy(namespace, translationKey)\n\n runInAction(() => {\n this.copy = newCopy[namespace]\n })\n } catch (error) {\n this.captureError('getCopy', error)\n }\n }\n\n private captureError = (action: string, error: unknown) =>\n this.globalStore.captureException(error, { store: 'GlobalCopyStore', action })\n}\n"],"mappings":";;AAOA,IAAa,IAAb,MAA6B;AAAA,EAC3B;AAAA,EACA,MAAqB,IAAI,EAAc,KAAK,EAAE;AAAA,EAE9C,OAAmB,CAAC;AAAA,EACpB,mBAAmB;AAAA,EAEnB,gBAAgB;AAAA,EAEhB,YAAY,GAA0B;AACpC,SAAK,cAAc,GACnB,KAAK,MAAM,IAAI,EACb,EAAY,UACZ,EAAY,cACZ,EAAY,OACd,GAEA,EAAmB,IAAI;AAAA,EACzB;AAAA,EAEA,WAAW,YAAY;AACrB,UAAM,KAAK,QAAQ,KAAK,gBAAgB,GAExC,EAAA,MAAkB;AAChB,WAAK,gBAAgB;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EAEA,UAAU,OAAO,GAAmB,IAAyB,OAAO;AAClE,QAAI;AACF,YAAM,IAAU,MAAM,KAAK,IAAI,cAAc,GAAW,CAAc;AAEtE,MAAA,EAAA,MAAkB;AAChB,aAAK,OAAO,EAAQ,CAAA;AAAA,MACtB,CAAC;AAAA,IACH,SAAS,GAAO;AACd,WAAK,aAAa,WAAW,CAAK;AAAA,IACpC;AAAA,EACF;AAAA,EAEA,eAAA,CAAwB,GAAgB,MACtC,KAAK,YAAY,iBAAiB,GAAO;AAAA,IAAE,OAAO;AAAA,IAAmB,QAAA;AAAA,EAAO,CAAC;AACjF"}
|
|
1
|
+
{"version":3,"file":"GlobalCopyStore.es.js","names":[],"sources":["../../../src/core/stores/GlobalCopyStore.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from 'mobx'\n\nimport { GlobalCopyApi } from '../api'\nimport { GlobalCopy } from '../types'\n\nimport { GlobalStore } from './GlobalStore'\n\nexport class GlobalCopyStore {\n globalStore: GlobalStore\n api: GlobalCopyApi = new GlobalCopyApi('/', '')\n\n copy: GlobalCopy = {} as GlobalCopy\n featureNamespace = 'experiences'\n\n isInitialized = false\n\n constructor(globalStore: GlobalStore) {\n this.globalStore = globalStore\n this.api = new GlobalCopyApi(\n globalStore.endpoint,\n globalStore.sessionToken,\n globalStore.onError,\n )\n\n makeAutoObservable(this)\n }\n\n loadCopy = async () => {\n await this.getCopy(this.featureNamespace)\n\n runInAction(() => {\n this.isInitialized = true\n })\n }\n\n getCopy = async (namespace: string, translationKey: string = '') => {\n try {\n const newCopy = await this.api.getGlobalCopy(namespace, translationKey)\n\n runInAction(() => {\n this.copy = newCopy[namespace]\n })\n } catch (error) {\n this.captureError('getCopy', error)\n }\n }\n\n /**\n * Merges an already-loaded section into `copy` (no request), for a host that did not load the\n * copy, e.g. the micro widget handing over the insights_feed it loaded with its own copy. A\n * section the store already has is kept.\n */\n setSection = <K extends keyof GlobalCopy>(key: K, section: GlobalCopy[K] | undefined) => {\n if (!section || this.copy?.[key]) return\n\n this.copy = { ...this.copy, [key]: section }\n }\n\n private captureError = (action: string, error: unknown) =>\n this.globalStore.captureException(error, { store: 'GlobalCopyStore', action })\n}\n"],"mappings":";;AAOA,IAAa,IAAb,MAA6B;AAAA,EAC3B;AAAA,EACA,MAAqB,IAAI,EAAc,KAAK,EAAE;AAAA,EAE9C,OAAmB,CAAC;AAAA,EACpB,mBAAmB;AAAA,EAEnB,gBAAgB;AAAA,EAEhB,YAAY,GAA0B;AACpC,SAAK,cAAc,GACnB,KAAK,MAAM,IAAI,EACb,EAAY,UACZ,EAAY,cACZ,EAAY,OACd,GAEA,EAAmB,IAAI;AAAA,EACzB;AAAA,EAEA,WAAW,YAAY;AACrB,UAAM,KAAK,QAAQ,KAAK,gBAAgB,GAExC,EAAA,MAAkB;AAChB,WAAK,gBAAgB;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EAEA,UAAU,OAAO,GAAmB,IAAyB,OAAO;AAClE,QAAI;AACF,YAAM,IAAU,MAAM,KAAK,IAAI,cAAc,GAAW,CAAc;AAEtE,MAAA,EAAA,MAAkB;AAChB,aAAK,OAAO,EAAQ,CAAA;AAAA,MACtB,CAAC;AAAA,IACH,SAAS,GAAO;AACd,WAAK,aAAa,WAAW,CAAK;AAAA,IACpC;AAAA,EACF;AAAA,EAOA,aAAA,CAA0C,GAAQ,MAAuC;AACvF,IAAI,CAAC,KAAW,KAAK,OAAO,CAAA,MAE5B,KAAK,OAAO;AAAA,MAAE,GAAG,KAAK;AAAA,MAAO,CAAA,CAAA,GAAM;AAAA,IAAQ;AAAA,EAC7C;AAAA,EAEA,eAAA,CAAwB,GAAgB,MACtC,KAAK,YAAY,iBAAiB,GAAO;AAAA,IAAE,OAAO;AAAA,IAAmB,QAAA;AAAA,EAAO,CAAC;AACjF"}
|
|
@@ -194,6 +194,28 @@ export interface SurveyModalCopy {
|
|
|
194
194
|
/** ARIA label for the snackbar close button. */
|
|
195
195
|
toast_close_aria: string;
|
|
196
196
|
}
|
|
197
|
+
/** Subscription Status modal words. */
|
|
198
|
+
export interface SubscriptionStatusModalCopy {
|
|
199
|
+
/** Dialog title. */
|
|
200
|
+
title: string;
|
|
201
|
+
/** Positive answer. */
|
|
202
|
+
subscribed_answer: string;
|
|
203
|
+
/** Negative answer; opens the reasons. */
|
|
204
|
+
not_subscribed_answer: string;
|
|
205
|
+
/** Reasons. */
|
|
206
|
+
never_subscribed: string;
|
|
207
|
+
cancelled: string;
|
|
208
|
+
one_time_purchase: string;
|
|
209
|
+
/** Micro title once answered. */
|
|
210
|
+
reviewed_title: string;
|
|
211
|
+
/** Snackbar words. */
|
|
212
|
+
success_message: string;
|
|
213
|
+
error_message: string;
|
|
214
|
+
try_again: string;
|
|
215
|
+
/** Close labels. */
|
|
216
|
+
close_aria: string;
|
|
217
|
+
toast_close_aria: string;
|
|
218
|
+
}
|
|
197
219
|
/** Connection-details education drilldown (`connection_detail_block`). */
|
|
198
220
|
export interface ConnectionDetailsCopy {
|
|
199
221
|
aria_label_thumbs_down: string;
|
|
@@ -423,6 +445,8 @@ export interface InsightsFeedCopy {
|
|
|
423
445
|
connection_details?: ConnectionDetailsCopy;
|
|
424
446
|
/** Optional: every caller already null-guards (`copyStore.insights_feed?.survey_modal`). */
|
|
425
447
|
survey_modal?: SurveyModalCopy;
|
|
448
|
+
/** Subscription Status modal words. */
|
|
449
|
+
subscription_status_modal?: SubscriptionStatusModalCopy;
|
|
426
450
|
feedback_bar: FeedbackBarCopy;
|
|
427
451
|
dismiss: DismissInsightCopy;
|
|
428
452
|
/** Optional until the localized-content service ships the namespace. */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionBlockProps } from '../mappings/blocks';
|
|
2
|
+
/** Unexpected Subscription Payment's Subscription Status modal. */
|
|
3
|
+
export declare const SubscriptionStatusModalBlock: (({ beat, }: ActionBlockProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default SubscriptionStatusModalBlock;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { useGlobalCopyStore as M, useGlobalStore as P, useInsightsV2Store as F } from "../../common/context/hooks.es.js";
|
|
2
|
+
import { slot as a } from "../../core/types/Insights.es.js";
|
|
3
|
+
import { formatCurrency as W } from "../../core/utils/NumberFormatting.es.js";
|
|
4
|
+
import A from "../../common/components/dialog/Dialog.es.js";
|
|
5
|
+
import { useBeatActions as j } from "../beatActions.es.js";
|
|
6
|
+
import { USER_RESPONSE as c, answerSubscription as U, repeatingTransactionOf as H, reportSubscriptionMarkedIncorrect as z } from "../ctaActions/subscriptionAnswer.es.js";
|
|
7
|
+
import V from "../components/LogoFromGuid.es.js";
|
|
8
|
+
import "../components/celebrationGradients.es.js";
|
|
9
|
+
import X from "../components/TransactionListCard.es.js";
|
|
10
|
+
import { subscriptionFrequency as $ } from "../components/SubscriptionStatus/subscriptionFrequency.es.js";
|
|
11
|
+
import q from "../components/shared/StatusSnackbar.es.js";
|
|
12
|
+
import { getDynamicCtaBasedOnTriggers as Z } from "./util.es.js";
|
|
13
|
+
import { useRef as J, useState as C } from "react";
|
|
14
|
+
import { observer as K } from "mobx-react-lite";
|
|
15
|
+
import x from "@mui/material/Stack";
|
|
16
|
+
import { Text as Q } from "@mxenabled/mxui";
|
|
17
|
+
import { Icon as Y } from "@mxenabled/mx-icons";
|
|
18
|
+
import { Fragment as rr, jsx as e, jsxs as _ } from "react/jsx-runtime";
|
|
19
|
+
import er from "@mui/material/Divider";
|
|
20
|
+
import or from "@mui/material/ButtonBase";
|
|
21
|
+
var tr = 32, w = {
|
|
22
|
+
backgroundColor: "background.paper",
|
|
23
|
+
borderRadius: 1
|
|
24
|
+
}, E = {
|
|
25
|
+
"& .MuiDialog-paper": w,
|
|
26
|
+
"& .MuiDialogContent-root": { p: 0 }
|
|
27
|
+
}, wr = K(function({ beat: g }) {
|
|
28
|
+
const D = P(), { insights_feed: I, recurring: O } = M(), { actionDrawer: R, closeActionDrawer: k } = F(), N = j(), [b, l] = C("answers"), [t, u] = C(null), s = J(!1), r = I?.subscription_status_modal, i = g.insights_payload;
|
|
29
|
+
if (!i || !r || !Object.values(r).every((o) => typeof o == "string" && o.trim())) return null;
|
|
30
|
+
const m = {
|
|
31
|
+
beat: g,
|
|
32
|
+
stores: D,
|
|
33
|
+
hostActions: N
|
|
34
|
+
}, n = Z(R, i.primary_cta, i.secondary_cta, i.in_description_cta)?.drilldown_data ?? {}, y = a(n, "logo"), p = a(n, "primary_text"), S = a(n, "amount"), d = async (o) => {
|
|
35
|
+
l("saving");
|
|
36
|
+
try {
|
|
37
|
+
await U(m, o), u({ severity: "success" });
|
|
38
|
+
} catch {
|
|
39
|
+
u({
|
|
40
|
+
severity: "error",
|
|
41
|
+
retry: o
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
l("done");
|
|
45
|
+
}, f = () => {
|
|
46
|
+
u(null), k();
|
|
47
|
+
}, T = () => {
|
|
48
|
+
s.current = !0, z(m), l("reasons");
|
|
49
|
+
}, B = () => {
|
|
50
|
+
s.current = !0, d(c.CONFIRMED);
|
|
51
|
+
}, G = () => {
|
|
52
|
+
if (s.current) {
|
|
53
|
+
s.current = !1;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
f();
|
|
57
|
+
}, h = [
|
|
58
|
+
{
|
|
59
|
+
label: r.never_subscribed,
|
|
60
|
+
userResponse: c.NEVER_SUBSCRIBED
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: r.cancelled,
|
|
64
|
+
userResponse: c.CANCELLED
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: r.one_time_purchase,
|
|
68
|
+
userResponse: c.ONE_TIME_PURCHASE
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
return /* @__PURE__ */ _(rr, { children: [
|
|
72
|
+
/* @__PURE__ */ e(A, {
|
|
73
|
+
copy: {
|
|
74
|
+
title: r.title,
|
|
75
|
+
close_aria: r.close_aria
|
|
76
|
+
},
|
|
77
|
+
fullWidth: !0,
|
|
78
|
+
isOpen: b === "answers",
|
|
79
|
+
onClose: G,
|
|
80
|
+
onPrimaryAction: B,
|
|
81
|
+
onSecondaryAction: T,
|
|
82
|
+
primaryText: r.subscribed_answer,
|
|
83
|
+
secondaryText: r.not_subscribed_answer,
|
|
84
|
+
sx: E,
|
|
85
|
+
children: typeof p == "string" && p && /* @__PURE__ */ e(X, {
|
|
86
|
+
background: "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)",
|
|
87
|
+
elevated: !0,
|
|
88
|
+
rows: [{
|
|
89
|
+
amount: typeof S == "number" ? W(S, "0,0.00") : "",
|
|
90
|
+
amountCaption: $(O, H(m)),
|
|
91
|
+
leading: y ? /* @__PURE__ */ e(V, {
|
|
92
|
+
logo: y,
|
|
93
|
+
size: tr
|
|
94
|
+
}) : void 0,
|
|
95
|
+
subtitle: a(n, "secondary_text") ?? "",
|
|
96
|
+
title: p
|
|
97
|
+
}]
|
|
98
|
+
})
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ e(A, {
|
|
101
|
+
copy: {
|
|
102
|
+
title: r.title,
|
|
103
|
+
close_aria: r.close_aria
|
|
104
|
+
},
|
|
105
|
+
fullWidth: !0,
|
|
106
|
+
isOpen: b === "reasons",
|
|
107
|
+
onClose: f,
|
|
108
|
+
showActions: !1,
|
|
109
|
+
sx: {
|
|
110
|
+
...E,
|
|
111
|
+
"& .MuiDialog-paper": {
|
|
112
|
+
...w,
|
|
113
|
+
pb: 16
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
children: /* @__PURE__ */ e(x, { children: h.map(({ label: o, userResponse: v }, L) => /* @__PURE__ */ _(x, { children: [/* @__PURE__ */ _(or, {
|
|
117
|
+
onClick: () => {
|
|
118
|
+
d(v);
|
|
119
|
+
},
|
|
120
|
+
sx: {
|
|
121
|
+
gap: 12,
|
|
122
|
+
justifyContent: "space-between",
|
|
123
|
+
minHeight: 44,
|
|
124
|
+
px: 24,
|
|
125
|
+
py: 8,
|
|
126
|
+
textAlign: "left",
|
|
127
|
+
width: "100%"
|
|
128
|
+
},
|
|
129
|
+
children: [/* @__PURE__ */ e(Q, {
|
|
130
|
+
variant: "body1",
|
|
131
|
+
children: o
|
|
132
|
+
}), /* @__PURE__ */ e(Y, {
|
|
133
|
+
"aria-hidden": !0,
|
|
134
|
+
name: "chevron_right",
|
|
135
|
+
size: 24,
|
|
136
|
+
sx: { color: "action.active" }
|
|
137
|
+
})]
|
|
138
|
+
}), L < h.length - 1 && /* @__PURE__ */ e(er, { sx: { ml: 24 } })] }, v)) })
|
|
139
|
+
}),
|
|
140
|
+
t && /* @__PURE__ */ e(q, {
|
|
141
|
+
actionText: t.retry ? r.try_again : void 0,
|
|
142
|
+
closeAriaLabel: r.toast_close_aria,
|
|
143
|
+
message: t.severity === "success" ? r.success_message : r.error_message,
|
|
144
|
+
onActionClick: t.retry ? () => {
|
|
145
|
+
d(t.retry);
|
|
146
|
+
} : void 0,
|
|
147
|
+
onClose: f,
|
|
148
|
+
open: !0,
|
|
149
|
+
severity: t.severity
|
|
150
|
+
})
|
|
151
|
+
] });
|
|
152
|
+
});
|
|
153
|
+
export {
|
|
154
|
+
wr as SubscriptionStatusModalBlock,
|
|
155
|
+
wr as default
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
//# sourceMappingURL=SubscriptionStatusModalBlock.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionStatusModalBlock.es.js","names":[],"sources":["../../../src/insights-v2/actionBlocks/SubscriptionStatusModalBlock.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport ButtonBase from '@mui/material/ButtonBase'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { Text } from '@mxenabled/mxui'\n\nimport { Dialog, useGlobalCopyStore, useGlobalStore, useInsightsV2Store } from '../../common'\nimport { slot } from '../../core'\nimport type { LogoRef } from '../../core'\nimport { formatCurrency } from '../../core/utils/NumberFormatting'\nimport { useBeatActions } from '../beatActions'\nimport { WARNING_WASH_GRADIENT } from '../components/celebrationGradients'\nimport LogoFromGuid from '../components/LogoFromGuid'\nimport StatusSnackbar from '../components/shared/StatusSnackbar'\nimport { subscriptionFrequency } from '../components/SubscriptionStatus/subscriptionFrequency'\nimport TransactionListCard from '../components/TransactionListCard'\nimport {\n answerSubscription,\n repeatingTransactionOf,\n reportSubscriptionMarkedIncorrect,\n USER_RESPONSE,\n} from '../ctaActions/subscriptionAnswer'\nimport type { ActionBlockProps } from '../mappings/blocks'\nimport { getDynamicCtaBasedOnTriggers } from './util'\n\nconst ROW_LOGO_SIZE = 32\n\n// White paper, full-bleed content, 4px radius.\nconst DIALOG_PAPER_SX = { backgroundColor: 'background.paper', borderRadius: 1 }\nconst SUBSCRIPTION_DIALOG_SX = {\n '& .MuiDialog-paper': DIALOG_PAPER_SX,\n '& .MuiDialogContent-root': { p: 0 },\n}\n\ntype Phase = 'answers' | 'reasons' | 'saving' | 'done'\ninterface Notice {\n severity: 'success' | 'error'\n retry?: string\n}\n\n/** Unexpected Subscription Payment's Subscription Status modal. */\nexport const SubscriptionStatusModalBlock = observer(function SubscriptionStatusModalBlock({\n beat,\n}: ActionBlockProps) {\n const stores = useGlobalStore()\n const { insights_feed, recurring } = useGlobalCopyStore()\n const { actionDrawer, closeActionDrawer } = useInsightsV2Store()\n const beatActions = useBeatActions()\n const [phase, setPhase] = useState<Phase>('answers')\n const [notice, setNotice] = useState<Notice | null>(null)\n // The Dialog calls onClose after its actions; keep the flow open.\n const actionTaken = useRef(false)\n\n const copy = insights_feed?.subscription_status_modal\n const payload = beat.insights_payload\n\n if (\n !payload ||\n !copy ||\n !Object.values(copy).every((word) => typeof word === 'string' && word.trim())\n ) {\n return null\n }\n\n const ctx = { beat, stores, hostActions: beatActions }\n const cta = getDynamicCtaBasedOnTriggers(\n actionDrawer,\n payload.primary_cta,\n payload.secondary_cta,\n payload.in_description_cta,\n )\n const row = cta?.drilldown_data ?? {}\n const logo = slot<LogoRef>(row, 'logo')\n const title = slot<string>(row, 'primary_text')\n const amount = slot<number>(row, 'amount')\n\n const save = async (userResponse: string) => {\n setPhase('saving')\n try {\n await answerSubscription(ctx, userResponse)\n setNotice({ severity: 'success' })\n } catch {\n setNotice({ severity: 'error', retry: userResponse })\n }\n setPhase('done')\n }\n\n const finish = () => {\n setNotice(null)\n closeActionDrawer()\n }\n\n const chooseNotSubscribed = () => {\n actionTaken.current = true\n reportSubscriptionMarkedIncorrect(ctx)\n setPhase('reasons')\n }\n\n const chooseSubscribed = () => {\n actionTaken.current = true\n void save(USER_RESPONSE.CONFIRMED)\n }\n\n const closeAnswers = () => {\n if (actionTaken.current) {\n actionTaken.current = false\n return\n }\n finish()\n }\n\n const reasons = [\n { label: copy.never_subscribed, userResponse: USER_RESPONSE.NEVER_SUBSCRIBED },\n { label: copy.cancelled, userResponse: USER_RESPONSE.CANCELLED },\n { label: copy.one_time_purchase, userResponse: USER_RESPONSE.ONE_TIME_PURCHASE },\n ]\n\n return (\n <>\n <Dialog\n copy={{ title: copy.title, close_aria: copy.close_aria }}\n // Fixed xs width.\n fullWidth={true}\n isOpen={phase === 'answers'}\n onClose={closeAnswers}\n onPrimaryAction={chooseSubscribed}\n onSecondaryAction={chooseNotSubscribed}\n primaryText={copy.subscribed_answer}\n secondaryText={copy.not_subscribed_answer}\n // Full-bleed wash between title and actions.\n sx={SUBSCRIPTION_DIALOG_SX}\n >\n {typeof title === 'string' && title && (\n <TransactionListCard\n background={WARNING_WASH_GRADIENT}\n elevated={true}\n rows={[\n {\n amount: typeof amount === 'number' ? formatCurrency(amount, '0,0.00') : '',\n amountCaption: subscriptionFrequency(recurring, repeatingTransactionOf(ctx)),\n leading: logo ? <LogoFromGuid logo={logo} size={ROW_LOGO_SIZE} /> : undefined,\n subtitle: slot<string>(row, 'secondary_text') ?? '',\n title,\n },\n ]}\n />\n )}\n </Dialog>\n\n <Dialog\n copy={{ title: copy.title, close_aria: copy.close_aria }}\n fullWidth={true}\n isOpen={phase === 'reasons'}\n onClose={finish}\n showActions={false}\n // Space under the list.\n sx={{ ...SUBSCRIPTION_DIALOG_SX, '& .MuiDialog-paper': { ...DIALOG_PAPER_SX, pb: 16 } }}\n >\n <Stack>\n {reasons.map(({ label, userResponse }, index) => (\n <Stack key={userResponse}>\n <ButtonBase\n onClick={() => void save(userResponse)}\n sx={{\n gap: 12,\n justifyContent: 'space-between',\n minHeight: 44,\n px: 24,\n py: 8,\n textAlign: 'left',\n width: '100%',\n }}\n >\n <Text variant=\"body1\">{label}</Text>\n <Icon\n aria-hidden={true}\n name=\"chevron_right\"\n size={24}\n sx={{ color: 'action.active' }}\n />\n </ButtonBase>\n {/* Between rows only. */}\n {index < reasons.length - 1 && <Divider sx={{ ml: 24 }} />}\n </Stack>\n ))}\n </Stack>\n </Dialog>\n\n {notice && (\n <StatusSnackbar\n actionText={notice.retry ? copy.try_again : undefined}\n closeAriaLabel={copy.toast_close_aria}\n message={notice.severity === 'success' ? copy.success_message : copy.error_message}\n onActionClick={notice.retry ? () => void save(notice.retry as string) : undefined}\n onClose={finish}\n open={true}\n severity={notice.severity}\n />\n )}\n </>\n )\n})\n\nexport default SubscriptionStatusModalBlock\n"],"mappings":"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"}
|
|
@@ -9,25 +9,25 @@ import { ANALYTICS_EVENTS_CONFIG as P } from "../../analytics/analyticsEventsCon
|
|
|
9
9
|
import { useAnalyticsEvent as Lt } from "../../analytics/useAnalyticsEvent.es.js";
|
|
10
10
|
import { DoubleBarChart as It } from "../../components/chartblocks/DoubleBarChart.es.js";
|
|
11
11
|
import { toLegendItems as xt } from "../../blocks/ChartBlocks/DoubleBarChartBlock/comparisonUtils.es.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import { getDynamicCtaBasedOnTriggers as Et } from "../util.es.js";
|
|
13
|
+
import { TransactionDrillDown as Rt } from "./TransactionDrillDown.es.js";
|
|
14
|
+
import { getDefaultSelection as Ot, getDrillDownConfig as jt, getFlattenedDataSeries as Ft, resolveDrillDownSubHeader as Gt, splitProjectedTransaction as Ht, toStoreFilter as wt } from "./utils.es.js";
|
|
15
|
+
import { useTransactionHistory as kt } from "./useTransactionHistory.es.js";
|
|
16
16
|
import { TransactionDetailsBlock as Nt } from "../TransactionDetailsBlock/TransactionDetailsBlock.es.js";
|
|
17
17
|
import { useLayoutEffect as Kt, useState as m } from "react";
|
|
18
18
|
import { observer as Mt } from "mobx-react-lite";
|
|
19
19
|
import { Fragment as Pt, jsx as r, jsxs as Vt } from "react/jsx-runtime";
|
|
20
20
|
import { useTheme as zt } from "@mui/material/styles";
|
|
21
21
|
var ge = Mt(({ beat: s }) => {
|
|
22
|
-
const D = zt(), { actionDrawer: B, setActionContext: S } = Ct(), { insights_payload: c } = s, V =
|
|
22
|
+
const D = zt(), { actionDrawer: B, setActionContext: S } = Ct(), { insights_payload: c } = s, V = Et(B, c?.primary_cta, c?.secondary_cta, c?.in_description_cta)?.variant, { top: e, filterMode: u, header: z, colors: U, filterStrategy: W, tipSection: v, subTabAriaLabels: Y, slotData: $, beatTransactions: q } = jt(V ?? ""), { instanceSlotData: a, beatTransactions: g, spendCategoryGuids: L, allAccountGuids: I, categoryName: J, displayedDateRange: f, transactionStore: Q } = kt(s, {
|
|
23
23
|
slotData: $,
|
|
24
24
|
beatTransactions: q
|
|
25
|
-
}), { common: X, insights_feed: n } = _t(), { isCopyLoaded: Z } = Tt(), [tt, x] = m(!1), [et, ot] = m(!1), E = Lt(), { dataSeries: p, chartData: b, comparisonBars: i } =
|
|
25
|
+
}), { common: X, insights_feed: n } = _t(), { isCopyLoaded: Z } = Tt(), [tt, x] = m(!1), [et, ot] = m(!1), E = Lt(), { dataSeries: p, chartData: b, comparisonBars: i } = Ft({
|
|
26
26
|
data: a?.data_series,
|
|
27
27
|
ariaLabel: e === "doubleBar" ? n?.general?.in_month_you_had_a_category_of_amount ?? "_1{month}, _2{category}: _3{amount}" : Bt,
|
|
28
28
|
top: e,
|
|
29
29
|
beatTransactions: g
|
|
30
|
-
}), d = e === "doubleBar", at = e === "tabsOnly", l = d ? i : b, { chartBarIndex: R, subTabIndex: nt } =
|
|
30
|
+
}), d = e === "doubleBar", at = e === "tabsOnly", l = d ? i : b, { chartBarIndex: R, subTabIndex: nt } = Ot({
|
|
31
31
|
chartTabCount: b.length,
|
|
32
32
|
comparisonTabCount: i.length,
|
|
33
33
|
actionDrawer: B,
|
|
@@ -46,7 +46,7 @@ var ge = Mt(({ beat: s }) => {
|
|
|
46
46
|
spendCategoryGuids: L,
|
|
47
47
|
displayedDateRange: f
|
|
48
48
|
}), it = g.map((t) => t.guid).join(","), lt = L.join(","), ct = I.join(","), dt = e === "list" || e === "tabsOnly" || e === "monthTabs" || p.length > 0, j = () => {
|
|
49
|
-
u !== "store" || !dt || Q.setFilter(
|
|
49
|
+
u !== "store" || !dt || Q.setFilter(wt(C(o), {
|
|
50
50
|
allAccountGuids: I,
|
|
51
51
|
displayedDateRange: f
|
|
52
52
|
}));
|
|
@@ -66,14 +66,14 @@ var ge = Mt(({ beat: s }) => {
|
|
|
66
66
|
it,
|
|
67
67
|
e
|
|
68
68
|
]);
|
|
69
|
-
const F =
|
|
69
|
+
const F = Gt(c), y = z?.({
|
|
70
70
|
title: c?.title,
|
|
71
71
|
subHeader: F,
|
|
72
72
|
categoryName: J,
|
|
73
73
|
selectedDate: b[o]?.date ?? void 0
|
|
74
74
|
}), G = U(D, a?.category_guid);
|
|
75
75
|
if (!Z) return /* @__PURE__ */ r(Dt, {});
|
|
76
|
-
const [H, w] = a?.legends ?? [], mt = u === "local" ? (t) => C(t).custom ?? (() => !0) : void 0, { transactions: ut, projectedTransaction: A } =
|
|
76
|
+
const [H, w] = a?.legends ?? [], mt = u === "local" ? (t) => C(t).custom ?? (() => !0) : void 0, { transactions: ut, projectedTransaction: A } = Ht(g), gt = u === "local" ? ut : void 0, k = n.general.projected_amount, pt = A && k && C(o).custom?.(A) ? {
|
|
77
77
|
heading: k,
|
|
78
78
|
transaction: A
|
|
79
79
|
} : void 0, N = (t, h) => {
|
|
@@ -116,7 +116,7 @@ var ge = Mt(({ beat: s }) => {
|
|
|
116
116
|
selectedTabIndex: o,
|
|
117
117
|
trendAmountLabel: w?.label ?? n.general.trend
|
|
118
118
|
}) : /* @__PURE__ */ r(vt, {}) : null;
|
|
119
|
-
return /* @__PURE__ */ Vt(Pt, { children: [/* @__PURE__ */ r(
|
|
119
|
+
return /* @__PURE__ */ Vt(Pt, { children: [/* @__PURE__ */ r(Rt, {
|
|
120
120
|
baseTransactions: gt,
|
|
121
121
|
projectedRow: pt,
|
|
122
122
|
heading: y?.heading,
|
package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useInsightsV2Store as d, useTransactionStore as f } from "../../../common/context/hooks.es.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getDynamicCtaBasedOnTriggers as g } from "../util.es.js";
|
|
3
|
+
import { getDrillDownConfig as m, guidListOf as p } from "./utils.es.js";
|
|
4
4
|
import l from "react";
|
|
5
5
|
var w = ({ beat: t }) => {
|
|
6
6
|
const { isTransactionDataLoaded: o, loadMissingTransactionData: s, loadTransactionsByGuids: n } = f(), { actionDrawer: r } = d();
|
|
7
7
|
l.useEffect(() => {
|
|
8
|
-
const a = t?.insights_payload, c =
|
|
8
|
+
const a = t?.insights_payload, c = g(r, a?.primary_cta, a?.secondary_cta, a?.in_description_cta)?.variant, { fetchMissingTransactions: e } = m(c ?? ""), i = p(e?.(t));
|
|
9
9
|
(async () => (o || await s(), i && await n(i)))();
|
|
10
10
|
}, []);
|
|
11
11
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import r from "../../../components/LogoFromGuid.es.js";
|
|
2
|
-
import { resolveVariantConfig as
|
|
2
|
+
import { resolveVariantConfig as d } from "../../resolveVariantConfig.es.js";
|
|
3
3
|
import u from "../../../components/TransferLogoCard.es.js";
|
|
4
|
-
import { accountSwitchVariant as
|
|
5
|
-
import { Icon as
|
|
4
|
+
import { accountSwitchVariant as p, getLayoutConfig as h } from "./layout.es.js";
|
|
5
|
+
import { Icon as C } from "@mxenabled/mx-icons";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
import { useTheme as
|
|
8
|
-
var t = 64,
|
|
9
|
-
const n =
|
|
7
|
+
import { useTheme as I } from "@mui/material/styles";
|
|
8
|
+
var t = 64, x = ({ payload: c }) => {
|
|
9
|
+
const n = I(), { data: a, variant: e } = c.instance_slot, { from_logo: i, to_logo: m } = a ?? {}, { badgeIcon: s, badgeIconColor: f, badgeIconSize: g, ...l } = d(h(n), e, p.AccountConnect, "AccountSwitchBlock");
|
|
10
10
|
return /* @__PURE__ */ o(u, {
|
|
11
|
-
...
|
|
11
|
+
...l,
|
|
12
12
|
from: /* @__PURE__ */ o(r, {
|
|
13
|
-
logo:
|
|
13
|
+
logo: i,
|
|
14
14
|
size: t
|
|
15
15
|
}),
|
|
16
|
-
icon: /* @__PURE__ */ o(
|
|
16
|
+
icon: /* @__PURE__ */ o(C, {
|
|
17
17
|
"aria-hidden": !0,
|
|
18
18
|
name: s,
|
|
19
|
-
size:
|
|
19
|
+
size: g,
|
|
20
20
|
sx: { color: f }
|
|
21
21
|
}),
|
|
22
22
|
to: /* @__PURE__ */ o(r, {
|
|
@@ -26,7 +26,7 @@ var t = 64, z = ({ payload: c }) => {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
x as default
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
//# sourceMappingURL=AccountSwitchBlock.es.js.map
|
package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSwitchBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.tsx"],"sourcesContent":["import { useTheme } from '@mui/material/styles'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport type { AccountSwitchBlockV2Data } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport TransferLogoCard from '../../../components/TransferLogoCard'\n\nimport type { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { accountSwitchVariant, getLayoutConfig } from './layout'\n\nconst LOGO_SIZE = 64\n\n/**\n * Two institution logos on a transfer track, shared by Discovered Accounts and Switch\n * Direct Deposit. `instance_slot.variant` picks the design branch from `./layout.ts`.\n *\n * The logos are the `from_logo` / `to_logo` slots on `instance_slot.data`; `LogoFromGuid` draws\n * nothing for a missing slot or a guid that is not a logo guid (tupac omits `to_logo` when the user\n * holds no FI-managed account).\n */\nconst AccountSwitchBlock = ({ payload }: BlockProps) => {\n const theme = useTheme()\n const { data, variant } = payload.instance_slot\n const { from_logo, to_logo } = (data ?? {}) as AccountSwitchBlockV2Data\n\n // Pending connect is the safe default: it promises nothing (no success badge, no confetti).\n const { badgeIcon, badgeIconColor, ...cardProps } = resolveVariantConfig(\n getLayoutConfig(theme),\n variant,\n accountSwitchVariant.AccountConnect,\n 'AccountSwitchBlock',\n )\n\n return (\n <TransferLogoCard\n {...cardProps}\n from={<LogoFromGuid logo={from_logo} size={LOGO_SIZE} />}\n icon={<Icon
|
|
1
|
+
{"version":3,"file":"AccountSwitchBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.tsx"],"sourcesContent":["import { useTheme } from '@mui/material/styles'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport type { AccountSwitchBlockV2Data } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport TransferLogoCard from '../../../components/TransferLogoCard'\n\nimport type { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { accountSwitchVariant, getLayoutConfig } from './layout'\n\nconst LOGO_SIZE = 64\n\n/**\n * Two institution logos on a transfer track, shared by Discovered Accounts and Switch\n * Direct Deposit. `instance_slot.variant` picks the design branch from `./layout.ts`.\n *\n * The logos are the `from_logo` / `to_logo` slots on `instance_slot.data`; `LogoFromGuid` draws\n * nothing for a missing slot or a guid that is not a logo guid (tupac omits `to_logo` when the user\n * holds no FI-managed account).\n */\nconst AccountSwitchBlock = ({ payload }: BlockProps) => {\n const theme = useTheme()\n const { data, variant } = payload.instance_slot\n const { from_logo, to_logo } = (data ?? {}) as AccountSwitchBlockV2Data\n\n // Pending connect is the safe default: it promises nothing (no success badge, no confetti).\n const { badgeIcon, badgeIconColor, badgeIconSize, ...cardProps } = resolveVariantConfig(\n getLayoutConfig(theme),\n variant,\n accountSwitchVariant.AccountConnect,\n 'AccountSwitchBlock',\n )\n\n return (\n <TransferLogoCard\n {...cardProps}\n from={<LogoFromGuid logo={from_logo} size={LOGO_SIZE} />}\n icon={\n <Icon\n aria-hidden={true}\n name={badgeIcon}\n size={badgeIconSize}\n sx={{ color: badgeIconColor }}\n />\n }\n to={<LogoFromGuid logo={to_logo} size={LOGO_SIZE} />}\n />\n )\n}\n\nexport default AccountSwitchBlock\n"],"mappings":";;;;;;;AAYA,IAAM,IAAY,IAUZ,IAAA,CAAsB,EAAE,SAAA,EAAA,MAA0B;AACtD,QAAM,IAAQ,EAAS,GACjB,EAAE,MAAA,GAAM,SAAA,EAAA,IAAY,EAAQ,eAC5B,EAAE,WAAA,GAAW,SAAA,EAAA,IAAa,KAAQ,CAAC,GAGnC,EAAE,WAAA,GAAW,gBAAA,GAAgB,eAAA,GAAe,GAAG,EAAA,IAAc,EACjE,EAAgB,CAAK,GACrB,GACA,EAAqB,gBACrB,oBACF;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,MAAM,gBAAA,EAAC,GAAD;AAAA,MAAc,MAAM;AAAA,MAAW,MAAM;AAAA,IAAY,CAAA;AAAA,IACvD,MACE,gBAAA,EAAC,GAAD;AAAA,MACE,eAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,IAAI,EAAE,OAAO,EAAe;AAAA,IAC7B,CAAA;AAAA,IAEH,IAAI,gBAAA,EAAC,GAAD;AAAA,MAAc,MAAM;AAAA,MAAS,MAAM;AAAA,IAAY,CAAA;AAAA,EACpD,CAAA;AAEL"}
|
|
@@ -3,9 +3,9 @@ import { Theme } from '@mui/material/styles';
|
|
|
3
3
|
* Account Switch block variants, keyed by the backend `instance_slot.variant`. All share
|
|
4
4
|
* `TransferLogoCard`; only the slot surface, center badge and connector dots differ.
|
|
5
5
|
*
|
|
6
|
-
* - `AccountConnect` — Discovered Accounts pending: blue gradient, link badge.
|
|
6
|
+
* - `AccountConnect` — Discovered Accounts pending: blue gradient, black link badge.
|
|
7
7
|
* - `AccountConnected` — Discovered Accounts success: pink wash, confetti, check badge.
|
|
8
|
-
* - `SwitchDirectDeposit` — Switch Direct Deposit pending:
|
|
8
|
+
* - `SwitchDirectDeposit` — Switch Direct Deposit pending: the same look with an arrow badge.
|
|
9
9
|
* Its complete state is a different layout, served by `direct_deposit_block`.
|
|
10
10
|
*/
|
|
11
11
|
export declare const accountSwitchVariant: {
|
|
@@ -25,6 +25,8 @@ export interface AccountSwitchLayoutConfig {
|
|
|
25
25
|
badgeIcon: string;
|
|
26
26
|
/** Color token for the badge glyph. */
|
|
27
27
|
badgeIconColor: string;
|
|
28
|
+
/** Badge glyph size in px. */
|
|
29
|
+
badgeIconSize: number;
|
|
28
30
|
/** Connector-dot color token. */
|
|
29
31
|
dotColor: string;
|
|
30
32
|
/** Enlarge the inner connector dots (6px vs 4px). */
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import { ACCOUNT_CONNECTED_GRADIENT as
|
|
1
|
+
import { ACCOUNT_CONNECTED_GRADIENT as e, getPrimaryWashGradient as n } from "../../../components/celebrationGradients.es.js";
|
|
2
2
|
var o = {
|
|
3
3
|
AccountConnect: "account_connect",
|
|
4
4
|
AccountConnected: "account_connected",
|
|
5
5
|
SwitchDirectDeposit: "switch_direct_deposit"
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
backgroundImage:
|
|
6
|
+
}, r = (t) => {
|
|
7
|
+
const c = {
|
|
8
|
+
backgroundImage: n(t),
|
|
9
9
|
bgcolor: "background.paper",
|
|
10
|
-
badgeBgColor: "
|
|
11
|
-
badgeIcon: "link",
|
|
12
|
-
badgeIconColor: "primary.contrastText",
|
|
13
|
-
dotColor: "text.secondary",
|
|
14
|
-
hasBigDots: !0
|
|
15
|
-
},
|
|
16
|
-
[o.AccountConnected]: {
|
|
17
|
-
backgroundImage: r,
|
|
18
|
-
bgcolor: "background.paper",
|
|
19
|
-
badgeBgColor: "success.main",
|
|
20
|
-
badgeIcon: "check",
|
|
10
|
+
badgeBgColor: "common.black",
|
|
21
11
|
badgeIconColor: "common.white",
|
|
12
|
+
badgeIconSize: 16,
|
|
22
13
|
dotColor: "text.secondary",
|
|
23
|
-
hasBigDots: !0
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
14
|
+
hasBigDots: !0
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
[o.AccountConnect]: {
|
|
18
|
+
...c,
|
|
19
|
+
badgeIcon: "link"
|
|
20
|
+
},
|
|
21
|
+
[o.AccountConnected]: {
|
|
22
|
+
backgroundImage: e,
|
|
23
|
+
bgcolor: "background.paper",
|
|
24
|
+
badgeBgColor: "success.main",
|
|
25
|
+
badgeIcon: "check",
|
|
26
|
+
badgeIconColor: "common.white",
|
|
27
|
+
badgeIconSize: 20,
|
|
28
|
+
dotColor: "text.secondary",
|
|
29
|
+
hasBigDots: !0,
|
|
30
|
+
showConfetti: !0
|
|
31
|
+
},
|
|
32
|
+
[o.SwitchDirectDeposit]: {
|
|
33
|
+
...c,
|
|
34
|
+
badgeIcon: "arrow_right_alt"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
35
38
|
export {
|
|
36
39
|
o as accountSwitchVariant,
|
|
37
|
-
|
|
40
|
+
r as getLayoutConfig
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
//# sourceMappingURL=layout.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport {\n ACCOUNT_CONNECTED_GRADIENT,\n getPrimaryWashGradient,\n} from '../../../components/celebrationGradients'\n\n/**\n * Account Switch block variants, keyed by the backend `instance_slot.variant`. All share\n * `TransferLogoCard`; only the slot surface, center badge and connector dots differ.\n *\n * - `AccountConnect` — Discovered Accounts pending: blue gradient, link badge.\n * - `AccountConnected` — Discovered Accounts success: pink wash, confetti, check badge.\n * - `SwitchDirectDeposit` — Switch Direct Deposit pending:
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport {\n ACCOUNT_CONNECTED_GRADIENT,\n getPrimaryWashGradient,\n} from '../../../components/celebrationGradients'\n\n/**\n * Account Switch block variants, keyed by the backend `instance_slot.variant`. All share\n * `TransferLogoCard`; only the slot surface, center badge and connector dots differ.\n *\n * - `AccountConnect` — Discovered Accounts pending: blue gradient, black link badge.\n * - `AccountConnected` — Discovered Accounts success: pink wash, confetti, check badge.\n * - `SwitchDirectDeposit` — Switch Direct Deposit pending: the same look with an arrow badge.\n * Its complete state is a different layout, served by `direct_deposit_block`.\n */\nexport const accountSwitchVariant = {\n AccountConnect: 'account_connect',\n AccountConnected: 'account_connected',\n SwitchDirectDeposit: 'switch_direct_deposit',\n} as const\n\nexport type AccountSwitchVariant = (typeof accountSwitchVariant)[keyof typeof accountSwitchVariant]\n\nexport interface AccountSwitchLayoutConfig {\n /** Slot surface color token. */\n bgcolor: string\n /** Optional gradient layered over `bgcolor`. */\n backgroundImage?: string\n /** Center badge background color token. */\n badgeBgColor: string\n /** mx-icons glyph rendered in the center badge. */\n badgeIcon: string\n /** Color token for the badge glyph. */\n badgeIconColor: string\n /** Badge glyph size in px. */\n badgeIconSize: number\n /** Connector-dot color token. */\n dotColor: string\n /** Enlarge the inner connector dots (6px vs 4px). */\n hasBigDots: boolean\n /** Confetti burst filling the slot (success states). */\n showConfetti?: boolean\n}\n\n/** Per-variant `TransferLogoCard` props (mirrors DetailedAccountBlock's `getLayoutConfig`). */\nexport const getLayoutConfig = (\n theme: Theme,\n): Record<AccountSwitchVariant, AccountSwitchLayoutConfig> => {\n // Figma's pending look, shared by Discovered Accounts and Switch Direct Deposit: the blue wash,\n // text.secondary dots with the bigger inner pair, and a black badge with a 16px white glyph.\n const pending = {\n backgroundImage: getPrimaryWashGradient(theme),\n bgcolor: 'background.paper',\n badgeBgColor: 'common.black',\n badgeIconColor: 'common.white',\n badgeIconSize: 16,\n dotColor: 'text.secondary',\n hasBigDots: true,\n }\n\n return {\n [accountSwitchVariant.AccountConnect]: { ...pending, badgeIcon: 'link' },\n [accountSwitchVariant.AccountConnected]: {\n backgroundImage: ACCOUNT_CONNECTED_GRADIENT,\n bgcolor: 'background.paper',\n badgeBgColor: 'success.main',\n // Figma \"Common/Check\": a bare 20px check on the solid success badge (not `check_circle`).\n badgeIcon: 'check',\n badgeIconColor: 'common.white',\n badgeIconSize: 20,\n dotColor: 'text.secondary',\n hasBigDots: true,\n showConfetti: true,\n },\n [accountSwitchVariant.SwitchDirectDeposit]: { ...pending, badgeIcon: 'arrow_right_alt' },\n }\n}\n"],"mappings":";AAgBA,IAAa,IAAuB;AAAA,EAClC,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,qBAAqB;AACvB,GA0Ba,IAAA,CACX,MAC4D;AAG5D,QAAM,IAAU;AAAA,IACd,iBAAiB,EAAuB,CAAK;AAAA,IAC7C,SAAS;AAAA,IACT,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,EACd;AAEA,SAAO;AAAA,IACJ,CAAA,EAAqB,cAAA,GAAiB;AAAA,MAAE,GAAG;AAAA,MAAS,WAAW;AAAA,IAAO;AAAA,IACtE,CAAA,EAAqB,gBAAA,GAAmB;AAAA,MACvC,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,cAAc;AAAA,MAEd,WAAW;AAAA,MACX,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,cAAc;AAAA,IAChB;AAAA,IACC,CAAA,EAAqB,mBAAA,GAAsB;AAAA,MAAE,GAAG;AAAA,MAAS,WAAW;AAAA,IAAkB;AAAA,EACzF;AACF"}
|