@mx-cartographer/experiences 9.7.72 → 9.7.73

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [9.7.73] - 11-02-2026
2
+
3
+ - **FIXED** - Cash Back amount band now matches Figma (WEC-2150)
4
+
1
5
  ## [9.7.72] - 11-02-2026
2
6
 
3
7
  - **FIXED** - Insights 2.0 full card secondary CTA, mini CTA, in-description link and Emergency Fund Withdrawal amount block now match Figma (WEC-2149, WEC-2152, WEC-2153, WEC-2156)
@@ -6,7 +6,7 @@ import { jsx as o } from "react/jsx-runtime";
6
6
  import { alpha as h } from "@mui/material/styles";
7
7
  import u from "@mui/material/Box";
8
8
  var d = { cash_back: "https://content.moneydesktop.com/storage/MD_Assets/md/insights/CashBack.png" }, B = ({ payload: a }) => {
9
- const { data: r } = a.instance_slot, t = s(r, "amount"), n = typeof t == "number" && Number.isFinite(t), m = s(r, "image") ?? "", e = d[m];
9
+ const { data: r } = a.instance_slot, t = s(r, "amount"), n = typeof t == "number" && Number.isFinite(t), i = s(r, "image") ?? "", e = d[i];
10
10
  return /* @__PURE__ */ o(p, {
11
11
  justifyContent: "flex-end",
12
12
  sx: {
@@ -16,7 +16,8 @@ var d = { cash_back: "https://content.moneydesktop.com/storage/MD_Assets/md/insi
16
16
  },
17
17
  children: /* @__PURE__ */ o(u, {
18
18
  sx: {
19
- bgcolor: (i) => h(i.palette.success.light, 0.6),
19
+ backdropFilter: "blur(3px)",
20
+ bgcolor: (m) => h(m.palette.success.light, 0.75),
20
21
  height: 56,
21
22
  p: 8,
22
23
  pl: 16
@@ -1 +1 @@
1
- {"version":3,"file":"ImageBlock.es.js","names":[],"sources":["../../../../src/insights-v2/blocks/ImageBlocks/ImageBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { alpha } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { slot, type InsightsPayload } from '../../../core'\nimport { formatCurrency } from '../../../core/utils/NumberFormatting'\n\nconst INSIGHTS_ASSETS_URL = 'https://content.moneydesktop.com/storage/MD_Assets/md/insights'\n\nconst imageMap: Record<string, string> = {\n cash_back: `${INSIGHTS_ASSETS_URL}/CashBack.png`,\n}\n\nconst ImageBlock = ({ payload }: { payload: InsightsPayload; beatGuid?: string }) => {\n // V2 contract carries the block's slots on `instance_slot.data` (not the V1 `instance_slot_data`).\n const { data } = payload.instance_slot\n const amount = slot<number>(data, 'amount')\n const hasAmount = typeof amount === 'number' && Number.isFinite(amount)\n const image = slot<string>(data, 'image') ?? ''\n // Only draw the background when the asset is known; an unmapped image would otherwise produce\n // `url(undefined)` and a broken request.\n const asset = imageMap[image]\n\n return (\n <Stack\n justifyContent=\"flex-end\"\n sx={{\n background: asset ? `url(${asset}) no-repeat top / cover` : undefined,\n height: 175,\n width: '100%',\n }}\n >\n <Box\n sx={{\n bgcolor: (theme) => alpha(theme.palette.success.light, 0.6),\n height: 56,\n p: 8,\n pl: 16,\n }}\n >\n <Text color=\"success.dark\" variant=\"h1\">\n {hasAmount ? formatCurrency(amount, '0,0.00') : null}\n </Text>\n </Box>\n </Stack>\n )\n}\n\nexport default ImageBlock\n"],"mappings":";;;;;;;AAWA,IAAM,IAAmC,EACvC,WAAW,8EACb,GAEM,IAAA,CAAc,EAAE,SAAA,EAAA,MAA+D;AAEnF,QAAM,EAAE,MAAA,EAAA,IAAS,EAAQ,eACnB,IAAS,EAAa,GAAM,QAAQ,GACpC,IAAY,OAAO,KAAW,YAAY,OAAO,SAAS,CAAM,GAChE,IAAQ,EAAa,GAAM,OAAO,KAAK,IAGvC,IAAQ,EAAS,CAAA;AAEvB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,gBAAe;AAAA,IACf,IAAI;AAAA,MACF,YAAY,IAAQ,OAAO,CAAA,4BAAiC;AAAA,MAC5D,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,SAAA,CAAU,MAAU,EAAM,EAAM,QAAQ,QAAQ,OAAO,GAAG;AAAA,QAC1D,QAAQ;AAAA,QACR,GAAG;AAAA,QACH,IAAI;AAAA,MACN;AAAA,MAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,QAAM,OAAM;AAAA,QAAe,SAAQ;AAAA,QAChC,UAAA,IAAY,EAAe,GAAQ,QAAQ,IAAI;AAAA,MAC5C,CAAA;AAAA,IACH,CAAA;AAAA,EACA,CAAA;AAEX"}
1
+ {"version":3,"file":"ImageBlock.es.js","names":[],"sources":["../../../../src/insights-v2/blocks/ImageBlocks/ImageBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { alpha } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { slot, type InsightsPayload } from '../../../core'\nimport { formatCurrency } from '../../../core/utils/NumberFormatting'\n\nconst INSIGHTS_ASSETS_URL = 'https://content.moneydesktop.com/storage/MD_Assets/md/insights'\n\nconst imageMap: Record<string, string> = {\n cash_back: `${INSIGHTS_ASSETS_URL}/CashBack.png`,\n}\n\nconst ImageBlock = ({ payload }: { payload: InsightsPayload; beatGuid?: string }) => {\n // V2 contract carries the block's slots on `instance_slot.data` (not the V1 `instance_slot_data`).\n const { data } = payload.instance_slot\n const amount = slot<number>(data, 'amount')\n const hasAmount = typeof amount === 'number' && Number.isFinite(amount)\n const image = slot<string>(data, 'image') ?? ''\n // Only draw the background when the asset is known; an unmapped image would otherwise produce\n // `url(undefined)` and a broken request.\n const asset = imageMap[image]\n\n return (\n <Stack\n justifyContent=\"flex-end\"\n sx={{\n background: asset ? `url(${asset}) no-repeat top / cover` : undefined,\n height: 175,\n width: '100%',\n }}\n >\n {/* The blur lets the image read through the amount band. */}\n <Box\n sx={{\n backdropFilter: 'blur(3px)',\n bgcolor: (theme) => alpha(theme.palette.success.light, 0.75),\n height: 56,\n p: 8,\n pl: 16,\n }}\n >\n <Text color=\"success.dark\" variant=\"h1\">\n {hasAmount ? formatCurrency(amount, '0,0.00') : null}\n </Text>\n </Box>\n </Stack>\n )\n}\n\nexport default ImageBlock\n"],"mappings":";;;;;;;AAWA,IAAM,IAAmC,EACvC,WAAW,8EACb,GAEM,IAAA,CAAc,EAAE,SAAA,EAAA,MAA+D;AAEnF,QAAM,EAAE,MAAA,EAAA,IAAS,EAAQ,eACnB,IAAS,EAAa,GAAM,QAAQ,GACpC,IAAY,OAAO,KAAW,YAAY,OAAO,SAAS,CAAM,GAChE,IAAQ,EAAa,GAAM,OAAO,KAAK,IAGvC,IAAQ,EAAS,CAAA;AAEvB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,gBAAe;AAAA,IACf,IAAI;AAAA,MACF,YAAY,IAAQ,OAAO,CAAA,4BAAiC;AAAA,MAC5D,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IAGA,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,gBAAgB;AAAA,QAChB,SAAA,CAAU,MAAU,EAAM,EAAM,QAAQ,QAAQ,OAAO,IAAI;AAAA,QAC3D,QAAQ;AAAA,QACR,GAAG;AAAA,QACH,IAAI;AAAA,MACN;AAAA,MAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,QAAM,OAAM;AAAA,QAAe,SAAQ;AAAA,QAChC,UAAA,IAAY,EAAe,GAAQ,QAAQ,IAAI;AAAA,MAC5C,CAAA;AAAA,IACH,CAAA;AAAA,EACA,CAAA;AAEX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.72",
3
+ "version": "9.7.73",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",