@mx-cartographer/experiences 9.7.161 → 9.7.162
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 +6 -1
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.es.js +6 -6
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js +17 -20
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
## [9.7.162] - 11-16-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - Federal Bank Holiday, Upcoming Tax Deadline Alert and Designate Emergency Savings Account: the Mini card illustration matches the Figma size (WEC-2320)
|
|
4
|
+
- **CHANGED** - Bar chart legends use the body2 text style, per design (WEC-2320)
|
|
5
|
+
|
|
1
6
|
## [9.7.161] - 11-16-2026
|
|
2
7
|
|
|
3
|
-
- **ADDED** - Credit Card Close to Limit
|
|
8
|
+
- **ADDED** - Credit Card Close to Limit on Insights 2.0: donut card, embedded card, Spending list with the alert marker, and the Edit Credit Limit Alert dialog, whose amount field can show a percent unit (WEC-2030)
|
|
4
9
|
|
|
5
10
|
## [9.7.160] - 11-16-2026
|
|
6
11
|
|
|
@@ -2,7 +2,7 @@ import t from "@mui/material/Stack";
|
|
|
2
2
|
import { Text as h } from "@mxenabled/mxui";
|
|
3
3
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { useTheme as o } from "@mui/material/styles";
|
|
5
|
-
var w = ({ color:
|
|
5
|
+
var w = ({ color: d, legendStyle: n = {}, monthlyAmount: a, monthlyAmountLabel: i, trendAmount: c, trendAmountLabel: l }) => {
|
|
6
6
|
const g = o();
|
|
7
7
|
return /* @__PURE__ */ r(t, {
|
|
8
8
|
sx: {
|
|
@@ -12,7 +12,7 @@ var w = ({ color: n, legendStyle: c = {}, monthlyAmount: a, monthlyAmountLabel:
|
|
|
12
12
|
justifyContent: "flex-start",
|
|
13
13
|
py: 4,
|
|
14
14
|
width: "100%",
|
|
15
|
-
...
|
|
15
|
+
...n
|
|
16
16
|
},
|
|
17
17
|
children: [i && /* @__PURE__ */ r(t, {
|
|
18
18
|
sx: {
|
|
@@ -28,14 +28,14 @@ var w = ({ color: n, legendStyle: c = {}, monthlyAmount: a, monthlyAmountLabel:
|
|
|
28
28
|
role: "figure",
|
|
29
29
|
width: "12",
|
|
30
30
|
children: /* @__PURE__ */ e("rect", {
|
|
31
|
-
fill:
|
|
31
|
+
fill: d,
|
|
32
32
|
height: "12",
|
|
33
33
|
rx: "2",
|
|
34
34
|
width: "12"
|
|
35
35
|
})
|
|
36
36
|
}), /* @__PURE__ */ e(h, {
|
|
37
37
|
id: "chartLegendLabel",
|
|
38
|
-
variant: "
|
|
38
|
+
variant: "body2",
|
|
39
39
|
children: a ? `${i}: ${a}` : i
|
|
40
40
|
})]
|
|
41
41
|
}), l && /* @__PURE__ */ r(t, {
|
|
@@ -59,11 +59,11 @@ var w = ({ color: n, legendStyle: c = {}, monthlyAmount: a, monthlyAmountLabel:
|
|
|
59
59
|
})
|
|
60
60
|
}), /* @__PURE__ */ r(h, {
|
|
61
61
|
id: "chartLegendLabel",
|
|
62
|
-
variant: "
|
|
62
|
+
variant: "body2",
|
|
63
63
|
children: [
|
|
64
64
|
l,
|
|
65
65
|
": ",
|
|
66
|
-
|
|
66
|
+
c
|
|
67
67
|
]
|
|
68
68
|
})]
|
|
69
69
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartLegendV2.es.js","names":[],"sources":["../../../../../../src/insights/components/shared/Charts/BarChart/ChartLegendV2.tsx"],"sourcesContent":["import { Text } from '@mxenabled/mxui'\n\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\nimport { type SxProps } from '@mui/material/styles'\n\nexport interface LegendV2Props {\n color: string\n legendStyle?: SxProps\n monthlyAmount?: string\n monthlyAmountLabel?: string\n trendAmount?: string\n trendAmountLabel?: string\n}\n\nexport const LegendV2 = ({\n color,\n legendStyle = {},\n monthlyAmount,\n monthlyAmountLabel,\n trendAmount,\n trendAmountLabel,\n}: LegendV2Props) => {\n const theme = useTheme()\n\n return (\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 24,\n justifyContent: 'flex-start',\n py: 4,\n width: '100%',\n ...legendStyle,\n }}\n >\n {monthlyAmountLabel && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <svg\n aria-hidden=\"true\"\n aria-labelledby=\"chartLegendLabel\"\n fill=\"none\"\n height=\"12\"\n role=\"figure\"\n width=\"12\"\n >\n <rect fill={color} height=\"12\" rx=\"2\" width=\"12\" />\n </svg>\n <Text id=\"chartLegendLabel\" variant=\"
|
|
1
|
+
{"version":3,"file":"ChartLegendV2.es.js","names":[],"sources":["../../../../../../src/insights/components/shared/Charts/BarChart/ChartLegendV2.tsx"],"sourcesContent":["import { Text } from '@mxenabled/mxui'\n\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\nimport { type SxProps } from '@mui/material/styles'\n\nexport interface LegendV2Props {\n color: string\n legendStyle?: SxProps\n monthlyAmount?: string\n monthlyAmountLabel?: string\n trendAmount?: string\n trendAmountLabel?: string\n}\n\nexport const LegendV2 = ({\n color,\n legendStyle = {},\n monthlyAmount,\n monthlyAmountLabel,\n trendAmount,\n trendAmountLabel,\n}: LegendV2Props) => {\n const theme = useTheme()\n\n return (\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 24,\n justifyContent: 'flex-start',\n py: 4,\n width: '100%',\n ...legendStyle,\n }}\n >\n {monthlyAmountLabel && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <svg\n aria-hidden=\"true\"\n aria-labelledby=\"chartLegendLabel\"\n fill=\"none\"\n height=\"12\"\n role=\"figure\"\n width=\"12\"\n >\n <rect fill={color} height=\"12\" rx=\"2\" width=\"12\" />\n </svg>\n <Text id=\"chartLegendLabel\" variant=\"body2\">\n {monthlyAmount ? `${monthlyAmountLabel}: ${monthlyAmount}` : monthlyAmountLabel}\n </Text>\n </Stack>\n )}\n\n {trendAmountLabel && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <svg\n aria-hidden=\"true\"\n aria-labelledby=\"chartLegendLabel\"\n fill=\"none\"\n height=\"12\"\n role=\"figure\"\n width=\"12\"\n >\n <rect fill={theme.palette.chart.chart7} height=\"12\" rx=\"2\" width=\"12\" />\n </svg>\n <Text id=\"chartLegendLabel\" variant=\"body2\">\n {trendAmountLabel}: {trendAmount}\n </Text>\n </Stack>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;AAeA,IAAa,IAAA,CAAY,EACvB,OAAA,GACA,aAAA,IAAc,CAAC,GACf,eAAA,GACA,oBAAA,GACA,aAAA,GACA,kBAAA,EAAA,MACmB;AACnB,QAAM,IAAQ,EAAS;AAEvB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,KAAK;AAAA,MACL,gBAAgB;AAAA,MAChB,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,GAAG;AAAA,IACL;AAAA,IATF,UAAA,CAWG,KACC,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,YAAY;AAAA,QAAU,eAAe;AAAA,QAAO,KAAK;AAAA,MAAE;AAAA,MAAhE,UAAA,CACE,gBAAA,EAAC,OAAD;AAAA,QACE,eAAY;AAAA,QACZ,mBAAgB;AAAA,QAChB,MAAK;AAAA,QACL,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAA,EAAC,QAAD;AAAA,UAAM,MAAM;AAAA,UAAO,QAAO;AAAA,UAAK,IAAG;AAAA,UAAI,OAAM;AAAA,QAAM,CAAA;AAAA,MAC/C,CAAA,GACL,gBAAA,EAAC,GAAD;AAAA,QAAM,IAAG;AAAA,QAAmB,SAAQ;AAAA,QACjC,UAAA,IAAgB,GAAG,CAAA,KAAuB,CAAA,KAAkB;AAAA,MACzD,CAAA,CACD;AAAA,IAGR,CAAA,GAAA,KACC,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,YAAY;AAAA,QAAU,eAAe;AAAA,QAAO,KAAK;AAAA,MAAE;AAAA,MAAhE,UAAA,CACE,gBAAA,EAAC,OAAD;AAAA,QACE,eAAY;AAAA,QACZ,mBAAgB;AAAA,QAChB,MAAK;AAAA,QACL,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAA,EAAC,QAAD;AAAA,UAAM,MAAM,EAAM,QAAQ,MAAM;AAAA,UAAQ,QAAO;AAAA,UAAK,IAAG;AAAA,UAAI,OAAM;AAAA,QAAM,CAAA;AAAA,MACpE,CAAA,GACL,gBAAA,EAAC,GAAD;AAAA,QAAM,IAAG;AAAA,QAAmB,SAAQ;AAAA,QAApC,UAAA;AAAA,UACG;AAAA,UAAiB;AAAA,UAAG;AAAA,QACjB;AAAA,MACD,CAAA,CAAA;AAAA,IAEJ,CAAA,CAAA;AAAA;AAEX"}
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import { resolveVariantConfig as
|
|
2
|
-
import { ThemedSVGImage as
|
|
3
|
-
import { CtaStatus as
|
|
4
|
-
import { getLayoutConfig as
|
|
5
|
-
import { EmergencySavingsAccountPicker as
|
|
6
|
-
import
|
|
7
|
-
import { jsx as
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */
|
|
1
|
+
import { resolveVariantConfig as g } from "../../resolveVariantConfig.es.js";
|
|
2
|
+
import { ThemedSVGImage as f } from "../../../components/chartblocks/ThemedSVGImage.es.js";
|
|
3
|
+
import { CtaStatus as p } from "../../../components/CtaStatus.es.js";
|
|
4
|
+
import { getLayoutConfig as d } from "./layout.es.js";
|
|
5
|
+
import { EmergencySavingsAccountPicker as v } from "./EmergencySavingsAccountPicker.es.js";
|
|
6
|
+
import i from "@mui/material/Stack";
|
|
7
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
var I = ({ payload: { instance_slot: s, instance_slot_data: m, widget_type: c }, beatGuid: l }) => {
|
|
9
|
+
const a = c === "full", { variant: n, data: o } = s, t = g(d(m?.isCIBC), n, "savings", "SVGImageBlock"), r = typeof o?.saved_label == "string" ? o.saved_label.trim() : "";
|
|
10
|
+
return /* @__PURE__ */ h(i, {
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
sx: { width: "100%" },
|
|
13
13
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
/* @__PURE__ */ e(f, { image: t.image }),
|
|
15
|
+
t.showPicker && a && /* @__PURE__ */ e(v, {
|
|
16
|
+
beatGuid: l,
|
|
17
|
+
data: o
|
|
17
18
|
}),
|
|
18
|
-
|
|
19
|
-
beatGuid: c,
|
|
20
|
-
data: e
|
|
21
|
-
}),
|
|
22
|
-
i.showSavedLabel && a && r && /* @__PURE__ */ o(s, {
|
|
19
|
+
t.showSavedLabel && a && r && /* @__PURE__ */ e(i, {
|
|
23
20
|
sx: {
|
|
24
21
|
pt: 24,
|
|
25
22
|
px: 16,
|
|
26
23
|
width: "100%"
|
|
27
24
|
},
|
|
28
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ e(p, {
|
|
29
26
|
icon: "check_circle",
|
|
30
27
|
label: r,
|
|
31
28
|
tone: "success"
|
|
@@ -35,7 +32,7 @@ var V = ({ payload: { instance_slot: m, instance_slot_data: n, widget_type: t },
|
|
|
35
32
|
});
|
|
36
33
|
};
|
|
37
34
|
export {
|
|
38
|
-
|
|
35
|
+
I as SVGImageBlock
|
|
39
36
|
};
|
|
40
37
|
|
|
41
38
|
//# sourceMappingURL=SVGImageBlock.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGImageBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { getLayoutConfig } from './layout'\n\nimport type { SVGImageBlockData } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport { ThemedSVGImage } from '../../../components/chartblocks/ThemedSVGImage'\nimport { CtaStatus } from '../../../components/CtaStatus'\nimport { EmergencySavingsAccountPicker } from './EmergencySavingsAccountPicker'\n\nexport const SVGImageBlock = ({\n payload: { instance_slot, instance_slot_data, widget_type },\n beatGuid,\n}: BlockProps<SVGImageBlockData>) => {\n const
|
|
1
|
+
{"version":3,"file":"SVGImageBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { getLayoutConfig } from './layout'\n\nimport type { SVGImageBlockData } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport { ThemedSVGImage } from '../../../components/chartblocks/ThemedSVGImage'\nimport { CtaStatus } from '../../../components/CtaStatus'\nimport { EmergencySavingsAccountPicker } from './EmergencySavingsAccountPicker'\n\nexport const SVGImageBlock = ({\n payload: { instance_slot, instance_slot_data, widget_type },\n beatGuid,\n}: BlockProps<SVGImageBlockData>) => {\n const isFull = widget_type === 'full'\n const { variant, data } = instance_slot\n // An unknown variant (drift with ditto) warns and draws the plain illustration.\n const layoutConfig = resolveVariantConfig(\n getLayoutConfig(instance_slot_data?.isCIBC),\n variant,\n 'savings',\n 'SVGImageBlock',\n )\n\n const savedLabel = typeof data?.saved_label === 'string' ? data.saved_label.trim() : ''\n\n return (\n <Stack alignItems=\"center\" sx={{ width: '100%' }}>\n <ThemedSVGImage image={layoutConfig.image} />\n {layoutConfig.showPicker && isFull && (\n <EmergencySavingsAccountPicker beatGuid={beatGuid} data={data} />\n )}\n {layoutConfig.showSavedLabel &&\n isFull &&\n savedLabel && (\n // Figma 1943:219096: the saved status sits in the card body, under the illustration.\n <Stack sx={{ pt: 24, px: 16, width: '100%' }}>\n <CtaStatus icon=\"check_circle\" label={savedLabel} tone=\"success\" />\n </Stack>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;;;;AAYA,IAAa,IAAA,CAAiB,EAC5B,SAAS,EAAE,eAAA,GAAe,oBAAA,GAAoB,aAAA,EAAA,GAC9C,UAAA,EAAA,MACmC;AACnC,QAAM,IAAS,MAAgB,QACzB,EAAE,SAAA,GAAS,MAAA,EAAA,IAAS,GAEpB,IAAe,EACnB,EAAgB,GAAoB,MAAM,GAC1C,GACA,WACA,eACF,GAEM,IAAa,OAAO,GAAM,eAAgB,WAAW,EAAK,YAAY,KAAK,IAAI;AAErF,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,YAAW;AAAA,IAAS,IAAI,EAAE,OAAO,OAAO;AAAA,IAA/C,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD,EAAgB,OAAO,EAAa,MAAQ,CAAA;AAAA,MAC3C,EAAa,cAAc,KAC1B,gBAAA,EAAC,GAAD;AAAA,QAAyC,UAAA;AAAA,QAAgB,MAAA;AAAA,MAAO,CAAA;AAAA,MAEjE,EAAa,kBACZ,KACA,KAEE,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,IAAI;AAAA,UAAI,IAAI;AAAA,UAAI,OAAO;AAAA,QAAO;AAAA,QACzC,UAAA,gBAAA,EAAC,GAAD;AAAA,UAAW,MAAK;AAAA,UAAe,OAAO;AAAA,UAAY,MAAK;AAAA,QAAW,CAAA;AAAA,MAC7D,CAAA;AAAA,IAEN;AAAA;AAEX"}
|