@mx-cartographer/experiences 9.7.37 → 9.7.39
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 +14 -0
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +30 -0
- package/dist/core/types/localization/index.d.ts +1 -1
- package/dist/core/utils/NumberFormatting.d.ts +5 -0
- package/dist/core/utils/NumberFormatting.es.js +19 -15
- package/dist/core/utils/NumberFormatting.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.d.ts +10 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.es.js +36 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListContent.d.ts +22 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListContent.es.js +176 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListContent.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/index.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.d.ts +20 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.es.js +24 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/useAccountListPrepare.d.ts +1 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/useAccountListPrepare.es.js +13 -0
- package/dist/insights-v2/actionBlocks/AccountListBlock/useAccountListPrepare.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/RemainingCashContent.es.js +1 -1
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/RemainingCashContent.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/layout.d.ts +0 -5
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/layout.es.js +5 -10
- package/dist/insights-v2/actionBlocks/RemainingCashBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.d.ts +3 -4
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js +49 -35
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.d.ts +12 -0
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.es.js +37 -2
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/components/SubscriptionHeroCard.d.ts +5 -1
- package/dist/insights-v2/components/SubscriptionHeroCard.es.js +22 -21
- package/dist/insights-v2/components/SubscriptionHeroCard.es.js.map +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -0
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +2 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +54 -47
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js +105 -105
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/RemainingCashBlock/layout.ts"],"sourcesContent":["import type { RemainingCashCopy } from '../../../core'\nimport { buildDynamicCopy, buildPluralCopy } from '../../../core/utils/Localization'\
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/RemainingCashBlock/layout.ts"],"sourcesContent":["import type { RemainingCashCopy } from '../../../core'\nimport { buildDynamicCopy, buildPluralCopy } from '../../../core/utils/Localization'\n\n/** Rows shown per section before the rest fold into an \"Other (#)\" row (Figma shows two). */\nexport const ROW_LIMIT = 2\n\nexport interface GroupedRows<T> {\n shown: T[]\n others?: { count: number; total: number }\n}\n\n/** Largest rows first (stable for ties), capped at `ROW_LIMIT`; the remainder as a count and total. */\nexport const groupRows = <T extends { amount: number }>(rows: T[]): GroupedRows<T> => {\n const sorted = [...rows].sort((a, b) => b.amount - a.amount)\n\n if (sorted.length <= ROW_LIMIT) return { shown: sorted }\n\n const rest = sorted.slice(ROW_LIMIT)\n\n return {\n shown: sorted.slice(0, ROW_LIMIT),\n others: { count: rest.length, total: rest.reduce((total, r) => total + r.amount, 0) },\n }\n}\n\nexport const getCaption = (copy: RemainingCashCopy, days: number): string => {\n if (days === 1) return copy.remaining_until_payday_one\n\n return buildDynamicCopy(copy.remaining_until_payday, String(days)) as string\n}\n\nexport const getOtherLabel = (templateOne: string, templateMulti: string, count: number): string =>\n buildPluralCopy(templateOne, templateMulti, count, String(count)) as string\n"],"mappings":";AAYA,IAAa,IAAA,CAA2C,MAA8B;AACpF,QAAM,IAAS,CAAC,GAAG,CAAI,EAAE,KAAA,CAAM,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM;AAE3D,MAAI,EAAO,UAAA,EAAqB,QAAO,EAAE,OAAO,EAAO;AAEvD,QAAM,IAAO,EAAO,MAAA,CAAe;AAEnC,SAAO;AAAA,IACL,OAAO,EAAO,MAAM,GAAA,CAAY;AAAA,IAChC,QAAQ;AAAA,MAAE,OAAO,EAAK;AAAA,MAAQ,OAAO,EAAK,OAAA,CAAQ,GAAO,MAAM,IAAQ,EAAE,QAAQ,CAAC;AAAA,IAAE;AAAA,EACtF;AACF,GAEa,IAAA,CAAc,GAAyB,MAC9C,MAAS,IAAU,EAAK,6BAErB,EAAiB,EAAK,wBAAwB,OAAO,CAAI,CAAC,GAGtD,IAAA,CAAiB,GAAqB,GAAuB,MACxE,EAAgB,GAAa,GAAe,GAAO,OAAO,CAAK,CAAC"}
|
|
@@ -10,10 +10,9 @@ export declare const BACKDROP_TILES: {
|
|
|
10
10
|
top: number;
|
|
11
11
|
}[];
|
|
12
12
|
/**
|
|
13
|
-
* Upcoming Subscription component block (Figma: "Full | Upcoming Subscription"). Reads
|
|
14
|
-
*
|
|
15
|
-
* `
|
|
16
|
-
* faded-logo backdrop.
|
|
13
|
+
* Upcoming Subscription component block (Figma: "Full | Upcoming Subscription"). Reads the amount,
|
|
14
|
+
* merchant name, merchant guid and recurrence type from `instance_slot.data` and renders the shared
|
|
15
|
+
* `SubscriptionHeroCard` with the scattered faded-logo backdrop.
|
|
17
16
|
*
|
|
18
17
|
* Wrapped in `createVariantBlock` from day one so an added design branch is a new registry
|
|
19
18
|
* entry, not a rewrite of dispatch logic. Today only `upcoming_subscription` is defined; an
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { useGlobalCopyStore as S } from "../../../../common/context/hooks.es.js";
|
|
2
|
+
import { slot as c } from "../../../../core/types/Insights.es.js";
|
|
3
|
+
import { formatCurrency as C } from "../../../../core/utils/NumberFormatting.es.js";
|
|
4
|
+
import v from "../../../components/LogoFromGuid.es.js";
|
|
5
|
+
import { createVariantBlock as $ } from "../../createVariantBlock.es.js";
|
|
6
|
+
import B from "../../../components/SubscriptionHeroCard.es.js";
|
|
7
|
+
import { CADENCE as V, upcomingSubscriptionVariant as j } from "./layout.es.js";
|
|
8
|
+
import w from "@mui/material/Stack";
|
|
9
|
+
import { jsx as o, jsxs as A } from "react/jsx-runtime";
|
|
10
|
+
import r from "@mui/material/Box";
|
|
11
|
+
var E = [
|
|
10
12
|
{
|
|
11
13
|
size: 51,
|
|
12
14
|
opacity: 0.5,
|
|
@@ -85,14 +87,25 @@ var h = [
|
|
|
85
87
|
left: 72.3,
|
|
86
88
|
top: 57.9
|
|
87
89
|
}
|
|
88
|
-
],
|
|
89
|
-
const { instance_slot: a } = i, {
|
|
90
|
-
alt:
|
|
91
|
-
guid:
|
|
92
|
-
} : null,
|
|
90
|
+
], x = ({ payload: i }) => {
|
|
91
|
+
const s = S().insights_feed?.upcoming_subscription_block, { instance_slot: a } = i, { data: e } = a, l = i.widget_type === "mini", p = c(e, "amount"), m = c(e, "merchant_name"), f = c(e, "merchant_guid"), u = c(e, "recurrence_type"), d = typeof p == "number" && Number.isFinite(p) ? p : void 0, y = typeof m == "string" ? m : void 0, g = typeof f == "string" ? f : void 0, z = typeof u == "number" ? V[u] : void 0, b = s?.[z?.copyKey] ?? z?.word, n = g ? {
|
|
92
|
+
alt: y ?? "",
|
|
93
|
+
guid: g
|
|
94
|
+
} : null, h = d === void 0 ? "" : C(d, "0,0.00"), _ = h ? /* @__PURE__ */ A("span", {
|
|
95
|
+
"data-testid": "subscription-price",
|
|
96
|
+
children: [/* @__PURE__ */ o(r, {
|
|
97
|
+
component: "span",
|
|
98
|
+
sx: { fontWeight: 700 },
|
|
99
|
+
children: h
|
|
100
|
+
}), b ? /* @__PURE__ */ o(r, {
|
|
101
|
+
component: "span",
|
|
102
|
+
sx: { fontWeight: 400 },
|
|
103
|
+
children: ` / ${b}`
|
|
104
|
+
}) : null]
|
|
105
|
+
}) : null, k = n ? /* @__PURE__ */ o(r, {
|
|
93
106
|
"aria-hidden": !0,
|
|
94
107
|
"data-testid": "upcoming-subscription-backdrop",
|
|
95
|
-
children:
|
|
108
|
+
children: E.map((t) => /* @__PURE__ */ o(r, {
|
|
96
109
|
sx: {
|
|
97
110
|
alignItems: "center",
|
|
98
111
|
display: "flex",
|
|
@@ -104,40 +117,41 @@ var h = [
|
|
|
104
117
|
top: `${t.top}%`,
|
|
105
118
|
width: t.size
|
|
106
119
|
},
|
|
107
|
-
children: /* @__PURE__ */ o(
|
|
108
|
-
logo:
|
|
120
|
+
children: /* @__PURE__ */ o(v, {
|
|
121
|
+
logo: n,
|
|
109
122
|
size: t.size
|
|
110
123
|
})
|
|
111
124
|
}, `${t.size}-${t.left}-${t.top}`))
|
|
112
125
|
}) : null;
|
|
113
|
-
return /* @__PURE__ */ o(
|
|
126
|
+
return /* @__PURE__ */ o(w, {
|
|
114
127
|
sx: { px: 16 },
|
|
115
|
-
children: /* @__PURE__ */ o(
|
|
116
|
-
backdrop:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
children: /* @__PURE__ */ o(B, {
|
|
129
|
+
backdrop: k,
|
|
130
|
+
compact: l,
|
|
131
|
+
logo: n ? /* @__PURE__ */ o(v, {
|
|
132
|
+
logo: n,
|
|
133
|
+
size: l ? 40 : 64
|
|
120
134
|
}) : null,
|
|
121
|
-
name:
|
|
122
|
-
price:
|
|
135
|
+
name: y ?? "",
|
|
136
|
+
price: _,
|
|
123
137
|
sx: { px: 0 }
|
|
124
138
|
})
|
|
125
139
|
});
|
|
126
|
-
},
|
|
127
|
-
const
|
|
128
|
-
return /* @__PURE__ */ o(
|
|
129
|
-
beatGuid:
|
|
140
|
+
}, W = ({ payload: i, beatGuid: s }) => {
|
|
141
|
+
const a = i.instance_slot.variant ?? void 0;
|
|
142
|
+
return /* @__PURE__ */ o(G, {
|
|
143
|
+
beatGuid: s,
|
|
130
144
|
payload: i,
|
|
131
|
-
variant:
|
|
145
|
+
variant: a
|
|
132
146
|
});
|
|
133
|
-
},
|
|
134
|
-
variants: { [
|
|
135
|
-
fallback:
|
|
147
|
+
}, G = $({
|
|
148
|
+
variants: { [j.Hero]: x },
|
|
149
|
+
fallback: x,
|
|
136
150
|
name: "UpcomingSubscriptionBlock"
|
|
137
151
|
});
|
|
138
152
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
153
|
+
E as BACKDROP_TILES,
|
|
154
|
+
W as default
|
|
141
155
|
};
|
|
142
156
|
|
|
143
157
|
//# sourceMappingURL=UpcomingSubscriptionBlock.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpcomingSubscriptionBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport
|
|
1
|
+
{"version":3,"file":"UpcomingSubscriptionBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { useGlobalCopyStore } from '../../../../common'\nimport { Frequency, slot, type InsightsPayload } from '../../../../core'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport SubscriptionHeroCard from '../../../components/SubscriptionHeroCard'\nimport { createVariantBlock } from '../../createVariantBlock'\n\nimport { CADENCE, upcomingSubscriptionVariant } from './layout'\n\ninterface UpcomingSubscriptionBlockProps {\n payload: InsightsPayload\n beatGuid?: string\n}\n\n// Fixed tile positions for the scattered merchant-logo backdrop. Each cell sits over the\n// 320x182-ish hero slot in CSS percentages; the card's `overflow: hidden` clips any that fall\n// partly off-frame, which matches the Figma design.\nexport const BACKDROP_TILES: { size: number; opacity: number; left: number; top: number }[] = [\n { size: 51, opacity: 0.5, left: 6.9, top: -13.7 },\n { size: 51, opacity: 0.5, left: 82.8, top: 75.9 },\n { size: 33, opacity: 0.35, left: 15.9, top: 35.7 },\n { size: 33, opacity: 0.35, left: -5.0, top: 57.1 },\n { size: 33, opacity: 0.35, left: 9.3, top: 89.8 },\n { size: 33, opacity: 0.35, left: 96.0, top: 48.8 },\n { size: 33, opacity: 0.35, left: 69.7, top: -9.3 },\n { size: 26, opacity: 0.25, left: 33.1, top: 76.4 },\n { size: 26, opacity: 0.25, left: 0.6, top: 24.8 },\n { size: 26, opacity: 0.25, left: 94.1, top: 5.5 },\n { size: 26, opacity: 0.25, left: 75.4, top: 27.5 },\n { size: 16, opacity: 0.1, left: 59.7, top: 88.8 },\n { size: 16, opacity: 0.1, left: 72.3, top: 57.9 },\n]\n\nconst UpcomingSubscriptionVariant = ({ payload }: UpcomingSubscriptionBlockProps) => {\n const copy = useGlobalCopyStore().insights_feed?.upcoming_subscription_block\n const { instance_slot } = payload\n const { data } = instance_slot\n const isMini = payload.widget_type === 'mini'\n\n // The beat reached this block because firefly flagged it `is_insights_v2` (resolveInsightRender), so\n // `instance_slot.data` (ditto's upcoming_subscription_block slots) is the whole truth: a slot it\n // leaves empty, or sends with the wrong kind, draws nothing. There is no flat-field fallback.\n const dataAmount = slot<unknown>(data, 'amount')\n const dataName = slot<unknown>(data, 'merchant_name')\n const dataGuid = slot<unknown>(data, 'merchant_guid')\n const dataType = slot<unknown>(data, 'recurrence_type')\n\n const amount =\n typeof dataAmount === 'number' && Number.isFinite(dataAmount) ? dataAmount : undefined\n const merchant_name = typeof dataName === 'string' ? dataName : undefined\n const merchant_guid = typeof dataGuid === 'string' ? dataGuid : undefined\n // The cadence word is picked by the stored recurrence type: the host's copy when it has shipped\n // the word, else the English default. An unknown type has no entry, so the pill shows the price alone.\n const entry = typeof dataType === 'number' ? CADENCE[dataType as Frequency] : undefined\n const cadence = copy?.[entry?.copyKey as keyof typeof copy] ?? entry?.word\n\n const logoRef = merchant_guid ? { alt: merchant_name ?? '', guid: merchant_guid } : null\n const amountText = amount === undefined ? '' : formatCurrency(amount, '0,0.00')\n // Figma: the amount is bold and \"/ month\" regular, in one pill.\n const price = amountText ? (\n <span data-testid=\"subscription-price\">\n <Box component=\"span\" sx={{ fontWeight: 700 }}>\n {amountText}\n </Box>\n {cadence ? <Box component=\"span\" sx={{ fontWeight: 400 }}>{` / ${cadence}`}</Box> : null}\n </span>\n ) : null\n\n const backdrop = logoRef ? (\n // Defensive: SubscriptionHeroCard already wraps `backdrop` in an aria-hidden container, but\n // we mark the inner cluster aria-hidden too so AT skips the 13 tiles even if the shared\n // card's wrapper is refactored.\n <Box aria-hidden={true} data-testid=\"upcoming-subscription-backdrop\">\n {BACKDROP_TILES.map((t) => (\n <Box\n key={`${t.size}-${t.left}-${t.top}`}\n sx={{\n alignItems: 'center',\n display: 'flex',\n height: t.size,\n justifyContent: 'center',\n left: `${t.left}%`,\n opacity: t.opacity,\n position: 'absolute',\n top: `${t.top}%`,\n width: t.size,\n }}\n >\n <LogoFromGuid logo={logoRef} size={t.size} />\n </Box>\n ))}\n </Box>\n ) : null\n\n return (\n <Stack sx={{ px: 16 }}>\n <SubscriptionHeroCard\n backdrop={backdrop}\n compact={isMini}\n // Pulse clips a mini card at 312px, and the 64px hero pushed the action label below that cut,\n // so mini draws a 40px logo (and the compact padding).\n logo={logoRef ? <LogoFromGuid logo={logoRef} size={isMini ? 40 : 64} /> : null}\n name={merchant_name ?? ''}\n price={price}\n sx={{ px: 0 }}\n />\n </Stack>\n )\n}\n\n/**\n * Upcoming Subscription component block (Figma: \"Full | Upcoming Subscription\"). Reads the amount,\n * merchant name, merchant guid and recurrence type from `instance_slot.data` and renders the shared\n * `SubscriptionHeroCard` with the scattered faded-logo backdrop.\n *\n * Wrapped in `createVariantBlock` from day one so an added design branch is a new registry\n * entry, not a rewrite of dispatch logic. Today only `upcoming_subscription` is defined; an\n * unknown variant degrades to it.\n */\nconst UpcomingSubscriptionBlock = ({ payload, beatGuid }: UpcomingSubscriptionBlockProps) => {\n const variant = payload.instance_slot.variant ?? undefined\n return <Variants beatGuid={beatGuid} payload={payload} variant={variant} />\n}\n\nconst Variants = createVariantBlock<UpcomingSubscriptionBlockProps>({\n variants: {\n [upcomingSubscriptionVariant.Hero]: UpcomingSubscriptionVariant,\n },\n fallback: UpcomingSubscriptionVariant,\n name: 'UpcomingSubscriptionBlock',\n})\n\nexport default UpcomingSubscriptionBlock\n"],"mappings":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Frequency } from '../../../../core';
|
|
2
|
+
import { UpcomingSubscriptionBlockCopy } from '../../../../core/types/localization/InsightsFeedCopy';
|
|
1
3
|
/**
|
|
2
4
|
* Design branches of the Upcoming Subscription component block.
|
|
3
5
|
*
|
|
@@ -12,3 +14,13 @@ export declare const upcomingSubscriptionVariant: {
|
|
|
12
14
|
readonly Hero: "hero";
|
|
13
15
|
};
|
|
14
16
|
export type UpcomingSubscriptionVariant = (typeof upcomingSubscriptionVariant)[keyof typeof upcomingSubscriptionVariant];
|
|
17
|
+
/**
|
|
18
|
+
* What ends the price pill for each stored recurrence type, in one place: the key under the host's
|
|
19
|
+
* `insights_feed.upcoming_subscription_block` copy, and the English word used when the host has not
|
|
20
|
+
* shipped it. Keyed by the `Frequency` enum, which mirrors Atlas's `RecurrenceType` (what tupac
|
|
21
|
+
* stores as `recurrence_type`); `Unknown` has no entry, so the pill shows the price alone.
|
|
22
|
+
*/
|
|
23
|
+
export declare const CADENCE: Partial<Record<Frequency, {
|
|
24
|
+
copyKey: keyof UpcomingSubscriptionBlockCopy;
|
|
25
|
+
word: string;
|
|
26
|
+
}>>;
|
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
import { Frequency as e } from "../../../../core/types/RepeatingTransaction.es.js";
|
|
2
|
+
var o = { Hero: "hero" }, y = {
|
|
3
|
+
[e.EveryWeek]: {
|
|
4
|
+
copyKey: "cadence_every_week",
|
|
5
|
+
word: "week"
|
|
6
|
+
},
|
|
7
|
+
[e.EveryOtherWeek]: {
|
|
8
|
+
copyKey: "cadence_every_other_week",
|
|
9
|
+
word: "2 weeks"
|
|
10
|
+
},
|
|
11
|
+
[e.EveryMonth]: {
|
|
12
|
+
copyKey: "cadence_every_month",
|
|
13
|
+
word: "month"
|
|
14
|
+
},
|
|
15
|
+
[e.EveryOtherMonth]: {
|
|
16
|
+
copyKey: "cadence_every_other_month",
|
|
17
|
+
word: "2 months"
|
|
18
|
+
},
|
|
19
|
+
[e.EveryQuarter]: {
|
|
20
|
+
copyKey: "cadence_every_quarter",
|
|
21
|
+
word: "quarter"
|
|
22
|
+
},
|
|
23
|
+
[e.EveryOtherQuarter]: {
|
|
24
|
+
copyKey: "cadence_every_other_quarter",
|
|
25
|
+
word: "2 quarters"
|
|
26
|
+
},
|
|
27
|
+
[e.EveryYear]: {
|
|
28
|
+
copyKey: "cadence_every_year",
|
|
29
|
+
word: "year"
|
|
30
|
+
},
|
|
31
|
+
[e.TwiceAMonth]: {
|
|
32
|
+
copyKey: "cadence_twice_a_month",
|
|
33
|
+
word: "twice a month"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
2
36
|
export {
|
|
3
|
-
|
|
37
|
+
y as CADENCE,
|
|
38
|
+
o as upcomingSubscriptionVariant
|
|
4
39
|
};
|
|
5
40
|
|
|
6
41
|
//# sourceMappingURL=layout.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.ts"],"sourcesContent":["/**\n * Design branches of the Upcoming Subscription component block.\n *\n * - `Hero` — the only variant today (Figma: \"Full | Upcoming Subscription\"): 64px hero merchant\n * logo + name (h2) + price pill, over a scattered faded-logo backdrop. Design-named (not the beat\n * name) so another beat wanting the same hero can reuse it.\n *\n * Scaffolded through `createVariantBlock` so adding a future design branch is a new registry entry\n * rather than editing dispatch logic.\n */\nexport const upcomingSubscriptionVariant = {\n Hero: 'hero',\n} as const\n\nexport type UpcomingSubscriptionVariant =\n (typeof upcomingSubscriptionVariant)[keyof typeof upcomingSubscriptionVariant]\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/layout.ts"],"sourcesContent":["import { Frequency } from '../../../../core'\nimport type { UpcomingSubscriptionBlockCopy } from '../../../../core/types/localization/InsightsFeedCopy'\n\n/**\n * Design branches of the Upcoming Subscription component block.\n *\n * - `Hero` — the only variant today (Figma: \"Full | Upcoming Subscription\"): 64px hero merchant\n * logo + name (h2) + price pill, over a scattered faded-logo backdrop. Design-named (not the beat\n * name) so another beat wanting the same hero can reuse it.\n *\n * Scaffolded through `createVariantBlock` so adding a future design branch is a new registry entry\n * rather than editing dispatch logic.\n */\nexport const upcomingSubscriptionVariant = {\n Hero: 'hero',\n} as const\n\nexport type UpcomingSubscriptionVariant =\n (typeof upcomingSubscriptionVariant)[keyof typeof upcomingSubscriptionVariant]\n\n/**\n * What ends the price pill for each stored recurrence type, in one place: the key under the host's\n * `insights_feed.upcoming_subscription_block` copy, and the English word used when the host has not\n * shipped it. Keyed by the `Frequency` enum, which mirrors Atlas's `RecurrenceType` (what tupac\n * stores as `recurrence_type`); `Unknown` has no entry, so the pill shows the price alone.\n */\nexport const CADENCE: Partial<\n Record<Frequency, { copyKey: keyof UpcomingSubscriptionBlockCopy; word: string }>\n> = {\n [Frequency.EveryWeek]: { copyKey: 'cadence_every_week', word: 'week' },\n [Frequency.EveryOtherWeek]: { copyKey: 'cadence_every_other_week', word: '2 weeks' },\n [Frequency.EveryMonth]: { copyKey: 'cadence_every_month', word: 'month' },\n [Frequency.EveryOtherMonth]: { copyKey: 'cadence_every_other_month', word: '2 months' },\n [Frequency.EveryQuarter]: { copyKey: 'cadence_every_quarter', word: 'quarter' },\n [Frequency.EveryOtherQuarter]: { copyKey: 'cadence_every_other_quarter', word: '2 quarters' },\n [Frequency.EveryYear]: { copyKey: 'cadence_every_year', word: 'year' },\n [Frequency.TwiceAMonth]: { copyKey: 'cadence_twice_a_month', word: 'twice a month' },\n}\n"],"mappings":";AAaA,IAAa,IAA8B,EACzC,MAAM,OACR,GAWa,IAET;AAAA,EACD,CAAA,EAAU,SAAA,GAAY;AAAA,IAAE,SAAS;AAAA,IAAsB,MAAM;AAAA,EAAO;AAAA,EACpE,CAAA,EAAU,cAAA,GAAiB;AAAA,IAAE,SAAS;AAAA,IAA4B,MAAM;AAAA,EAAU;AAAA,EAClF,CAAA,EAAU,UAAA,GAAa;AAAA,IAAE,SAAS;AAAA,IAAuB,MAAM;AAAA,EAAQ;AAAA,EACvE,CAAA,EAAU,eAAA,GAAkB;AAAA,IAAE,SAAS;AAAA,IAA6B,MAAM;AAAA,EAAW;AAAA,EACrF,CAAA,EAAU,YAAA,GAAe;AAAA,IAAE,SAAS;AAAA,IAAyB,MAAM;AAAA,EAAU;AAAA,EAC7E,CAAA,EAAU,iBAAA,GAAoB;AAAA,IAAE,SAAS;AAAA,IAA+B,MAAM;AAAA,EAAa;AAAA,EAC3F,CAAA,EAAU,SAAA,GAAY;AAAA,IAAE,SAAS;AAAA,IAAsB,MAAM;AAAA,EAAO;AAAA,EACpE,CAAA,EAAU,WAAA,GAAc;AAAA,IAAE,SAAS;AAAA,IAAyB,MAAM;AAAA,EAAgB;AACrF"}
|
|
@@ -11,6 +11,8 @@ interface SubscriptionHeroCardProps {
|
|
|
11
11
|
backdrop?: ReactNode;
|
|
12
12
|
/** Card surface color/background token. */
|
|
13
13
|
bgcolor?: string;
|
|
14
|
+
/** Tighter padding and gap, for a card that is clipped to a fixed height (the mini carousel). */
|
|
15
|
+
compact?: boolean;
|
|
14
16
|
sx?: SxProps;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
@@ -21,7 +23,9 @@ interface SubscriptionHeroCardProps {
|
|
|
21
23
|
* `background.default` surface, a 64px hero `<Logo>`, name (`h2`) and a dark
|
|
22
24
|
* price pill, with faded scattered logos behind.
|
|
23
25
|
*
|
|
26
|
+
* `compact` trims the padding to 10px and the gap to 8px so the card fits a mini carousel slot.
|
|
27
|
+
*
|
|
24
28
|
* Scope is the Content section only; Header/Description are out of scope.
|
|
25
29
|
*/
|
|
26
|
-
declare const SubscriptionHeroCard: ({ backdrop, bgcolor, logo, name, price, sx, }: SubscriptionHeroCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const SubscriptionHeroCard: ({ backdrop, bgcolor, compact, logo, name, price, sx, }: SubscriptionHeroCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
31
|
export default SubscriptionHeroCard;
|
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Text as
|
|
4
|
-
import { jsx as
|
|
1
|
+
import p from "./AmountPill.es.js";
|
|
2
|
+
import i from "@mui/material/Stack";
|
|
3
|
+
import { Text as h } from "@mxenabled/mxui";
|
|
4
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import t from "@mui/material/Box";
|
|
6
|
-
var
|
|
6
|
+
var b = ({ backdrop: n, bgcolor: s = "background.default", compact: o = !1, logo: d, name: a, price: l, sx: x }) => /* @__PURE__ */ e(i, {
|
|
7
7
|
sx: {
|
|
8
8
|
px: 16,
|
|
9
9
|
width: "100%",
|
|
10
|
-
...
|
|
10
|
+
...x
|
|
11
11
|
},
|
|
12
12
|
children: /* @__PURE__ */ r(t, {
|
|
13
13
|
sx: {
|
|
14
|
-
bgcolor:
|
|
14
|
+
bgcolor: s,
|
|
15
15
|
borderRadius: "8px",
|
|
16
16
|
overflow: "hidden",
|
|
17
17
|
position: "relative",
|
|
18
18
|
width: "100%"
|
|
19
19
|
},
|
|
20
|
-
children: [
|
|
20
|
+
children: [n && /* @__PURE__ */ e(t, {
|
|
21
21
|
"aria-hidden": !0,
|
|
22
22
|
sx: {
|
|
23
23
|
inset: 0,
|
|
24
24
|
position: "absolute"
|
|
25
25
|
},
|
|
26
|
-
children:
|
|
27
|
-
}), /* @__PURE__ */ r(
|
|
26
|
+
children: n
|
|
27
|
+
}), /* @__PURE__ */ r(i, {
|
|
28
|
+
"data-testid": "subscription-hero-content",
|
|
28
29
|
sx: {
|
|
29
30
|
alignItems: "center",
|
|
30
|
-
gap: 12,
|
|
31
|
+
gap: o ? 8 : 12,
|
|
31
32
|
position: "relative",
|
|
32
33
|
px: 24,
|
|
33
|
-
py: 24
|
|
34
|
+
py: o ? 10 : 24
|
|
34
35
|
},
|
|
35
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ e(t, {
|
|
36
37
|
sx: {
|
|
37
38
|
display: "flex",
|
|
38
39
|
flexShrink: 0
|
|
39
40
|
},
|
|
40
|
-
children:
|
|
41
|
-
}), /* @__PURE__ */ r(
|
|
41
|
+
children: d
|
|
42
|
+
}), /* @__PURE__ */ r(i, {
|
|
42
43
|
sx: {
|
|
43
44
|
alignItems: "center",
|
|
44
45
|
gap: 2
|
|
45
46
|
},
|
|
46
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ e(h, {
|
|
47
48
|
bold: !0,
|
|
48
49
|
variant: "h2",
|
|
49
|
-
children:
|
|
50
|
-
}), /* @__PURE__ */
|
|
50
|
+
children: a
|
|
51
|
+
}), l ? /* @__PURE__ */ e(p, {
|
|
51
52
|
px: 10,
|
|
52
53
|
sx: { alignSelf: "center" },
|
|
53
|
-
children:
|
|
54
|
-
})]
|
|
54
|
+
children: l
|
|
55
|
+
}) : null]
|
|
55
56
|
})]
|
|
56
57
|
})]
|
|
57
58
|
})
|
|
58
59
|
});
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
b as default
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
//# sourceMappingURL=SubscriptionHeroCard.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionHeroCard.es.js","names":[],"sources":["../../../src/insights-v2/components/SubscriptionHeroCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport AmountPill from './AmountPill'\n\ninterface SubscriptionHeroCardProps {\n /** Central hero brand/merchant logo. */\n logo: ReactNode\n /** Subscription/merchant name. */\n name: ReactNode\n /** Price, e.g. \"$16.06 / month\". Rendered as a dark pill. */\n price: ReactNode\n /** Optional decorative backdrop (e.g. scattered faded logos) behind the hero. */\n backdrop?: ReactNode\n /** Card surface color/background token. */\n bgcolor?: string\n sx?: SxProps\n}\n\n/**\n * A hero subscription card: a centered brand logo, name, and price pill over an\n * optional decorative backdrop.\n *\n * Figma: Upcoming Subscription Content (`Card / Content / Slot`) — padding 24,\n * `background.default` surface, a 64px hero `<Logo>`, name (`h2`) and a dark\n * price pill, with faded scattered logos behind.\n *\n * Scope is the Content section only; Header/Description are out of scope.\n */\nconst SubscriptionHeroCard = ({\n backdrop,\n bgcolor = 'background.default',\n logo,\n name,\n price,\n sx,\n}: SubscriptionHeroCardProps) => (\n <Stack sx={{ px: 16, width: '100%', ...sx }}>\n <Box\n sx={{\n bgcolor,\n borderRadius: '8px',\n overflow: 'hidden',\n position: 'relative',\n width: '100%',\n }}\n >\n {backdrop && (\n <Box aria-hidden={true} sx={{ inset: 0, position: 'absolute' }}>\n {backdrop}\n </Box>\n )}\n <Stack
|
|
1
|
+
{"version":3,"file":"SubscriptionHeroCard.es.js","names":[],"sources":["../../../src/insights-v2/components/SubscriptionHeroCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport AmountPill from './AmountPill'\n\ninterface SubscriptionHeroCardProps {\n /** Central hero brand/merchant logo. */\n logo: ReactNode\n /** Subscription/merchant name. */\n name: ReactNode\n /** Price, e.g. \"$16.06 / month\". Rendered as a dark pill. */\n price: ReactNode\n /** Optional decorative backdrop (e.g. scattered faded logos) behind the hero. */\n backdrop?: ReactNode\n /** Card surface color/background token. */\n bgcolor?: string\n /** Tighter padding and gap, for a card that is clipped to a fixed height (the mini carousel). */\n compact?: boolean\n sx?: SxProps\n}\n\n/**\n * A hero subscription card: a centered brand logo, name, and price pill over an\n * optional decorative backdrop.\n *\n * Figma: Upcoming Subscription Content (`Card / Content / Slot`) — padding 24,\n * `background.default` surface, a 64px hero `<Logo>`, name (`h2`) and a dark\n * price pill, with faded scattered logos behind.\n *\n * `compact` trims the padding to 10px and the gap to 8px so the card fits a mini carousel slot.\n *\n * Scope is the Content section only; Header/Description are out of scope.\n */\nconst SubscriptionHeroCard = ({\n backdrop,\n bgcolor = 'background.default',\n compact = false,\n logo,\n name,\n price,\n sx,\n}: SubscriptionHeroCardProps) => (\n <Stack sx={{ px: 16, width: '100%', ...sx }}>\n <Box\n sx={{\n bgcolor,\n borderRadius: '8px',\n overflow: 'hidden',\n position: 'relative',\n width: '100%',\n }}\n >\n {backdrop && (\n <Box aria-hidden={true} sx={{ inset: 0, position: 'absolute' }}>\n {backdrop}\n </Box>\n )}\n <Stack\n data-testid=\"subscription-hero-content\"\n sx={{\n alignItems: 'center',\n gap: compact ? 8 : 12,\n position: 'relative',\n px: 24,\n py: compact ? 10 : 24,\n }}\n >\n <Box sx={{ display: 'flex', flexShrink: 0 }}>{logo}</Box>\n <Stack sx={{ alignItems: 'center', gap: 2 }}>\n <Text bold={true} variant=\"h2\">\n {name}\n </Text>\n {price ? (\n <AmountPill px={10} sx={{ alignSelf: 'center' }}>\n {price}\n </AmountPill>\n ) : null}\n </Stack>\n </Stack>\n </Box>\n </Stack>\n)\n\nexport default SubscriptionHeroCard\n"],"mappings":";;;;;AAsCA,IAAM,IAAA,CAAwB,EAC5B,UAAA,GACA,SAAA,IAAU,sBACV,SAAA,IAAU,IACV,MAAA,GACA,MAAA,GACA,OAAA,GACA,IAAA,EAAA,MAEA,gBAAA,EAAC,GAAD;AAAA,EAAO,IAAI;AAAA,IAAE,IAAI;AAAA,IAAI,OAAO;AAAA,IAAQ,GAAG;AAAA,EAAG;AAAA,EACxC,UAAA,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,SAAA;AAAA,MACA,cAAc;AAAA,MACd,UAAU;AAAA,MACV,UAAU;AAAA,MACV,OAAO;AAAA,IACT;AAAA,IAPF,UAAA,CASG,KACC,gBAAA,EAAC,GAAD;AAAA,MAAK,eAAa;AAAA,MAAM,IAAI;AAAA,QAAE,OAAO;AAAA,QAAG,UAAU;AAAA,MAAW;AAAA,MAC1D,UAAA;AAAA,IACE,CAAA,GAEP,gBAAA,EAAC,GAAD;AAAA,MACE,eAAY;AAAA,MACZ,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,KAAK,IAAU,IAAI;AAAA,QACnB,UAAU;AAAA,QACV,IAAI;AAAA,QACJ,IAAI,IAAU,KAAK;AAAA,MACrB;AAAA,MARF,UAAA,CAUE,gBAAA,EAAC,GAAD;AAAA,QAAK,IAAI;AAAA,UAAE,SAAS;AAAA,UAAQ,YAAY;AAAA,QAAE;AAAA,QAAI,UAAA;AAAA,MAAU,CAAA,GACxD,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,YAAY;AAAA,UAAU,KAAK;AAAA,QAAE;AAAA,QAA1C,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,MAAM;AAAA,UAAM,SAAQ;AAAA,UACvB,UAAA;AAAA,QACG,CAAA,GACL,IACC,gBAAA,EAAC,GAAD;AAAA,UAAY,IAAI;AAAA,UAAI,IAAI,EAAE,WAAW,SAAS;AAAA,UAC3C,UAAA;AAAA,QACS,CAAA,IACV,IACC;AAAA,MACF,CAAA,CAAA;AAAA,IACJ,CAAA,CAAA;AAAA;AACA,CAAA"}
|
|
@@ -16,7 +16,8 @@ var _ = {
|
|
|
16
16
|
CREDIT_UTILIZATION_ACTION_BLOCK: "credit_utilization_block",
|
|
17
17
|
EMERGENCY_SAVINGS_ACTION_BLOCK: "emergency_savings_block",
|
|
18
18
|
PAYOFF_CALCULATOR_ACTION_BLOCK: "payoff_calculator_block",
|
|
19
|
-
BUDGET_DETAILS_ACTION_BLOCK: "budget_details_block"
|
|
19
|
+
BUDGET_DETAILS_ACTION_BLOCK: "budget_details_block",
|
|
20
|
+
ACCOUNT_LIST_ACTION_BLOCK: "account_list_block"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
_ as actionBlocksKey
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionBlocksKey.es.js","names":[],"sources":["../../../src/insights-v2/mappings/actionBlocksKey.ts"],"sourcesContent":["// Keys for the drawer drilldown registry in `blocks.ts`, extracted into their own module.\n//\n// Why: chart blocks (e.g. BarchartBlock, DoubleBarChartBlock) need\n// `TRANSCATION_HISTORY_ACTION_BLOCK` to tag a chart bar's drilldown context, but they are\n// themselves re-exported through `../blocks` -> `mappings/blocks.ts` imports from that same\n// barrel to build its `blocks` registry. Importing the key straight from `mappings/blocks.ts`\n// closed that loop into a circular import: evaluating `mappings/blocks.ts` pulled in the\n// `blocks` barrel, which (before it got to `ComponentBlocks`/`AccountBlock`) loaded\n// `BarchartBlock`, which imported back into the still-initializing `mappings/blocks.ts` —\n// tripping a \"Cannot access 'AccountBlock' before initialization\" TDZ error in Storybook/Vite.\n//\n// Keeping the keys here (no dependency on `mappings/blocks.ts`) lets chart blocks reference\n// them without re-entering that module.\n//\n// Names follow ditto: its registry ends every CTA block in `_block` and the V2 envelope copies those\n// names verbatim (`transaction_details_block`, `contact_support_block`, `make_transfer_block`).\nexport const actionBlocksKey = {\n PLACEHOLDER_ACTION_BLOCK: 'placeholder_block',\n MAKE_TRANSFER_ACTION_BLOCK: 'make_transfer_block',\n TRANSCATION_HISTORY_ACTION_BLOCK: 'transaction_history_block',\n TRANSACTION_DETAILS_ACTION_BLOCK: 'transaction_details_block',\n CONTACT_SUPPORT_ACTION_BLOCK: 'contact_support_block',\n FEEDBACK_MODAL_ACTION_BLOCK: 'feedback_modal_block',\n CONNECTION_DETAIL_ACTION_BLOCK: 'connection_detail_block',\n CONNECT_WIDGET_ACTION_BLOCK: 'connect_widget_block',\n SURVEY_MODAL_ACTION_BLOCK: 'survey_modal_block',\n RECURRING_TRANSACTION_ACTION_BLOCK: 'recurring_transaction_block',\n TRANSACTION_LIST_ACTION_BLOCK: 'transaction_list_block',\n REMAINING_CASH_ACTION_BLOCK: 'remaining_cash_block',\n AMOUNT_INPUT_MODAL_ACTION_BLOCK: 'amount_input_modal_block',\n OVERDRAFT_ACTION_BLOCK: 'transparent_overdraft_block',\n CREDIT_UTILIZATION_ACTION_BLOCK: 'credit_utilization_block',\n EMERGENCY_SAVINGS_ACTION_BLOCK: 'emergency_savings_block',\n PAYOFF_CALCULATOR_ACTION_BLOCK: 'payoff_calculator_block',\n BUDGET_DETAILS_ACTION_BLOCK: 'budget_details_block',\n}\n"],"mappings":"AAgBA,IAAa,IAAkB;AAAA,EAC7B,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kCAAkC;AAAA,EAClC,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,oCAAoC;AAAA,EACpC,+BAA+B;AAAA,EAC/B,6BAA6B;AAAA,EAC7B,iCAAiC;AAAA,EACjC,wBAAwB;AAAA,EACxB,iCAAiC;AAAA,EACjC,gCAAgC;AAAA,EAChC,gCAAgC;AAAA,EAChC,6BAA6B;
|
|
1
|
+
{"version":3,"file":"actionBlocksKey.es.js","names":[],"sources":["../../../src/insights-v2/mappings/actionBlocksKey.ts"],"sourcesContent":["// Keys for the drawer drilldown registry in `blocks.ts`, extracted into their own module.\n//\n// Why: chart blocks (e.g. BarchartBlock, DoubleBarChartBlock) need\n// `TRANSCATION_HISTORY_ACTION_BLOCK` to tag a chart bar's drilldown context, but they are\n// themselves re-exported through `../blocks` -> `mappings/blocks.ts` imports from that same\n// barrel to build its `blocks` registry. Importing the key straight from `mappings/blocks.ts`\n// closed that loop into a circular import: evaluating `mappings/blocks.ts` pulled in the\n// `blocks` barrel, which (before it got to `ComponentBlocks`/`AccountBlock`) loaded\n// `BarchartBlock`, which imported back into the still-initializing `mappings/blocks.ts` —\n// tripping a \"Cannot access 'AccountBlock' before initialization\" TDZ error in Storybook/Vite.\n//\n// Keeping the keys here (no dependency on `mappings/blocks.ts`) lets chart blocks reference\n// them without re-entering that module.\n//\n// Names follow ditto: its registry ends every CTA block in `_block` and the V2 envelope copies those\n// names verbatim (`transaction_details_block`, `contact_support_block`, `make_transfer_block`).\nexport const actionBlocksKey = {\n PLACEHOLDER_ACTION_BLOCK: 'placeholder_block',\n MAKE_TRANSFER_ACTION_BLOCK: 'make_transfer_block',\n TRANSCATION_HISTORY_ACTION_BLOCK: 'transaction_history_block',\n TRANSACTION_DETAILS_ACTION_BLOCK: 'transaction_details_block',\n CONTACT_SUPPORT_ACTION_BLOCK: 'contact_support_block',\n FEEDBACK_MODAL_ACTION_BLOCK: 'feedback_modal_block',\n CONNECTION_DETAIL_ACTION_BLOCK: 'connection_detail_block',\n CONNECT_WIDGET_ACTION_BLOCK: 'connect_widget_block',\n SURVEY_MODAL_ACTION_BLOCK: 'survey_modal_block',\n RECURRING_TRANSACTION_ACTION_BLOCK: 'recurring_transaction_block',\n TRANSACTION_LIST_ACTION_BLOCK: 'transaction_list_block',\n REMAINING_CASH_ACTION_BLOCK: 'remaining_cash_block',\n AMOUNT_INPUT_MODAL_ACTION_BLOCK: 'amount_input_modal_block',\n OVERDRAFT_ACTION_BLOCK: 'transparent_overdraft_block',\n CREDIT_UTILIZATION_ACTION_BLOCK: 'credit_utilization_block',\n EMERGENCY_SAVINGS_ACTION_BLOCK: 'emergency_savings_block',\n PAYOFF_CALCULATOR_ACTION_BLOCK: 'payoff_calculator_block',\n BUDGET_DETAILS_ACTION_BLOCK: 'budget_details_block',\n ACCOUNT_LIST_ACTION_BLOCK: 'account_list_block',\n}\n"],"mappings":"AAgBA,IAAa,IAAkB;AAAA,EAC7B,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kCAAkC;AAAA,EAClC,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,oCAAoC;AAAA,EACpC,+BAA+B;AAAA,EAC/B,6BAA6B;AAAA,EAC7B,iCAAiC;AAAA,EACjC,wBAAwB;AAAA,EACxB,iCAAiC;AAAA,EACjC,gCAAgC;AAAA,EAChC,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,2BAA2B;AAC7B"}
|