@mx-cartographer/experiences 9.7.57 → 9.7.59
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 +8 -1
- package/dist/common/components/Banner.es.js +33 -30
- package/dist/common/components/Banner.es.js.map +1 -1
- package/dist/common/constants/Connect.d.ts +7 -0
- package/dist/common/constants/Connect.es.js +13 -8
- package/dist/common/constants/Connect.es.js.map +1 -1
- package/dist/common/constants/index.d.ts +1 -1
- package/dist/common/index.es.js +131 -129
- package/dist/core/types/Handlers.d.ts +4 -0
- package/dist/core/types/InsightsInstanceSlotData.d.ts +2 -1
- package/dist/core/types/InsightsInstanceSlotData.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +93 -53
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +20 -20
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +48 -39
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/components/LogoClusterCard.d.ts +7 -1
- package/dist/insights-v2/components/LogoClusterCard.es.js +54 -48
- package/dist/insights-v2/components/LogoClusterCard.es.js.map +1 -1
- package/dist/insights-v2/components/LogoTile.d.ts +6 -4
- package/dist/insights-v2/components/LogoTile.es.js +21 -19
- package/dist/insights-v2/components/LogoTile.es.js.map +1 -1
- package/dist/insights-v2/components/MerchantHighlightCard.d.ts +8 -3
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +24 -21
- package/dist/insights-v2/components/MerchantHighlightCard.es.js.map +1 -1
- package/dist/insights-v2/components/P2PLogoStack.d.ts +7 -1
- package/dist/insights-v2/components/P2PLogoStack.es.js +34 -26
- package/dist/insights-v2/components/P2PLogoStack.es.js.map +1 -1
- package/dist/insights-v2/components/celebrationGradients.d.ts +6 -3
- package/dist/insights-v2/components/celebrationGradients.es.js +8 -7
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/components/statusTokens.d.ts +0 -5
- package/dist/insights-v2/components/statusTokens.es.js +0 -5
- package/dist/insights-v2/components/statusTokens.es.js.map +1 -1
- package/dist/insights-v2/index.es.js +75 -75
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [9.7.59] - 10-28-2026
|
|
2
|
+
|
|
3
|
+
- **ADDED** - Deposit banner deep-link support (MEW-3904): `Banner` handles `deep_link_type` `DIRECT_DEPOSIT` (1) alongside `CONNECT`, rendering an in-app button that records the click and posts a new `atomicTransact` host message for the host to open the deposit flow. Adds `ACTIONABLE_INTEGRATION_TYPE` / `ACTIONABLE_INTEGRATION_SOURCES`; inert until longbow surfaces `deep_link_type` (MEW-3904)
|
|
4
|
+
|
|
5
|
+
## [9.7.58] - 10-28-2026
|
|
6
|
+
|
|
7
|
+
- **CHANGED** - `merchant_block` adds the `highlight`, `single_subscription`, `multiple_subscription` and `multiple_badged` variants, matches the rest to Figma, and removes `single_large`, `single_error` and `multiple_error` (MEW2-3372)
|
|
8
|
+
|
|
1
9
|
## [9.7.57] - 10-28-2026
|
|
2
10
|
|
|
3
11
|
- **CHANGED** - The Upcoming Bill "View Details" drawer (`transaction_history_block` / `upcoming_bill`) reads its facts from the envelope's `drilldown_data` instead of `instance_slot.data`, which fixes its empty chart: `transaction_guids` select the paid bills, `due_date` (YYYY-MM-DD) and `amount` add the projected bar last, `category_guid` colours the bars and `average_amount` is the Trend legend. The source is the registry entry's new optional `slotData` resolver (`resolveUpcomingBillSlotData`); every other drilldown variant still reads `instance_slot.data`. Each fact is narrowed and fails closed: a missing or mistyped due date, amount or `transaction_guids` draws no chart and lists no rows, while a missing average or category only drops the Trend figure or the category colour (WEC-1962)
|
|
@@ -6,7 +14,6 @@
|
|
|
6
14
|
- **FIXED** - The Upcoming Bill drawer draws a bar for each paid bill even when it is older than the transaction store's 90-day window: the block's open-time prepare hook fetches the paid bills the store lacks by guid (new `TransactionStore.loadTransactionsByGuids`, over `TransactionApi.getTransactionsByGuids`), as pulse's `BeatShell` loads a legacy beat's transactions. A drilldown registry entry opts in with the new `fetchMissingTransactions(beat)` function, which returns the guids from wherever its beat keeps them (`upcoming_bill`: `drilldown_data.transaction_guids`, narrowed with `guidListOf`), and the fetch runs after the 90-day window load so that load cannot replace the older bills. A bar's date is the bill's UTC calendar day, so it no longer names the day before the row's date west of UTC (WEC-1962)
|
|
7
15
|
- **ADDED** - Drilldown registry entries take an optional `beatTransactions` resolver, alongside `slotData`, that builds the drawer's transactions from the beat's own. Upcoming Bill's (`resolveUpcomingBillTransactions`) appends the projected bill (`buildProjectedBillTransaction`, on `PROJECTED_BILL_GUID`) last, so the bars (`buildUpcomingBillSeries`) and the projected tab's row read one list; the block (`splitProjectedTransaction`) keeps it out of the list and the CSV export and hands it to `TransactionDrillDown` as the projected row only when the selected tab's filter matches it (WEC-1962)
|
|
8
16
|
- **ADDED** - Upcoming Bill fixture (`UpcomingBillPayload.json`, the full envelope in tupac's shape; `miniBeats` derives the mini with its own guid) and the `InsightsV2/Insights/UpcomingBill` story: full and mini cards and the open "View Details" drawer (WEC-1962)
|
|
9
|
-
|
|
10
17
|
## [9.7.56] - 10-27-2026
|
|
11
18
|
|
|
12
19
|
- **ADDED** - Monthly Non-Essential Category Summary's "View more" drawer on Insights 2.0 (MEW2-3375): the `transaction_history_block` `non_essential_category_summary` row, a tabs-only drawer (no chart, no month tabs) with one side tab per `series` row (Non-essential / Essential) that lists that side's `aggregated_guids` within its month. Fixtures (`mock/BlockBeatsData/NonEssentialCategorySummary*.ts`), drawer stories, contract test and the block doc
|
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import { useEvent as
|
|
2
|
-
import { ANALYTICS_EVENTS as
|
|
3
|
-
import { CONNECT_WIDGET_SOURCES as
|
|
4
|
-
import
|
|
1
|
+
import { useEvent as N, useGlobalCopyStore as y, useGlobalStore as T, useHostMessage as b } from "../context/hooks.es.js";
|
|
2
|
+
import { ANALYTICS_EVENTS as p } from "../constants/Analytics.es.js";
|
|
3
|
+
import { ACTIONABLE_INTEGRATION_SOURCES as k, ACTIONABLE_INTEGRATION_TYPE as I, CONNECT_WIDGET_SOURCES as h, DEEP_LINK_TYPE as _ } from "../constants/Connect.es.js";
|
|
4
|
+
import S from "./ConnectDrawer.es.js";
|
|
5
5
|
import t from "react";
|
|
6
|
-
import { observer as
|
|
7
|
-
import
|
|
8
|
-
import { jsx as r, jsxs as
|
|
9
|
-
import { useTheme as
|
|
10
|
-
var
|
|
11
|
-
const
|
|
6
|
+
import { observer as A } from "mobx-react-lite";
|
|
7
|
+
import B from "@mui/material/Stack";
|
|
8
|
+
import { jsx as r, jsxs as R } from "react/jsx-runtime";
|
|
9
|
+
import { useTheme as O } from "@mui/material/styles";
|
|
10
|
+
var j = A(() => {
|
|
11
|
+
const u = O(), { appDataStore: { banner: e, loadBanner: m, markBannerClicked: n, user: f } } = T(), { onEvent: o } = N(), { sendHostMessage: E } = b(), { connect: g } = y(), [i, l] = t.useState(!1);
|
|
12
12
|
if (t.useEffect(() => {
|
|
13
|
-
|
|
14
|
-
}, [
|
|
15
|
-
e?.image_url &&
|
|
13
|
+
m();
|
|
14
|
+
}, [f]), t.useEffect(() => {
|
|
15
|
+
e?.image_url && o(p.BANNER_VIEW, {
|
|
16
16
|
banner_guid: e.guid,
|
|
17
17
|
deep_link_type: e.deep_link_type
|
|
18
18
|
});
|
|
19
19
|
}, [e?.guid, e?.image_url]), !e?.image_url) return null;
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const s = e.deep_link_type === _.CONNECT, a = e.deep_link_type === _.DIRECT_DEPOSIT, C = s || a, c = () => {
|
|
21
|
+
o(p.BANNER_CLICK, {
|
|
22
22
|
banner_guid: e.guid,
|
|
23
23
|
deep_link_type: e.deep_link_type
|
|
24
|
-
}),
|
|
25
|
-
|
|
24
|
+
}), s ? (e.guid && n(e.guid), l(!0)) : a && (e.guid && n(e.guid), E("atomicTransact", {
|
|
25
|
+
integration_type: I.DIRECT_DEPOSIT,
|
|
26
|
+
source: k.BANNER
|
|
27
|
+
}));
|
|
28
|
+
}, d = /* @__PURE__ */ r("img", {
|
|
26
29
|
alt: "",
|
|
27
30
|
referrerPolicy: "no-referrer",
|
|
28
31
|
src: e.image_url,
|
|
29
32
|
style: {
|
|
30
33
|
width: "100%",
|
|
31
34
|
height: "auto",
|
|
32
|
-
border: `1px solid ${
|
|
35
|
+
border: `1px solid ${u.palette.grey[300]}`,
|
|
33
36
|
display: "block"
|
|
34
37
|
}
|
|
35
38
|
});
|
|
36
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ R(t.Fragment, { children: [/* @__PURE__ */ r(B, {
|
|
37
40
|
sx: {
|
|
38
41
|
alignItems: "center",
|
|
39
42
|
width: "100%",
|
|
40
43
|
mb: 24
|
|
41
44
|
},
|
|
42
|
-
children:
|
|
45
|
+
children: C ? /* @__PURE__ */ r("button", {
|
|
43
46
|
"aria-label": "Banner",
|
|
44
|
-
onClick:
|
|
47
|
+
onClick: c,
|
|
45
48
|
style: {
|
|
46
49
|
background: "none",
|
|
47
50
|
border: "none",
|
|
@@ -51,11 +54,11 @@ var P = h(() => {
|
|
|
51
54
|
width: "100%"
|
|
52
55
|
},
|
|
53
56
|
type: "button",
|
|
54
|
-
children:
|
|
57
|
+
children: d
|
|
55
58
|
}) : /* @__PURE__ */ r("a", {
|
|
56
59
|
"aria-label": "Banner",
|
|
57
60
|
href: e.redirect_url,
|
|
58
|
-
onClick:
|
|
61
|
+
onClick: c,
|
|
59
62
|
referrerPolicy: "no-referrer",
|
|
60
63
|
rel: "noopener noreferrer",
|
|
61
64
|
style: {
|
|
@@ -63,17 +66,17 @@ var P = h(() => {
|
|
|
63
66
|
width: "100%"
|
|
64
67
|
},
|
|
65
68
|
target: "_blank",
|
|
66
|
-
children:
|
|
69
|
+
children: d
|
|
67
70
|
})
|
|
68
|
-
}),
|
|
69
|
-
onClose: () =>
|
|
70
|
-
showConnectWidget:
|
|
71
|
-
source:
|
|
72
|
-
title:
|
|
71
|
+
}), i && /* @__PURE__ */ r(S, {
|
|
72
|
+
onClose: () => l(!1),
|
|
73
|
+
showConnectWidget: i,
|
|
74
|
+
source: h.BANNER,
|
|
75
|
+
title: g?.mini_title ?? ""
|
|
73
76
|
})] });
|
|
74
77
|
});
|
|
75
78
|
export {
|
|
76
|
-
|
|
79
|
+
j as Banner
|
|
77
80
|
};
|
|
78
81
|
|
|
79
82
|
//# sourceMappingURL=Banner.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.es.js","names":[],"sources":["../../../src/common/components/Banner.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { useTheme } from '@mui/material/styles'\nimport Stack from '@mui/material/Stack'\n\nimport ConnectDrawer from './ConnectDrawer'\nimport { useGlobalCopyStore, useGlobalStore } from '..'\nimport { useEvent } from '../context/hooks'\nimport {
|
|
1
|
+
{"version":3,"file":"Banner.es.js","names":[],"sources":["../../../src/common/components/Banner.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { useTheme } from '@mui/material/styles'\nimport Stack from '@mui/material/Stack'\n\nimport ConnectDrawer from './ConnectDrawer'\nimport { useGlobalCopyStore, useGlobalStore } from '..'\nimport { useEvent, useHostMessage } from '../context/hooks'\nimport {\n ACTIONABLE_INTEGRATION_SOURCES,\n ACTIONABLE_INTEGRATION_TYPE,\n ANALYTICS_EVENTS,\n CONNECT_WIDGET_SOURCES,\n DEEP_LINK_TYPE,\n} from '../constants'\n\nexport const Banner = observer(() => {\n const theme = useTheme()\n const {\n appDataStore: { banner, loadBanner, markBannerClicked, user },\n } = useGlobalStore()\n const { onEvent } = useEvent()\n const { sendHostMessage } = useHostMessage()\n const { connect: connectCopy } = useGlobalCopyStore()\n const [showConnectWidget, setShowConnectWidget] = React.useState(false)\n\n React.useEffect(() => {\n void loadBanner()\n }, [user])\n\n React.useEffect(() => {\n if (banner?.image_url) {\n onEvent(ANALYTICS_EVENTS.BANNER_VIEW, {\n banner_guid: banner.guid,\n deep_link_type: banner.deep_link_type,\n })\n }\n }, [banner?.guid, banner?.image_url])\n\n if (!banner?.image_url) {\n return null\n }\n\n const isConnect = banner.deep_link_type === DEEP_LINK_TYPE.CONNECT\n const isDeposit = banner.deep_link_type === DEEP_LINK_TYPE.DIRECT_DEPOSIT\n // Both deep-link types act in-app (no external destination), so they render a\n // button rather than an anchor.\n const isInApp = isConnect || isDeposit\n\n const handleClick = () => {\n onEvent(ANALYTICS_EVENTS.BANNER_CLICK, {\n banner_guid: banner.guid,\n deep_link_type: banner.deep_link_type,\n })\n\n // Deep-link paths skip `redirect_url`, so record the click server-side here\n // (see AppDataStore.markBannerClicked).\n if (isConnect) {\n if (banner.guid) markBannerClicked(banner.guid)\n setShowConnectWidget(true)\n } else if (isDeposit) {\n if (banner.guid) markBannerClicked(banner.guid)\n // The dialog is a host construct, so ask the host to run the flow rather\n // than opening it here.\n sendHostMessage('atomicTransact', {\n integration_type: ACTIONABLE_INTEGRATION_TYPE.DIRECT_DEPOSIT,\n source: ACTIONABLE_INTEGRATION_SOURCES.BANNER,\n })\n }\n }\n\n const image = (\n <img\n alt=\"\"\n referrerPolicy=\"no-referrer\"\n src={banner.image_url}\n style={{\n width: '100%',\n height: 'auto',\n border: `1px solid ${theme.palette.grey['300']}`,\n display: 'block',\n }}\n />\n )\n\n return (\n <React.Fragment>\n <Stack\n sx={{\n alignItems: 'center',\n width: '100%',\n mb: 24,\n }}\n >\n {isInApp ? (\n // In-app deep links (Connect drawer, deposit dialog) have no external\n // destination to middle-click or open in a new tab, so render a button\n // with no href/target and force every interaction through onClick.\n <button\n aria-label=\"Banner\"\n onClick={handleClick}\n style={{\n background: 'none',\n border: 'none',\n cursor: 'pointer',\n display: 'block',\n padding: 0,\n width: '100%',\n }}\n type=\"button\"\n >\n {image}\n </button>\n ) : (\n // Every other type (incl. today's API, which omits deep_link_type) is a\n // real external link, keeping native middle-click / open-in-new-tab.\n <a\n aria-label=\"Banner\"\n href={banner.redirect_url}\n onClick={handleClick}\n referrerPolicy=\"no-referrer\"\n rel=\"noopener noreferrer\"\n style={{ display: 'block', width: '100%' }}\n target=\"_blank\"\n >\n {image}\n </a>\n )}\n </Stack>\n {showConnectWidget && (\n <ConnectDrawer\n onClose={() => setShowConnectWidget(false)}\n showConnectWidget={showConnectWidget}\n source={CONNECT_WIDGET_SOURCES.BANNER}\n title={connectCopy?.mini_title ?? ''}\n />\n )}\n </React.Fragment>\n )\n})\n"],"mappings":";;;;;;;;;AAiBA,IAAa,IAAS,EAAA,MAAe;AACnC,QAAM,IAAQ,EAAS,GACjB,EACJ,cAAc,EAAE,QAAA,GAAQ,YAAA,GAAY,mBAAA,GAAmB,MAAA,EAAA,EAAA,IACrD,EAAe,GACb,EAAE,SAAA,EAAA,IAAY,EAAS,GACvB,EAAE,iBAAA,EAAA,IAAoB,EAAe,GACrC,EAAE,SAAS,EAAA,IAAgB,EAAmB,GAC9C,CAAC,GAAmB,CAAA,IAAwB,EAAM,SAAS,EAAK;AAetE,MAbA,EAAM,UAAA,MAAgB;AACpB,IAAA,EAAgB;AAAA,EAClB,GAAG,CAAC,CAAI,CAAC,GAET,EAAM,UAAA,MAAgB;AACpB,IAAI,GAAQ,aACV,EAAQ,EAAiB,aAAa;AAAA,MACpC,aAAa,EAAO;AAAA,MACpB,gBAAgB,EAAO;AAAA,IACzB,CAAC;AAAA,EAEL,GAAG,CAAC,GAAQ,MAAM,GAAQ,SAAS,CAAC,GAEhC,CAAC,GAAQ,UACX,QAAO;AAGT,QAAM,IAAY,EAAO,mBAAmB,EAAe,SACrD,IAAY,EAAO,mBAAmB,EAAe,gBAGrD,IAAU,KAAa,GAEvB,IAAA,MAAoB;AACxB,IAAA,EAAQ,EAAiB,cAAc;AAAA,MACrC,aAAa,EAAO;AAAA,MACpB,gBAAgB,EAAO;AAAA,IACzB,CAAC,GAIG,KACE,EAAO,QAAM,EAAkB,EAAO,IAAI,GAC9C,EAAqB,EAAI,KAChB,MACL,EAAO,QAAM,EAAkB,EAAO,IAAI,GAG9C,EAAgB,kBAAkB;AAAA,MAChC,kBAAkB,EAA4B;AAAA,MAC9C,QAAQ,EAA+B;AAAA,IACzC,CAAC;AAAA,EAEL,GAEM,IACJ,gBAAA,EAAC,OAAD;AAAA,IACE,KAAI;AAAA,IACJ,gBAAe;AAAA,IACf,KAAK,EAAO;AAAA,IACZ,OAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,QAAQ,aAAa,EAAM,QAAQ,KAAK,GAAA,CAAA;AAAA,MACxC,SAAS;AAAA,IACX;AAAA,EACD,CAAA;AAGH,SACE,gBAAA,EAAC,EAAM,UAAP,EAAA,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,IAAI;AAAA,IACN;AAAA,IAEC,UAAA,IAIC,gBAAA,EAAC,UAAD;AAAA,MACE,cAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,OAAO;AAAA,MACT;AAAA,MACA,MAAK;AAAA,MAEJ,UAAA;AAAA,IACK,CAAA,IAIR,gBAAA,EAAC,KAAD;AAAA,MACE,cAAW;AAAA,MACX,MAAM,EAAO;AAAA,MACb,SAAS;AAAA,MACT,gBAAe;AAAA,MACf,KAAI;AAAA,MACJ,OAAO;AAAA,QAAE,SAAS;AAAA,QAAS,OAAO;AAAA,MAAO;AAAA,MACzC,QAAO;AAAA,MAEN,UAAA;AAAA,IACA,CAAA;AAAA,EAEA,CAAA,GACN,KACC,gBAAA,EAAC,GAAD;AAAA,IACE,SAAA,MAAe,EAAqB,EAAK;AAAA,IACtB,mBAAA;AAAA,IACnB,QAAQ,EAAuB;AAAA,IAC/B,OAAO,GAAa,cAAc;AAAA,EACnC,CAAA,CAEW,EAAA,CAAA;AAEpB,CAAC"}
|
|
@@ -5,8 +5,15 @@ export declare enum MemberConnectionStatus {
|
|
|
5
5
|
Error = "error"
|
|
6
6
|
}
|
|
7
7
|
export declare const DEEP_LINK_TYPE: {
|
|
8
|
+
readonly DIRECT_DEPOSIT: 1;
|
|
8
9
|
readonly CONNECT: 2;
|
|
9
10
|
};
|
|
11
|
+
export declare const ACTIONABLE_INTEGRATION_TYPE: {
|
|
12
|
+
readonly DIRECT_DEPOSIT: "direct-deposit";
|
|
13
|
+
};
|
|
14
|
+
export declare const ACTIONABLE_INTEGRATION_SOURCES: {
|
|
15
|
+
readonly BANNER: "deposit_banner";
|
|
16
|
+
};
|
|
10
17
|
export declare const CONNECT_WIDGET_SOURCES: {
|
|
11
18
|
readonly BANNER: "banner";
|
|
12
19
|
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
3
|
-
})({}),
|
|
1
|
+
var N = "connect_widget", T = "connections_widget", r = /* @__PURE__ */ (function(E) {
|
|
2
|
+
return E.Loading = "loading", E.Error = "error", E;
|
|
3
|
+
})({}), I = {
|
|
4
|
+
DIRECT_DEPOSIT: 1,
|
|
5
|
+
CONNECT: 2
|
|
6
|
+
}, _ = { DIRECT_DEPOSIT: "direct-deposit" }, C = { BANNER: "deposit_banner" }, O = { BANNER: "banner" };
|
|
4
7
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
C as ACTIONABLE_INTEGRATION_SOURCES,
|
|
9
|
+
_ as ACTIONABLE_INTEGRATION_TYPE,
|
|
10
|
+
T as CONNECTIONS_WIDGET_ID,
|
|
11
|
+
N as CONNECT_WIDGET_ID,
|
|
12
|
+
O as CONNECT_WIDGET_SOURCES,
|
|
13
|
+
I as DEEP_LINK_TYPE,
|
|
14
|
+
r as MemberConnectionStatus
|
|
10
15
|
};
|
|
11
16
|
|
|
12
17
|
//# sourceMappingURL=Connect.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connect.es.js","names":[],"sources":["../../../src/common/constants/Connect.ts"],"sourcesContent":["export const CONNECT_WIDGET_ID = 'connect_widget'\nexport const CONNECTIONS_WIDGET_ID = 'connections_widget'\n\n// Connection state shared by the foundational `common` layer (ConnectDrawer /\n// ConnectStatus) and the accounts widget. Lives in `common` so `common` does not\n// have to depend on `accounts` (which created a common->accounts layering\n// violation and blocked per-widget code splitting).\nexport enum MemberConnectionStatus {\n Loading = 'loading',\n Error = 'error',\n}\n\n// In-app destination advertised by a banner ad (`Banner.deep_link_type`).
|
|
1
|
+
{"version":3,"file":"Connect.es.js","names":[],"sources":["../../../src/common/constants/Connect.ts"],"sourcesContent":["export const CONNECT_WIDGET_ID = 'connect_widget'\nexport const CONNECTIONS_WIDGET_ID = 'connections_widget'\n\n// Connection state shared by the foundational `common` layer (ConnectDrawer /\n// ConnectStatus) and the accounts widget. Lives in `common` so `common` does not\n// have to depend on `accounts` (which created a common->accounts layering\n// violation and blocked per-widget code splitting).\nexport enum MemberConnectionStatus {\n Loading = 'loading',\n Error = 'error',\n}\n\n// In-app destination advertised by a banner ad (`Banner.deep_link_type`). Values\n// match bullseye's DeepLinkType enum (DIRECT_DEPOSIT_FLOW = 1, CONNECT_WIDGET = 2).\n// Longbow does not surface deep_link_type in the banner response yet, so until it\n// does every banner falls back to its external `redirect_url` and these paths stay\n// inert.\nexport const DEEP_LINK_TYPE = {\n DIRECT_DEPOSIT: 1,\n CONNECT: 2,\n} as const\n\n// Launch target for the host-run actionable-integration (Atomic) flow, sent as\n// `integration_type` on the `atomicTransact` host message. The deployed widget\n// only supports deposit today.\nexport const ACTIONABLE_INTEGRATION_TYPE = {\n DIRECT_DEPOSIT: 'direct-deposit',\n} as const\n\n// Entry point for the actionable-integration flow, sent as `source` so the host\n// can attribute its deposit funnel (mirrors CONNECT_WIDGET_SOURCES).\nexport const ACTIONABLE_INTEGRATION_SOURCES = {\n BANNER: 'deposit_banner',\n} as const\n\n// Entry point a ConnectDrawer was opened from, sent as `source` on the\n// connect-widget lifecycle events. Call sites with no source emit no events.\nexport const CONNECT_WIDGET_SOURCES = {\n BANNER: 'banner',\n} as const\n\nexport type ConnectWidgetSource =\n (typeof CONNECT_WIDGET_SOURCES)[keyof typeof CONNECT_WIDGET_SOURCES]\n"],"mappings":"AAAA,IAAa,IAAoB,kBACpB,IAAwB,sBAMzB,IAAL,0BAAA,GAAA;AACL,SAAA,EAAA,UAAA,WACA,EAAA,QAAA;AACF,GAAA,CAAA,CAAA,GAOa,IAAiB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,SAAS;AACX,GAKa,IAA8B,EACzC,gBAAgB,iBAClB,GAIa,IAAiC,EAC5C,QAAQ,iBACV,GAIa,IAAyB,EACpC,QAAQ,SACV"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ANALYTICS_EVENTS } from './Analytics';
|
|
2
|
-
export { CONNECT_WIDGET_ID, CONNECT_WIDGET_SOURCES, CONNECTIONS_WIDGET_ID, DEEP_LINK_TYPE, MemberConnectionStatus, } from './Connect';
|
|
2
|
+
export { ACTIONABLE_INTEGRATION_SOURCES, ACTIONABLE_INTEGRATION_TYPE, CONNECT_WIDGET_ID, CONNECT_WIDGET_SOURCES, CONNECTIONS_WIDGET_ID, DEEP_LINK_TYPE, MemberConnectionStatus, } from './Connect';
|
|
3
3
|
export type { ConnectWidgetSource } from './Connect';
|
|
4
4
|
export { INCOME_ACCOUNT_TYPES, PAYMENT_ACCOUNT_TYPES, SPENDING_ACCOUNT_TYPES } from './Account';
|
|
5
5
|
export { RECURRENCE_COPY } from './ScheduledPayment';
|
package/dist/common/index.es.js
CHANGED
|
@@ -3,156 +3,158 @@ import i, { CalendarSelectionTypes as m } from "./components/calendar/Calendar.e
|
|
|
3
3
|
import a from "./components/charts/StatusBar.es.js";
|
|
4
4
|
import p from "./components/charts/Donut.es.js";
|
|
5
5
|
import u from "./hooks/useAccountDisplayName.es.js";
|
|
6
|
-
import { useCombineEvents as
|
|
7
|
-
import { GlobalDataContext as
|
|
8
|
-
import { WidgetContainerContext as d, WidgetContainerProvider as
|
|
9
|
-
import { useAccountStore as
|
|
6
|
+
import { useCombineEvents as l, useCombinePageviews as S } from "./hooks/useCombineEvents.es.js";
|
|
7
|
+
import { GlobalDataContext as g, GlobalDataProvider as E } from "./context/GlobalDataProvider.es.js";
|
|
8
|
+
import { WidgetContainerContext as d, WidgetContainerProvider as _ } from "./context/WidgetContainerProvider.es.js";
|
|
9
|
+
import { useAccountStore as N, useActionContext as D, useAgreementStore as A, useAppConfig as O, useBudgetsStore as P, useCashflowStore as y, useCategoryStore as L, useDebtStore as b, useError as G, useEvent as R, useFinstrongStore as W, useGlobalCopyStore as U, useGlobalStore as B, useGlobalUiStore as v, useGoalStore as Y, useHelpStore as h, useHoldingStore as w, useHostMessage as x, useInsightsV2Store as M, useLoad as H, useMerchantStore as F, useNetWorthStore as V, useNotificationStore as z, usePageView as Z, useRecurringTransactionsStore as K, useSettingsStore as k, useTransactionStore as q, useTrendsStore as X, useUserStore as j, useWidgetContainerProvider as J } from "./context/hooks.es.js";
|
|
10
10
|
import { useInsightsEnabled as $ } from "./hooks/useInsightsEnabled.es.js";
|
|
11
11
|
import { useScreenSize as ro } from "./hooks/useScreenSize.es.js";
|
|
12
12
|
import eo from "./hooks/usePrevious.es.js";
|
|
13
13
|
import { formatCurrency as mo, formatOrdinal as no, formatPercentage as ao, generateEqualIntervals as so, getCurrencyCodes as po, getPluralRules as fo } from "../core/utils/NumberFormatting.es.js";
|
|
14
|
-
import { useRepeatingTransactionEligibility as
|
|
14
|
+
import { useRepeatingTransactionEligibility as Co } from "./hooks/useRepeatingTransactionEligibility.es.js";
|
|
15
15
|
import { useWidgetHeaderStyles as So } from "./hooks/useWidgetHeaderStyles.es.js";
|
|
16
|
-
import { useWidgetLoadTimer as
|
|
17
|
-
import { VISUALLY_HIDDEN_SX as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { ANALYTICS_EVENTS as
|
|
22
|
-
import { CONNECTIONS_WIDGET_ID as
|
|
23
|
-
import { GlobalStore as
|
|
24
|
-
import { INCOME_ACCOUNT_TYPES as
|
|
25
|
-
import { RECURRENCE_COPY as
|
|
26
|
-
import { LOADING_STATUS as
|
|
27
|
-
import { DEFAULT_DONUT_SIZE as
|
|
28
|
-
import { Sizes as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { GlobalAccountFilter as
|
|
36
|
-
import
|
|
37
|
-
import { WidgetContainer as
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import { ConnectCard as
|
|
51
|
-
import { CurrencyText as
|
|
52
|
-
import { EmptyState as
|
|
53
|
-
import { ListItemAction as
|
|
54
|
-
import { ListItemRow as
|
|
55
|
-
import { ListItemWrapper as
|
|
56
|
-
import { Select as
|
|
57
|
-
import { ToggleButtonListItem as
|
|
58
|
-
import { ToggleListItem as
|
|
59
|
-
import { analyticsSession as
|
|
60
|
-
import { getClientComponentOverrides as
|
|
16
|
+
import { useWidgetLoadTimer as go } from "./hooks/useWidgetLoadTimer.es.js";
|
|
17
|
+
import { VISUALLY_HIDDEN_SX as co } from "./constants/Styles.es.js";
|
|
18
|
+
import Io from "./components/dialog/Dialog.es.js";
|
|
19
|
+
import Do from "./components/drawer/Drawer.es.js";
|
|
20
|
+
import Oo from "./components/daterangeselector/DateRangeSelector.es.js";
|
|
21
|
+
import { ANALYTICS_EVENTS as yo } from "./constants/Analytics.es.js";
|
|
22
|
+
import { ACTIONABLE_INTEGRATION_SOURCES as bo, ACTIONABLE_INTEGRATION_TYPE as Go, CONNECTIONS_WIDGET_ID as Ro, CONNECT_WIDGET_ID as Wo, CONNECT_WIDGET_SOURCES as Uo, DEEP_LINK_TYPE as Bo, MemberConnectionStatus as vo } from "./constants/Connect.es.js";
|
|
23
|
+
import { GlobalStore as ho } from "../core/stores/GlobalStore.es.js";
|
|
24
|
+
import { INCOME_ACCOUNT_TYPES as xo, PAYMENT_ACCOUNT_TYPES as Mo, SPENDING_ACCOUNT_TYPES as Ho } from "./constants/Account.es.js";
|
|
25
|
+
import { RECURRENCE_COPY as Vo } from "./constants/ScheduledPayment.es.js";
|
|
26
|
+
import { LOADING_STATUS as Zo } from "./constants/SpendingPlan.es.js";
|
|
27
|
+
import { DEFAULT_DONUT_SIZE as ko, DEFAULT_STROKE_WIDTH as qo } from "./constants/Donut.es.js";
|
|
28
|
+
import { Sizes as jo, TOUCH_TARGET as Jo } from "./constants/Sizes.es.js";
|
|
29
|
+
import $o from "./components/donuts/MultiSegmentDonut.es.js";
|
|
30
|
+
import rr from "./components/donuts/SingleSegmentDonut.es.js";
|
|
31
|
+
import er from "./components/ErrorBoundary.es.js";
|
|
32
|
+
import mr from "./components/Error.es.js";
|
|
33
|
+
import ar from "./components/MicroWidgetContainer.es.js";
|
|
34
|
+
import pr from "./components/MiniWidgetContainer.es.js";
|
|
35
|
+
import { GlobalAccountFilter as ur } from "./components/GlobalAccountFilter.es.js";
|
|
36
|
+
import lr from "./components/Loader.es.js";
|
|
37
|
+
import { WidgetContainer as Tr } from "./components/WidgetContainer.es.js";
|
|
38
|
+
import Er from "./components/ConnectWidgetPanel.es.js";
|
|
39
|
+
import dr from "./components/ConnectDrawer.es.js";
|
|
40
|
+
import Ir from "./components/CurrencyDialog.es.js";
|
|
41
|
+
import Dr from "./components/CurrencyInput.es.js";
|
|
42
|
+
import Or from "./components/ResponsiveButton.es.js";
|
|
43
|
+
import yr from "./components/SearchBox.es.js";
|
|
44
|
+
import br from "./components/SelectionBox.es.js";
|
|
45
|
+
import Rr from "./components/TabContentContainer.es.js";
|
|
46
|
+
import Ur from "./components/IconBacking.es.js";
|
|
47
|
+
import vr from "./components/DataRow.es.js";
|
|
48
|
+
import hr from "./components/ZeroState.es.js";
|
|
49
|
+
import xr from "./components/InformationTooltip.es.js";
|
|
50
|
+
import { ConnectCard as Hr } from "./components/ConnectCard.es.js";
|
|
51
|
+
import { CurrencyText as Vr } from "./components/CurrencyText.es.js";
|
|
52
|
+
import { EmptyState as Zr } from "./components/EmptyState.es.js";
|
|
53
|
+
import { ListItemAction as kr } from "./components/ListItemAction.es.js";
|
|
54
|
+
import { ListItemRow as Xr } from "./components/ListItemRow.es.js";
|
|
55
|
+
import { ListItemWrapper as Jr } from "./components/ListItemWrapper.es.js";
|
|
56
|
+
import { Select as $r } from "./components/Select.es.js";
|
|
57
|
+
import { ToggleButtonListItem as rt } from "./components/listitems/ToggleButtonListItem.es.js";
|
|
58
|
+
import { ToggleListItem as et } from "./components/listitems/ToggleListItem.es.js";
|
|
59
|
+
import { analyticsSession as mt } from "./utils/Analytics.es.js";
|
|
60
|
+
import { getClientComponentOverrides as at, getClientCustomizations as st, getClientPaletteOptions as pt, getClientTheme as ft } from "./utils/Theme.es.js";
|
|
61
61
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
bo as ACTIONABLE_INTEGRATION_SOURCES,
|
|
63
|
+
Go as ACTIONABLE_INTEGRATION_TYPE,
|
|
64
|
+
yo as ANALYTICS_EVENTS,
|
|
65
|
+
Ro as CONNECTIONS_WIDGET_ID,
|
|
66
|
+
Wo as CONNECT_WIDGET_ID,
|
|
67
|
+
Uo as CONNECT_WIDGET_SOURCES,
|
|
66
68
|
i as Calendar,
|
|
67
69
|
m as CalendarSelectionTypes,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
Hr as ConnectCard,
|
|
71
|
+
dr as ConnectDrawer,
|
|
72
|
+
Er as ConnectWidgetPanel,
|
|
73
|
+
Ir as CurrencyDialog,
|
|
74
|
+
Dr as CurrencyInput,
|
|
75
|
+
Vr as CurrencyText,
|
|
76
|
+
Bo as DEEP_LINK_TYPE,
|
|
77
|
+
ko as DEFAULT_DONUT_SIZE,
|
|
78
|
+
qo as DEFAULT_STROKE_WIDTH,
|
|
79
|
+
vr as DataRow,
|
|
80
|
+
Oo as DateRangeSelector,
|
|
81
|
+
Io as Dialog,
|
|
80
82
|
p as Donut,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
83
|
+
Do as Drawer,
|
|
84
|
+
Zr as EmptyState,
|
|
85
|
+
mr as Error,
|
|
86
|
+
er as ErrorBoundary,
|
|
87
|
+
ur as GlobalAccountFilter,
|
|
88
|
+
g as GlobalDataContext,
|
|
89
|
+
E as GlobalDataProvider,
|
|
90
|
+
ho as GlobalStore,
|
|
91
|
+
xo as INCOME_ACCOUNT_TYPES,
|
|
92
|
+
Ur as IconBacking,
|
|
93
|
+
xr as InformationTooltip,
|
|
94
|
+
Zo as LOADING_STATUS,
|
|
95
|
+
kr as ListItemAction,
|
|
96
|
+
Xr as ListItemRow,
|
|
97
|
+
Jr as ListItemWrapper,
|
|
98
|
+
lr as Loader,
|
|
99
|
+
vo as MemberConnectionStatus,
|
|
100
|
+
ar as MicroWidgetContainer,
|
|
101
|
+
pr as MiniWidgetContainer,
|
|
102
|
+
$o as MultiSegmentDonut,
|
|
103
|
+
Mo as PAYMENT_ACCOUNT_TYPES,
|
|
104
|
+
Vo as RECURRENCE_COPY,
|
|
105
|
+
Or as ResponsiveButton,
|
|
106
|
+
Ho as SPENDING_ACCOUNT_TYPES,
|
|
107
|
+
yr as SearchBox,
|
|
108
|
+
$r as Select,
|
|
109
|
+
br as SelectionBox,
|
|
110
|
+
rr as SingleSegmentDonut,
|
|
111
|
+
jo as Sizes,
|
|
110
112
|
a as StatusBar,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
Jo as TOUCH_TARGET,
|
|
114
|
+
Rr as TabContentContainer,
|
|
115
|
+
rt as ToggleButtonListItem,
|
|
116
|
+
et as ToggleListItem,
|
|
117
|
+
co as VISUALLY_HIDDEN_SX,
|
|
118
|
+
Tr as WidgetContainer,
|
|
117
119
|
d as WidgetContainerContext,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
_ as WidgetContainerProvider,
|
|
121
|
+
hr as ZeroState,
|
|
122
|
+
mt as analyticsSession,
|
|
121
123
|
r as buildDynamicCopy,
|
|
122
124
|
t as buildPluralCopy,
|
|
123
125
|
mo as formatCurrency,
|
|
124
126
|
no as formatOrdinal,
|
|
125
127
|
ao as formatPercentage,
|
|
126
128
|
so as generateEqualIntervals,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
at as getClientComponentOverrides,
|
|
130
|
+
st as getClientCustomizations,
|
|
131
|
+
pt as getClientPaletteOptions,
|
|
132
|
+
ft as getClientTheme,
|
|
131
133
|
po as getCurrencyCodes,
|
|
132
134
|
fo as getPluralRules,
|
|
133
135
|
u as useAccountDisplayName,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
N as useAccountStore,
|
|
137
|
+
D as useActionContext,
|
|
138
|
+
A as useAgreementStore,
|
|
139
|
+
O as useAppConfig,
|
|
140
|
+
P as useBudgetsStore,
|
|
141
|
+
y as useCashflowStore,
|
|
142
|
+
L as useCategoryStore,
|
|
143
|
+
l as useCombineEvents,
|
|
142
144
|
S as useCombinePageviews,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
b as useDebtStore,
|
|
146
|
+
G as useError,
|
|
147
|
+
R as useEvent,
|
|
148
|
+
W as useFinstrongStore,
|
|
147
149
|
U as useGlobalCopyStore,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
B as useGlobalStore,
|
|
151
|
+
v as useGlobalUiStore,
|
|
152
|
+
Y as useGoalStore,
|
|
153
|
+
h as useHelpStore,
|
|
154
|
+
w as useHoldingStore,
|
|
155
|
+
x as useHostMessage,
|
|
154
156
|
$ as useInsightsEnabled,
|
|
155
|
-
|
|
157
|
+
M as useInsightsV2Store,
|
|
156
158
|
H as useLoad,
|
|
157
159
|
F as useMerchantStore,
|
|
158
160
|
V as useNetWorthStore,
|
|
@@ -160,7 +162,7 @@ export {
|
|
|
160
162
|
Z as usePageView,
|
|
161
163
|
eo as usePrevious,
|
|
162
164
|
K as useRecurringTransactionsStore,
|
|
163
|
-
|
|
165
|
+
Co as useRepeatingTransactionEligibility,
|
|
164
166
|
ro as useScreenSize,
|
|
165
167
|
k as useSettingsStore,
|
|
166
168
|
q as useTransactionStore,
|
|
@@ -168,5 +170,5 @@ export {
|
|
|
168
170
|
j as useUserStore,
|
|
169
171
|
J as useWidgetContainerProvider,
|
|
170
172
|
So as useWidgetHeaderStyles,
|
|
171
|
-
|
|
173
|
+
go as useWidgetLoadTimer
|
|
172
174
|
};
|
|
@@ -9,6 +9,10 @@ export interface HostMessageMetadata {
|
|
|
9
9
|
height: number;
|
|
10
10
|
width: number;
|
|
11
11
|
};
|
|
12
|
+
atomicTransact: {
|
|
13
|
+
integration_type: string;
|
|
14
|
+
source: string;
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
17
|
export type HostMessage = keyof HostMessageMetadata;
|
|
14
18
|
export type GlobalHostMessageHandler = <E extends HostMessage>(event: E, metadata: HostMessageMetadata[E]) => void;
|
|
@@ -135,8 +135,9 @@ export interface MerchantBlockData {
|
|
|
135
135
|
merchant_name?: string;
|
|
136
136
|
logo?: LogoRef;
|
|
137
137
|
amount?: number;
|
|
138
|
-
/** Pre-localized eyebrow
|
|
138
|
+
/** Pre-localized eyebrow; ditto sends `header_text`. */
|
|
139
139
|
date?: string;
|
|
140
|
+
header_text?: string;
|
|
140
141
|
status_text?: string;
|
|
141
142
|
logos?: LogoRef[];
|
|
142
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsInstanceSlotData.es.js","names":[],"sources":["../../../src/core/types/InsightsInstanceSlotData.ts"],"sourcesContent":["import type { DataSeries, Legends, LogoRef } from '../../core'\n\nexport interface InsightsInstanceSlotData\n extends\n Partial<BudgetBlockData>,\n Partial<DonutChartBlockData>,\n Partial<ImageBlockData>,\n Partial<AccountBlockData>,\n Partial<SaveExtraBlockData>,\n Partial<StepChartBlockData>,\n Partial<SVGImageBlockData>,\n Partial<AccountSwitchBlockData>,\n Partial<TransactionDetailsBlockData>,\n Partial<CreditUtilizationBlockData>,\n Partial<MerchantBlockData>,\n Partial<CommonProps> {}\n\n//when any of the type is used more than one times, we can use the common props\ninterface CommonProps {\n amount?: number\n ariaLabel?: string\n date?: string\n legends?: Legends[]\n category_guid?: string\n data_series?: DataSeries | DataSet[]\n transaction_guids?: string[]\n account_guids?: string[]\n primary_transaction_guid?: string\n}\n\n//BarChart Block: `instance_slot.data` (Insights 2.0)\nexport interface BarChartBlockData {\n series?: DataSeries\n category_guid?: string\n average_amount?: number\n /** [0] monthly amount, [1] trend. */\n additional_data?: Legends[]\n}\n\n//DonutChart Block\ninterface Main {\n value: string\n value_type: string\n label: string\n}\nexport interface DonutChartBlockData {\n main: Main\n}\n\n//DoubleBarChart Block\n// TODO : This has to be revisited again to update the below types based on API response once we have the final shape of the data_series for double bar chart from BE\nexport interface LegendProps extends Legends {\n amount: number\n formattedAmount: string\n label: string\n color?: string\n}\n\nexport interface DataSet extends DataSeries {\n ariaLabelComparison: string\n ariaLabelMain: string\n comparison: number\n // The comparison bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n comparisonGuids?: string[]\n // The month's 'yyyy-MM-dd' date (the main row's).\n date?: string\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n // The main bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n mainGuids?: string[]\n}\n\n//DoubleProgressBar Block\n\n//Image Block\nexport interface ImageBlockData {\n image: string\n}\n\n//Account Block\nexport interface AccountBlockData {\n sub_text: string\n institution_guid?: string\n institution_name?: string\n icon_name?: string\n /** Header bar text (standard card), or the colored category strip label (deposit cards). */\n header_text?: string\n // Deposit variants (Unified Deposit, Unified Deposit Emergency Fund, Savings Account Deposit)\n /** Merchant guid — renders a real merchant logo in the deposit card when present. */\n merchant_guid?: string\n /** Merchant display name — logo alt text and the payer line under the amount. */\n merchant_name?: string\n /** Secondary label beside the amount, e.g. `On {date}, you saved` or `Balance as of MM/DD/YY`. */\n label?: string\n}\n\nexport interface SaveExtraBlockData {\n /** Styled segments `[lead-in, amount digits, trailing copy]`, e.g. `['Save an extra', '100', 'to help your funds grow']`. */\n primary_text?: string[]\n /** Styled segments `[projected balance, caption]`, e.g. `['$8,313.87', 'After payday & projected expenses']`. */\n secondary_text?: string[]\n /** MakeTransfer drilldown: available balance (both variants). */\n available_balance?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: average monthly spend. */\n avg_monthly_spend?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: how long the balance lasts, overlaid on the timeline SVG (e.g. \"2 months, 11 days\"). */\n time_period?: string\n /** SAVE_AN_EXTRA_100: upcoming expenses (the \"Expenses\" figure). */\n upcoming_expenses?: number\n /** SAVE_AN_EXTRA_100: total remaining after expenses. */\n total_remaining?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: date for the \"Your available balances as of {date}\" line. */\n date?: string\n}\n\n// AccountSwitch Block. State comes from `instance_slot.variant`, not a data flag.\nexport interface AccountSwitchBlockData {\n discovered_institution_guid: string\n discovered_institution_name: string\n held_institution_guid: string\n held_institution_name: string\n}\n\n// AccountSwitch Block: `instance_slot.data` (Insights 2.0, Discovered Accounts V2). Each slot is\n// optional: tupac omits `to_logo` when the user holds no FI-managed account. `logo` is the compact\n// card's (micro, notification) discovered institution.\nexport interface AccountSwitchBlockV2Data {\n from_logo?: LogoRef\n to_logo?: LogoRef\n logo?: LogoRef\n}\n\n// StepChart Block\nexport interface StepChartBlockData {\n completed_steps: number\n label_1: string\n label_2?: string\n}\n\n//Budgets Blocks\nexport enum BudgetTierType {\n LOW_BUDGET_TIER = 'LOW',\n MEDIUM_BUDGET_TIER = 'MEDIUM',\n OFF_TRACK_BUDGET_TIER = 'OFF_TRACK',\n}\n\nexport type BudgetTierValue = `${BudgetTierType}`\n\nexport interface BudgetLocalizedPayload {\n primary_text?: string\n amount_left_label?: string\n spent_label?: string\n budgeted_label?: string\n}\n\nexport interface BudgetBlockData {\n budget_percent: number\n budget_tier: BudgetTierValue\n category_guid?: string\n merchant_guid?: string\n spent_amount: number\n budgeted_amount: number\n localized_payload: BudgetLocalizedPayload\n}\n\nexport interface SVGImageBlockData {\n isCIBC?: boolean\n}\n\n// TransactionDetails Action Block\n// The drawer's subject is `InsightsPayload.primary_transaction_guid`; only action configuration\n// lives here.\nexport interface TransactionDetailsBlockData {\n /** `TopActions` member names, e.g. `['Category', 'Date', 'Memo']`. Omit for the defaults. */\n top_actions?: string[]\n /** `BottomActions` member names, e.g. `['MerchantBudget', 'HideTransaction']`. Omit for defaults. */\n bottom_actions?: string[]\n}\n\n// Credit Utilization action block. The per-card rows are the beat's `data_series` table\n// (`guid`, `label`, `amount`, `total_amount`, `percentage`), carried on `CommonProps.data_series`.\nexport interface CreditUtilizationBlockData {\n accounts_balance_sum?: number\n accounts_credit_limit_sum?: number\n credit_utilization_percentage?: number\n}\n\n// Merchant block
|
|
1
|
+
{"version":3,"file":"InsightsInstanceSlotData.es.js","names":[],"sources":["../../../src/core/types/InsightsInstanceSlotData.ts"],"sourcesContent":["import type { DataSeries, Legends, LogoRef } from '../../core'\n\nexport interface InsightsInstanceSlotData\n extends\n Partial<BudgetBlockData>,\n Partial<DonutChartBlockData>,\n Partial<ImageBlockData>,\n Partial<AccountBlockData>,\n Partial<SaveExtraBlockData>,\n Partial<StepChartBlockData>,\n Partial<SVGImageBlockData>,\n Partial<AccountSwitchBlockData>,\n Partial<TransactionDetailsBlockData>,\n Partial<CreditUtilizationBlockData>,\n Partial<MerchantBlockData>,\n Partial<CommonProps> {}\n\n//when any of the type is used more than one times, we can use the common props\ninterface CommonProps {\n amount?: number\n ariaLabel?: string\n date?: string\n legends?: Legends[]\n category_guid?: string\n data_series?: DataSeries | DataSet[]\n transaction_guids?: string[]\n account_guids?: string[]\n primary_transaction_guid?: string\n}\n\n//BarChart Block: `instance_slot.data` (Insights 2.0)\nexport interface BarChartBlockData {\n series?: DataSeries\n category_guid?: string\n average_amount?: number\n /** [0] monthly amount, [1] trend. */\n additional_data?: Legends[]\n}\n\n//DonutChart Block\ninterface Main {\n value: string\n value_type: string\n label: string\n}\nexport interface DonutChartBlockData {\n main: Main\n}\n\n//DoubleBarChart Block\n// TODO : This has to be revisited again to update the below types based on API response once we have the final shape of the data_series for double bar chart from BE\nexport interface LegendProps extends Legends {\n amount: number\n formattedAmount: string\n label: string\n color?: string\n}\n\nexport interface DataSet extends DataSeries {\n ariaLabelComparison: string\n ariaLabelMain: string\n comparison: number\n // The comparison bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n comparisonGuids?: string[]\n // The month's 'yyyy-MM-dd' date (the main row's).\n date?: string\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n // The main bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n mainGuids?: string[]\n}\n\n//DoubleProgressBar Block\n\n//Image Block\nexport interface ImageBlockData {\n image: string\n}\n\n//Account Block\nexport interface AccountBlockData {\n sub_text: string\n institution_guid?: string\n institution_name?: string\n icon_name?: string\n /** Header bar text (standard card), or the colored category strip label (deposit cards). */\n header_text?: string\n // Deposit variants (Unified Deposit, Unified Deposit Emergency Fund, Savings Account Deposit)\n /** Merchant guid — renders a real merchant logo in the deposit card when present. */\n merchant_guid?: string\n /** Merchant display name — logo alt text and the payer line under the amount. */\n merchant_name?: string\n /** Secondary label beside the amount, e.g. `On {date}, you saved` or `Balance as of MM/DD/YY`. */\n label?: string\n}\n\nexport interface SaveExtraBlockData {\n /** Styled segments `[lead-in, amount digits, trailing copy]`, e.g. `['Save an extra', '100', 'to help your funds grow']`. */\n primary_text?: string[]\n /** Styled segments `[projected balance, caption]`, e.g. `['$8,313.87', 'After payday & projected expenses']`. */\n secondary_text?: string[]\n /** MakeTransfer drilldown: available balance (both variants). */\n available_balance?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: average monthly spend. */\n avg_monthly_spend?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: how long the balance lasts, overlaid on the timeline SVG (e.g. \"2 months, 11 days\"). */\n time_period?: string\n /** SAVE_AN_EXTRA_100: upcoming expenses (the \"Expenses\" figure). */\n upcoming_expenses?: number\n /** SAVE_AN_EXTRA_100: total remaining after expenses. */\n total_remaining?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: date for the \"Your available balances as of {date}\" line. */\n date?: string\n}\n\n// AccountSwitch Block. State comes from `instance_slot.variant`, not a data flag.\nexport interface AccountSwitchBlockData {\n discovered_institution_guid: string\n discovered_institution_name: string\n held_institution_guid: string\n held_institution_name: string\n}\n\n// AccountSwitch Block: `instance_slot.data` (Insights 2.0, Discovered Accounts V2). Each slot is\n// optional: tupac omits `to_logo` when the user holds no FI-managed account. `logo` is the compact\n// card's (micro, notification) discovered institution.\nexport interface AccountSwitchBlockV2Data {\n from_logo?: LogoRef\n to_logo?: LogoRef\n logo?: LogoRef\n}\n\n// StepChart Block\nexport interface StepChartBlockData {\n completed_steps: number\n label_1: string\n label_2?: string\n}\n\n//Budgets Blocks\nexport enum BudgetTierType {\n LOW_BUDGET_TIER = 'LOW',\n MEDIUM_BUDGET_TIER = 'MEDIUM',\n OFF_TRACK_BUDGET_TIER = 'OFF_TRACK',\n}\n\nexport type BudgetTierValue = `${BudgetTierType}`\n\nexport interface BudgetLocalizedPayload {\n primary_text?: string\n amount_left_label?: string\n spent_label?: string\n budgeted_label?: string\n}\n\nexport interface BudgetBlockData {\n budget_percent: number\n budget_tier: BudgetTierValue\n category_guid?: string\n merchant_guid?: string\n spent_amount: number\n budgeted_amount: number\n localized_payload: BudgetLocalizedPayload\n}\n\nexport interface SVGImageBlockData {\n isCIBC?: boolean\n}\n\n// TransactionDetails Action Block\n// The drawer's subject is `InsightsPayload.primary_transaction_guid`; only action configuration\n// lives here.\nexport interface TransactionDetailsBlockData {\n /** `TopActions` member names, e.g. `['Category', 'Date', 'Memo']`. Omit for the defaults. */\n top_actions?: string[]\n /** `BottomActions` member names, e.g. `['MerchantBudget', 'HideTransaction']`. Omit for defaults. */\n bottom_actions?: string[]\n}\n\n// Credit Utilization action block. The per-card rows are the beat's `data_series` table\n// (`guid`, `label`, `amount`, `total_amount`, `percentage`), carried on `CommonProps.data_series`.\nexport interface CreditUtilizationBlockData {\n accounts_balance_sum?: number\n accounts_credit_limit_sum?: number\n credit_utilization_percentage?: number\n}\n\n// Merchant block `instance_slot.data`; `primary_text` is ditto's name.\nexport interface MerchantBlockData {\n merchant_name?: string\n logo?: LogoRef\n amount?: number\n /** Pre-localized eyebrow; ditto sends `header_text`. */\n date?: string\n header_text?: string\n status_text?: string\n logos?: LogoRef[]\n}\n"],"mappings":"AA8IA,IAAY,IAAL,0BAAA,GAAA;AACL,SAAA,EAAA,kBAAA,OACA,EAAA,qBAAA,UACA,EAAA,wBAAA;AACF,GAAA,CAAA,CAAA"}
|