@mx-cartographer/experiences 9.1.3 → 9.1.4-alpha.al1

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.
Files changed (131) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs → AccountDetailsDrawer-Da1-Y86z.mjs} +10 -10
  3. package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs.map → AccountDetailsDrawer-Da1-Y86z.mjs.map} +1 -1
  4. package/dist/{AccountDetailsHeader-BliEZhz7.mjs → AccountDetailsHeader-CE0HYbRA.mjs} +4 -4
  5. package/dist/{AccountDetailsHeader-BliEZhz7.mjs.map → AccountDetailsHeader-CE0HYbRA.mjs.map} +1 -1
  6. package/dist/{Analytics-CkYXKvco.mjs → Analytics-BJDUP2qI.mjs} +2 -2
  7. package/dist/{Analytics-CkYXKvco.mjs.map → Analytics-BJDUP2qI.mjs.map} +1 -1
  8. package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs → CategorySelectorDrawer-BM5mKt7P.mjs} +2 -2
  9. package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs.map → CategorySelectorDrawer-BM5mKt7P.mjs.map} +1 -1
  10. package/dist/{Connect-BH0Pt6zc.mjs → Connect-JoOkCXSZ.mjs} +2 -2
  11. package/dist/{Connect-BH0Pt6zc.mjs.map → Connect-JoOkCXSZ.mjs.map} +1 -1
  12. package/dist/{ConnectCard-D7uxoH5Y.mjs → ConnectCard-DnZHCv3m.mjs} +2 -2
  13. package/dist/{ConnectCard-D7uxoH5Y.mjs.map → ConnectCard-DnZHCv3m.mjs.map} +1 -1
  14. package/dist/{ConnectDrawer-CW4LA3H3.mjs → ConnectDrawer-Btol_U7o.mjs} +3 -3
  15. package/dist/{ConnectDrawer-CW4LA3H3.mjs.map → ConnectDrawer-Btol_U7o.mjs.map} +1 -1
  16. package/dist/{ConnectionsDrawer-CZU9ku-k.mjs → ConnectionsDrawer-DGv6aJ6x.mjs} +3 -3
  17. package/dist/{ConnectionsDrawer-CZU9ku-k.mjs.map → ConnectionsDrawer-DGv6aJ6x.mjs.map} +1 -1
  18. package/dist/{CurrencyInput-DaGEQaLW.mjs → CurrencyInput-CxAsTGg2.mjs} +2 -2
  19. package/dist/{CurrencyInput-DaGEQaLW.mjs.map → CurrencyInput-CxAsTGg2.mjs.map} +1 -1
  20. package/dist/{EmbeddedCard-DCOQnTz-.mjs → EmbeddedCard-Dwj1CkBK.mjs} +3 -3
  21. package/dist/{EmbeddedCard-DCOQnTz-.mjs.map → EmbeddedCard-Dwj1CkBK.mjs.map} +1 -1
  22. package/dist/{Error-Dtw6yxkf.mjs → Error-BMVsnvtd.mjs} +2 -2
  23. package/dist/{Error-Dtw6yxkf.mjs.map → Error-BMVsnvtd.mjs.map} +1 -1
  24. package/dist/ErrorBoundary-C7BlHx04.mjs +27 -0
  25. package/dist/ErrorBoundary-C7BlHx04.mjs.map +1 -0
  26. package/dist/{ExportCsvAction-C-IisDcv.mjs → ExportCsvAction-B23U4xj8.mjs} +3 -3
  27. package/dist/{ExportCsvAction-C-IisDcv.mjs.map → ExportCsvAction-B23U4xj8.mjs.map} +1 -1
  28. package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs → GlobalAccountFilter-1NlROwU8.mjs} +2 -2
  29. package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs.map → GlobalAccountFilter-1NlROwU8.mjs.map} +1 -1
  30. package/dist/GlobalCopyApi-Tz10hezK.mjs +130 -0
  31. package/dist/GlobalCopyApi-Tz10hezK.mjs.map +1 -0
  32. package/dist/{Help-zVZdcmlk.mjs → Help-BC5OU0yX.mjs} +145 -145
  33. package/dist/Help-BC5OU0yX.mjs.map +1 -0
  34. package/dist/{LineChart-CUfiH86G.mjs → LineChart-YCIQN3ho.mjs} +2 -2
  35. package/dist/{LineChart-CUfiH86G.mjs.map → LineChart-YCIQN3ho.mjs.map} +1 -1
  36. package/dist/{ListItemAction-BqUCLj_w.mjs → ListItemAction-D-XYTjj4.mjs} +2 -2
  37. package/dist/{ListItemAction-BqUCLj_w.mjs.map → ListItemAction-D-XYTjj4.mjs.map} +1 -1
  38. package/dist/{ListItemWrapper-DRse79Iu.mjs → ListItemWrapper-XiustNlS.mjs} +2 -2
  39. package/dist/{ListItemWrapper-DRse79Iu.mjs.map → ListItemWrapper-XiustNlS.mjs.map} +1 -1
  40. package/dist/{ManageIncome-B_8i71mE.mjs → ManageIncome-CWr2Eij2.mjs} +32 -32
  41. package/dist/{ManageIncome-B_8i71mE.mjs.map → ManageIncome-CWr2Eij2.mjs.map} +1 -1
  42. package/dist/{MicroWidgetContainer-B2NnKBgW.mjs → MicroWidgetContainer-u1hE4nVI.mjs} +2 -2
  43. package/dist/{MicroWidgetContainer-B2NnKBgW.mjs.map → MicroWidgetContainer-u1hE4nVI.mjs.map} +1 -1
  44. package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs → MiniWidgetContainer-DFUhI7Ok.mjs} +2 -2
  45. package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs.map → MiniWidgetContainer-DFUhI7Ok.mjs.map} +1 -1
  46. package/dist/{NotificationSettings-CW7okUrk.mjs → NotificationSettings-1OxkZpn7.mjs} +33 -33
  47. package/dist/{NotificationSettings-CW7okUrk.mjs.map → NotificationSettings-1OxkZpn7.mjs.map} +1 -1
  48. package/dist/{OriginalBalanceAction-YrvxBYAl.mjs → OriginalBalanceAction-BmuKAlKl.mjs} +4 -4
  49. package/dist/{OriginalBalanceAction-YrvxBYAl.mjs.map → OriginalBalanceAction-BmuKAlKl.mjs.map} +1 -1
  50. package/dist/{RecurringSettings-hs0YUp83.mjs → RecurringSettings-CMspUOGC.mjs} +3 -3
  51. package/dist/{RecurringSettings-hs0YUp83.mjs.map → RecurringSettings-CMspUOGC.mjs.map} +1 -1
  52. package/dist/{SpendingLegend-CxvNOg3c.mjs → SpendingLegend-CqLSaAYE.mjs} +2 -2
  53. package/dist/{SpendingLegend-CxvNOg3c.mjs.map → SpendingLegend-CqLSaAYE.mjs.map} +1 -1
  54. package/dist/{TransactionDetails-DT-MQqOB.mjs → TransactionDetails-DsWYPMCj.mjs} +5 -5
  55. package/dist/{TransactionDetails-DT-MQqOB.mjs.map → TransactionDetails-DsWYPMCj.mjs.map} +1 -1
  56. package/dist/{UserStore-E5WvBXaY.mjs → UserStore-CL_kIDzt.mjs} +367 -317
  57. package/dist/UserStore-CL_kIDzt.mjs.map +1 -0
  58. package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs → ViewMoreMicroCard-CJckyYda.mjs} +4 -4
  59. package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs.map → ViewMoreMicroCard-CJckyYda.mjs.map} +1 -1
  60. package/dist/{WidgetContainer-CjdCY4sj.mjs → WidgetContainer-C4PFkL6g.mjs} +3 -3
  61. package/dist/{WidgetContainer-CjdCY4sj.mjs.map → WidgetContainer-C4PFkL6g.mjs.map} +1 -1
  62. package/dist/accounts/index.es.js +11 -11
  63. package/dist/analytics/index.es.js +2 -2
  64. package/dist/budgets/index.es.js +10 -10
  65. package/dist/cashflow/index.es.js +70 -70
  66. package/dist/categories/index.es.js +1 -1
  67. package/dist/common/components/ErrorBoundary.d.ts +2 -0
  68. package/dist/common/components/ErrorTestButtons.d.ts +3 -0
  69. package/dist/common/components/index.d.ts +1 -0
  70. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  71. package/dist/common/context/hooks.d.ts +3 -0
  72. package/dist/common/context/index.d.ts +1 -1
  73. package/dist/common/index.es.js +252 -224
  74. package/dist/common/index.es.js.map +1 -1
  75. package/dist/core/api/AccountApi.d.ts +2 -2
  76. package/dist/core/api/AnalyticsApi.d.ts +2 -2
  77. package/dist/core/api/AppDataApi.d.ts +2 -2
  78. package/dist/core/api/BeatApi.d.ts +2 -2
  79. package/dist/core/api/BudgetsApi.d.ts +2 -2
  80. package/dist/core/api/CategoryApi.d.ts +2 -2
  81. package/dist/core/api/FinstrongApi.d.ts +2 -2
  82. package/dist/core/api/GlobalCopyApi.d.ts +2 -2
  83. package/dist/core/api/GoalApi.d.ts +2 -2
  84. package/dist/core/api/HelpApi.d.ts +2 -2
  85. package/dist/core/api/HoldingApi.d.ts +2 -2
  86. package/dist/core/api/MerchantApi.d.ts +2 -2
  87. package/dist/core/api/NotificationApi.d.ts +2 -2
  88. package/dist/core/api/RepeatingTransactionsApi.d.ts +2 -2
  89. package/dist/core/api/ScheduledPaymentsApi.d.ts +2 -2
  90. package/dist/core/api/SettingsApi.d.ts +2 -2
  91. package/dist/core/api/TransactionApi.d.ts +2 -2
  92. package/dist/core/api/UserApi.d.ts +2 -2
  93. package/dist/core/index.es.js +95 -95
  94. package/dist/core/index.es.js.map +1 -1
  95. package/dist/core/stores/GlobalStore.d.ts +4 -2
  96. package/dist/core/types/Handlers.d.ts +1 -0
  97. package/dist/core/types/index.d.ts +1 -1
  98. package/dist/core/utils/Fetch.d.ts +3 -2
  99. package/dist/dashboard/index.es.js +4 -4
  100. package/dist/debts/index.es.js +8 -8
  101. package/dist/finstrong/index.es.js +12 -12
  102. package/dist/goals/index.es.js +9 -9
  103. package/dist/help/index.es.js +4 -4
  104. package/dist/hooks-Chcgk3F2.mjs +83 -0
  105. package/dist/hooks-Chcgk3F2.mjs.map +1 -0
  106. package/dist/insights/index.es.js +4 -4
  107. package/dist/investments/index.es.js +4 -4
  108. package/dist/merchants/index.es.js +1 -1
  109. package/dist/microinsights/index.es.js +1 -1
  110. package/dist/networth/index.es.js +6 -6
  111. package/dist/notifications/index.es.js +8 -8
  112. package/dist/recurringtransactions/index.es.js +38 -38
  113. package/dist/settings/index.es.js +27 -27
  114. package/dist/spending/index.es.js +7 -7
  115. package/dist/transactions/index.es.js +11 -11
  116. package/dist/trends/index.es.js +12 -12
  117. package/dist/{useAccountDisplayName-BsiXA0qf.mjs → useAccountDisplayName-BC5i7pMh.mjs} +2 -2
  118. package/dist/{useAccountDisplayName-BsiXA0qf.mjs.map → useAccountDisplayName-BC5i7pMh.mjs.map} +1 -1
  119. package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs → useInsightsEnabled-BpBk6YYj.mjs} +2 -2
  120. package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs.map → useInsightsEnabled-BpBk6YYj.mjs.map} +1 -1
  121. package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs → useWidgetLoadTimer-D0bW29qj.mjs} +2 -2
  122. package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs.map → useWidgetLoadTimer-D0bW29qj.mjs.map} +1 -1
  123. package/package.json +1 -1
  124. package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -24
  125. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +0 -1
  126. package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -129
  127. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +0 -1
  128. package/dist/Help-zVZdcmlk.mjs.map +0 -1
  129. package/dist/UserStore-E5WvBXaY.mjs.map +0 -1
  130. package/dist/hooks-97sNJ_lf.mjs +0 -78
  131. package/dist/hooks-97sNJ_lf.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/core/constants/repeatingTransactions.ts","../../src/common/hooks/usePrevious.tsx","../../src/common/constants/ScheduledPayment.ts","../../src/common/constants/SpendingPlan.ts","../../src/common/components/donuts/MultiSegmentDonut.tsx","../../src/common/utils/Theme.ts"],"sourcesContent":["export enum RecurrenceTypes {\n Unknown = 0,\n EveryWeek = 1,\n EveryOtherWeek = 2,\n EveryMonth = 3,\n EveryOtherMonth = 4,\n EveryQuarter = 5,\n EveryOtherQuarter = 6,\n EveryYear = 7,\n}\n","import { useEffect, useRef } from 'react'\n\nexport const usePrevious = (value: any) => {\n const ref = useRef(null)\n useEffect(() => {\n ref.current = value\n }, [value])\n return ref.current\n}\nexport default usePrevious\n","import { RecurrenceTypes } from '../../core/constants'\n\nexport const RECURRENCE_COPY = [\n { id: RecurrenceTypes.Unknown, copy: 'frequency_unknown' },\n { id: RecurrenceTypes.EveryWeek, copy: 'frequency_every_week' },\n { id: RecurrenceTypes.EveryOtherWeek, copy: 'frequency_every_other_week' },\n { id: RecurrenceTypes.EveryMonth, copy: 'frequency_every_month' },\n { id: RecurrenceTypes.EveryOtherMonth, copy: 'frequency_every_other_month' },\n { id: RecurrenceTypes.EveryQuarter, copy: 'frequency_every_quarter' },\n { id: RecurrenceTypes.EveryOtherQuarter, copy: 'frequency_every_other_quarter' },\n { id: RecurrenceTypes.EveryYear, copy: 'frequency_every_year' },\n]\n","export const LOADING_STATUS = {\n ERROR: 'ERROR',\n LOADING: 'LOADING',\n SUCCESS: 'SUCCESS',\n}\n","import React from 'react'\nimport { css } from '@mxenabled/cssinjs'\n\nimport { DEFAULT_DONUT_SIZE, DEFAULT_STROKE_WIDTH } from '../../constants'\n\nexport interface Segment {\n percent: number\n color: string\n}\n\nexport interface MultiSegmentDonutProps {\n children: React.ReactNode\n hasGap?: boolean\n segments: Segment[]\n size?: number\n strokeWidth?: number\n}\n\nconst MultiSegmentDonut: React.FC<MultiSegmentDonutProps> = ({\n hasGap = false,\n segments,\n size = DEFAULT_DONUT_SIZE,\n strokeWidth = DEFAULT_STROKE_WIDTH,\n children,\n}) => {\n const styles = getStyles(size)\n\n const radius = (size - strokeWidth) / 2\n const halfSize = size / 2\n\n let offset = -90 - (hasGap ? 1 : 0)\n\n let length = 0\n\n return (\n <div className={`mx-cmn-multi-segment-donut ${styles}`}>\n <svg height={size} width={size}>\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n r={radius}\n stroke=\"#E4E8EE\"\n strokeWidth={strokeWidth}\n />\n {segments.map((segment, index) => {\n offset += 360 * length + (hasGap ? 1 : 0)\n length = (segment.percent - (hasGap ? 0.3 : 0)) / 100\n\n return (\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n key={index}\n r={radius}\n stroke={segment.color}\n strokeDasharray={2 * Math.PI * radius}\n strokeDashoffset={2 * Math.PI * radius * (1 - length)}\n strokeWidth={strokeWidth}\n transform={`rotate(${offset}, ${halfSize}, ${halfSize})`}\n />\n )\n })}\n </svg>\n <div className=\"mx-cmn-multi-segment-donut-children\">{children}</div>\n </div>\n )\n}\n\nconst getStyles = (size: number) =>\n css({\n height: size,\n marginTop: `-8px`,\n position: 'relative',\n width: size,\n '& .mx-cmn-multi-segment-donut-children': {\n left: '50%',\n position: 'absolute',\n textAlign: 'center',\n top: '50%',\n transform: 'translate(-50%, -50%)',\n },\n })\n\nexport default MultiSegmentDonut\n","import { alpha, darken, lighten, PaletteColor, PaletteMode, Theme } from '@mui/material'\n\nimport type { ClientStyleProfile } from '../../core'\nimport { ClientConfig } from '../../core/types/AppData'\n\nconst TYPOGRAPHY_VARIANTS = [\n 'fontFamily',\n 'h1',\n 'h2',\n 'h3',\n 'body1',\n 'body2',\n 'button',\n 'caption',\n 'subtitle1',\n 'subtitle2',\n 'tiny',\n] as const\n\nconst PALETTE_CONFIG = [\n { key: 'primary', light: 'primary_color', dark: 'primary_color_dark' },\n { key: 'secondary', light: 'neutral_color', dark: 'neutral_color_dark' },\n { key: 'error', light: 'error_color', dark: 'error_color_dark' },\n { key: 'warning', light: 'warning_color', dark: 'warning_color_dark' },\n { key: 'info', light: 'info_color', dark: 'info_color_dark' },\n { key: 'success', light: 'success_color', dark: 'success_color_dark' },\n] as const\n\nexport const getClientPaletteOptions = (\n clientStyleProfile: ClientStyleProfile,\n mode: PaletteMode,\n): Record<string, string> => {\n const isDark = mode === 'dark'\n const options: Record<string, string> = {}\n\n for (const { key, light, dark } of PALETTE_CONFIG) {\n const color = clientStyleProfile?.[isDark ? dark : light] as string | undefined\n if (color) options[key] = color\n }\n\n return options\n}\n\nexport const getClientTheme = (\n theme: Theme,\n clientStyleProfile: ClientStyleProfile,\n clientConfig?: ClientConfig,\n) => {\n const isDark = theme.palette.mode === 'dark'\n const font =\n (clientConfig?.master?.style?.font_name || clientStyleProfile?.system_font) ??\n theme.typography.fontFamily\n\n const generatePalette = (color: string | undefined, defaultColor: PaletteColor) =>\n color\n ? {\n lighter: lighten(color, 0.5),\n light: lighten(color, 0.25),\n main: color,\n dark: darken(color, 0.25),\n darker: darken(color, 0.5),\n }\n : defaultColor\n\n const palette = Object.fromEntries(\n PALETTE_CONFIG.map(({ key, light, dark }) => [\n key,\n generatePalette(\n clientStyleProfile?.[isDark ? dark : light] as string | undefined,\n theme.palette[key],\n ),\n ]),\n )\n\n const typography = Object.fromEntries(\n TYPOGRAPHY_VARIANTS.map((variant) => [\n variant,\n variant === 'fontFamily' ? font : { fontFamily: font },\n ]),\n )\n\n const baseComponents = {\n MuiTabs: {\n styleOverrides: {\n indicator: { backgroundColor: palette.primary.light },\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n switchViewButton: {\n color: palette.primary.lighter,\n '&:hover': { backgroundColor: alpha(palette.primary.light, 0.1) },\n },\n },\n },\n }\n\n const buttonRadius = clientStyleProfile?.button_corner_radius\n const cardRadius = clientStyleProfile?.card_corner_radius\n\n const components = {\n ...baseComponents,\n ...(buttonRadius && {\n MuiButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: `${buttonRadius}px`,\n minWidth: buttonRadius,\n minHeight: buttonRadius,\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n }),\n ...(cardRadius && {\n MuiCard: {\n styleOverrides: { root: { borderRadius: `${cardRadius}px` } },\n },\n }),\n ...(cardRadius && {\n MuiPaper: {\n styleOverrides: {\n rounded: { borderRadius: `${cardRadius}px` },\n },\n },\n }),\n }\n\n return { typography, palette, components }\n}\n"],"names":["RecurrenceTypes","usePrevious","value","ref","useRef","useEffect","RECURRENCE_COPY","LOADING_STATUS","MultiSegmentDonut","hasGap","segments","size","DEFAULT_DONUT_SIZE","strokeWidth","DEFAULT_STROKE_WIDTH","children","styles","getStyles","radius","halfSize","offset","length","jsxs","jsx","segment","index","css","TYPOGRAPHY_VARIANTS","PALETTE_CONFIG","getClientPaletteOptions","clientStyleProfile","mode","isDark","options","key","light","dark","color","getClientTheme","theme","clientConfig","font","generatePalette","defaultColor","lighten","darken","palette","typography","variant","baseComponents","alpha","buttonRadius","cardRadius","components"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAKA,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aACAA,EAAAA,EAAA,iBAAiB,CAAA,IAAjB,kBACAA,EAAAA,EAAA,aAAa,CAAA,IAAb,cACAA,EAAAA,EAAA,kBAAkB,CAAA,IAAlB,mBACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,oBAAoB,CAAA,IAApB,qBACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aARUA,IAAAA,KAAA,CAAA,CAAA;ACEL,MAAMC,IAAc,CAACC,MAAe;AACzC,QAAMC,IAAMC,EAAO,IAAI;AACvB,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GACHC,EAAI;AACb,GCNaG,IAAkB;AAAA,EAC7B,EAAE,IAAIN,EAAgB,SAAS,MAAM,oBAAA;AAAA,EACrC,EAAE,IAAIA,EAAgB,WAAW,MAAM,uBAAA;AAAA,EACvC,EAAE,IAAIA,EAAgB,gBAAgB,MAAM,6BAAA;AAAA,EAC5C,EAAE,IAAIA,EAAgB,YAAY,MAAM,wBAAA;AAAA,EACxC,EAAE,IAAIA,EAAgB,iBAAiB,MAAM,8BAAA;AAAA,EAC7C,EAAE,IAAIA,EAAgB,cAAc,MAAM,0BAAA;AAAA,EAC1C,EAAE,IAAIA,EAAgB,mBAAmB,MAAM,gCAAA;AAAA,EAC/C,EAAE,IAAIA,EAAgB,WAAW,MA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MAAM;AAAA,YACJ,cAAc,GAAGA,CAAY;AAAA,YAC7B,UAAUA;AAAA,YACV,WAAWA;AAAA,UAAA;AAAA,QACb;AAAA,MACF;AAAA,MAEF,iBAAiB;AAAA,QACf,gBAAgB;AAAA,UACd,MAAM,EAAE,cAAc,GAAGA,CAAY,MAAM,eAAe,OAAA;AAAA,QAAO;AAAA,MACnE;AAAA,IACF;AAAA,IAEF,GAAIC,KAAc;AAAA,MAChB,SAAS;AAAA,QACP,gBAAgB,EAAE,MAAM,EAAE,cAAc,GAAGA,CAAU,OAAK;AAAA,MAAE;AAAA,IAC9D;AAAA,IAEF,GAAIA,KAAc;AAAA,MAChB,UAAU;AAAA,QACR,gBAAgB;AAAA,UACd,SAAS,EAAE,cAAc,GAAGA,CAAU,KAAA;AAAA,QAAK;AAAA,MAC7C;AAAA,IACF;AAAA,EACF;AAGF,SAAO,EAAE,YAAAL,GAAY,SAAAD,GAAS,YAAAO,EAAA;AAChC;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../src/core/constants/repeatingTransactions.ts","../../src/common/hooks/usePrevious.tsx","../../src/common/constants/ScheduledPayment.ts","../../src/common/constants/SpendingPlan.ts","../../src/common/components/donuts/MultiSegmentDonut.tsx","../../src/common/components/ErrorTestButtons.tsx","../../src/common/utils/Theme.ts"],"sourcesContent":["export enum RecurrenceTypes {\n Unknown = 0,\n EveryWeek = 1,\n EveryOtherWeek = 2,\n EveryMonth = 3,\n EveryOtherMonth = 4,\n EveryQuarter = 5,\n EveryOtherQuarter = 6,\n EveryYear = 7,\n}\n","import { useEffect, useRef } from 'react'\n\nexport const usePrevious = (value: any) => {\n const ref = useRef(null)\n useEffect(() => {\n ref.current = value\n }, [value])\n return ref.current\n}\nexport default usePrevious\n","import { RecurrenceTypes } from '../../core/constants'\n\nexport const RECURRENCE_COPY = [\n { id: RecurrenceTypes.Unknown, copy: 'frequency_unknown' },\n { id: RecurrenceTypes.EveryWeek, copy: 'frequency_every_week' },\n { id: RecurrenceTypes.EveryOtherWeek, copy: 'frequency_every_other_week' },\n { id: RecurrenceTypes.EveryMonth, copy: 'frequency_every_month' },\n { id: RecurrenceTypes.EveryOtherMonth, copy: 'frequency_every_other_month' },\n { id: RecurrenceTypes.EveryQuarter, copy: 'frequency_every_quarter' },\n { id: RecurrenceTypes.EveryOtherQuarter, copy: 'frequency_every_other_quarter' },\n { id: RecurrenceTypes.EveryYear, copy: 'frequency_every_year' },\n]\n","export const LOADING_STATUS = {\n ERROR: 'ERROR',\n LOADING: 'LOADING',\n SUCCESS: 'SUCCESS',\n}\n","import React from 'react'\nimport { css } from '@mxenabled/cssinjs'\n\nimport { DEFAULT_DONUT_SIZE, DEFAULT_STROKE_WIDTH } from '../../constants'\n\nexport interface Segment {\n percent: number\n color: string\n}\n\nexport interface MultiSegmentDonutProps {\n children: React.ReactNode\n hasGap?: boolean\n segments: Segment[]\n size?: number\n strokeWidth?: number\n}\n\nconst MultiSegmentDonut: React.FC<MultiSegmentDonutProps> = ({\n hasGap = false,\n segments,\n size = DEFAULT_DONUT_SIZE,\n strokeWidth = DEFAULT_STROKE_WIDTH,\n children,\n}) => {\n const styles = getStyles(size)\n\n const radius = (size - strokeWidth) / 2\n const halfSize = size / 2\n\n let offset = -90 - (hasGap ? 1 : 0)\n\n let length = 0\n\n return (\n <div className={`mx-cmn-multi-segment-donut ${styles}`}>\n <svg height={size} width={size}>\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n r={radius}\n stroke=\"#E4E8EE\"\n strokeWidth={strokeWidth}\n />\n {segments.map((segment, index) => {\n offset += 360 * length + (hasGap ? 1 : 0)\n length = (segment.percent - (hasGap ? 0.3 : 0)) / 100\n\n return (\n <circle\n cx={halfSize}\n cy={halfSize}\n fill=\"none\"\n key={index}\n r={radius}\n stroke={segment.color}\n strokeDasharray={2 * Math.PI * radius}\n strokeDashoffset={2 * Math.PI * radius * (1 - length)}\n strokeWidth={strokeWidth}\n transform={`rotate(${offset}, ${halfSize}, ${halfSize})`}\n />\n )\n })}\n </svg>\n <div className=\"mx-cmn-multi-segment-donut-children\">{children}</div>\n </div>\n )\n}\n\nconst getStyles = (size: number) =>\n css({\n height: size,\n marginTop: `-8px`,\n position: 'relative',\n width: size,\n '& .mx-cmn-multi-segment-donut-children': {\n left: '50%',\n position: 'absolute',\n textAlign: 'center',\n top: '50%',\n transform: 'translate(-50%, -50%)',\n },\n })\n\nexport default MultiSegmentDonut\n","import React from 'react'\nimport { Button, Stack, Typography } from '@mui/material'\n\nimport { useGlobalStore } from '../context/hooks'\nimport { useCaptureException } from '../context/hooks'\n\n/**\n * Temporary component for testing PostHog error capture.\n * Triggers different error types to verify they appear as $exception events.\n * REMOVE BEFORE MERGING TO PRODUCTION.\n */\n\nconst BombComponent: React.FC = () => {\n throw new Error('[ErrorTest] Uncaught render error — should be caught by ErrorBoundary')\n}\n\nconst ErrorTestButtons: React.FC = () => {\n const globalStore = useGlobalStore()\n const { onCaptureException } = useCaptureException()\n const [shouldExplode, setShouldExplode] = React.useState(false)\n\n // 1. Store-level caught error (simulates a store catch block)\n const triggerStoreCaughtError = () => {\n const error = new Error('[ErrorTest] Simulated store-level caught error')\n console.error('ErrorTest store error:', error)\n globalStore.captureException(error, { store: 'ErrorTestButtons', action: 'triggerStoreCaughtError' })\n }\n\n // 2. Direct captureException call (simulates Fetch/API layer)\n const triggerFetchError = () => {\n const error = new Error('[ErrorTest] Simulated Fetch API error')\n console.error('ErrorTest fetch error:', error)\n onCaptureException?.(error, { method: 'GET', url: '/test/error-endpoint' })\n }\n\n // 3. Unhandled promise rejection\n const triggerUnhandledRejection = () => {\n Promise.reject(new Error('[ErrorTest] Unhandled promise rejection'))\n }\n\n // 4. Uncaught throw (window.onerror)\n const triggerUncaughtThrow = () => {\n setTimeout(() => {\n throw new Error('[ErrorTest] Uncaught setTimeout error')\n }, 0)\n }\n\n // 5. React render error (ErrorBoundary) — toggled via state\n // Wrap usage in an ErrorBoundary to test that path\n\n return (\n <Stack spacing={1} sx={{ p: 2, border: '2px dashed red', borderRadius: 2, m: 2 }}>\n <Typography variant=\"subtitle2\" color=\"error\">\n ⚠️ Error Test Panel — REMOVE BEFORE PROD\n </Typography>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerStoreCaughtError}>\n 1. Store caught error\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerFetchError}>\n 2. Fetch/API error\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerUnhandledRejection}>\n 3. Unhandled promise rejection\n </Button>\n <Button variant=\"outlined\" color=\"warning\" size=\"small\" onClick={triggerUncaughtThrow}>\n 4. Uncaught throw (setTimeout)\n </Button>\n <Button variant=\"outlined\" color=\"error\" size=\"small\" onClick={() => setShouldExplode(true)}>\n 5. React render error (ErrorBoundary)\n </Button>\n {shouldExplode && <BombComponent />}\n </Stack>\n )\n}\n\nexport default ErrorTestButtons\n","import { alpha, darken, lighten, PaletteColor, PaletteMode, Theme } from '@mui/material'\n\nimport type { ClientStyleProfile } from '../../core'\nimport { ClientConfig } from '../../core/types/AppData'\n\nconst TYPOGRAPHY_VARIANTS = [\n 'fontFamily',\n 'h1',\n 'h2',\n 'h3',\n 'body1',\n 'body2',\n 'button',\n 'caption',\n 'subtitle1',\n 'subtitle2',\n 'tiny',\n] as const\n\nconst PALETTE_CONFIG = [\n { key: 'primary', light: 'primary_color', dark: 'primary_color_dark' },\n { key: 'secondary', light: 'neutral_color', dark: 'neutral_color_dark' },\n { key: 'error', light: 'error_color', dark: 'error_color_dark' },\n { key: 'warning', light: 'warning_color', dark: 'warning_color_dark' },\n { key: 'info', light: 'info_color', dark: 'info_color_dark' },\n { key: 'success', light: 'success_color', dark: 'success_color_dark' },\n] as const\n\nexport const getClientPaletteOptions = (\n clientStyleProfile: ClientStyleProfile,\n mode: PaletteMode,\n): Record<string, string> => {\n const isDark = mode === 'dark'\n const options: Record<string, string> = {}\n\n for (const { key, light, dark } of PALETTE_CONFIG) {\n const color = clientStyleProfile?.[isDark ? dark : light] as string | undefined\n if (color) options[key] = color\n }\n\n return options\n}\n\nexport const getClientTheme = (\n theme: Theme,\n clientStyleProfile: ClientStyleProfile,\n clientConfig?: ClientConfig,\n) => {\n const isDark = theme.palette.mode === 'dark'\n const font =\n (clientConfig?.master?.style?.font_name || clientStyleProfile?.system_font) ??\n theme.typography.fontFamily\n\n const generatePalette = (color: string | undefined, defaultColor: PaletteColor) =>\n color\n ? {\n lighter: lighten(color, 0.5),\n light: lighten(color, 0.25),\n main: color,\n dark: darken(color, 0.25),\n darker: darken(color, 0.5),\n }\n : defaultColor\n\n const palette = Object.fromEntries(\n PALETTE_CONFIG.map(({ key, light, dark }) => [\n key,\n generatePalette(\n clientStyleProfile?.[isDark ? dark : light] as string | undefined,\n theme.palette[key],\n ),\n ]),\n )\n\n const typography = Object.fromEntries(\n TYPOGRAPHY_VARIANTS.map((variant) => [\n variant,\n variant === 'fontFamily' ? font : { fontFamily: font },\n ]),\n )\n\n const baseComponents = {\n MuiTabs: {\n styleOverrides: {\n indicator: { backgroundColor: palette.primary.light },\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n switchViewButton: {\n color: palette.primary.lighter,\n '&:hover': { backgroundColor: alpha(palette.primary.light, 0.1) },\n },\n },\n },\n }\n\n const buttonRadius = clientStyleProfile?.button_corner_radius\n const cardRadius = clientStyleProfile?.card_corner_radius\n\n const components = {\n ...baseComponents,\n ...(buttonRadius && {\n MuiButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: `${buttonRadius}px`,\n minWidth: buttonRadius,\n minHeight: buttonRadius,\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: { borderRadius: `${buttonRadius}px`, textTransform: 'none' },\n },\n },\n }),\n ...(cardRadius && {\n MuiCard: {\n styleOverrides: { root: { borderRadius: `${cardRadius}px` } },\n },\n }),\n ...(cardRadius && {\n MuiPaper: {\n styleOverrides: {\n rounded: { borderRadius: `${cardRadius}px` },\n },\n },\n }),\n }\n\n return { typography, palette, components }\n}\n"],"names":["RecurrenceTypes","usePrevious","value","ref","useRef","useEffect","RECURRENCE_COPY","LOADING_STATUS","MultiSegmentDonut","hasGap","segments","size","DEFAULT_DONUT_SIZE","strokeWidth","DEFAULT_STROKE_WIDTH","children","styles","getStyles","radius","halfSize","offset","length","jsxs","jsx","segment","index","css","BombComponent","ErrorTestButtons","globalStore","useGlobalStore","onCaptureException","useCaptureException","shouldExplode","setShouldExplode","React","Stack","Typography","Button","error","TYPOGRAPHY_VARIANTS","PALETTE_CONFIG","getClientPaletteOptions","clientStyleProfile","mode","isDark","options","key","light","dark","color","getClientTheme","theme","clientConfig","font","generatePalette","defaultColor","lighten","darken","palette","typography","variant","baseComponents","alpha","buttonRadius","cardRadius","components"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAKA,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aACAA,EAAAA,EAAA,iBAAiB,CAAA,IAAjB,kBACAA,EAAAA,EAAA,aAAa,CAAA,IAAb,cACAA,EAAAA,EAAA,kBAAkB,CAAA,IAAlB,mBACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,oBAAoB,CAAA,IAApB,qBACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aARUA,IAAAA,KAAA,CAAA,CAAA;ACEL,MAAMC,IAAc,CAACC,MAAe;AACzC,QAAMC,IAAMC,EAAO,IAAI;AACvB,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GACHC,EAAI;AACb,GCNaG,IAAkB;AAAA,EAC7B,EAAE,IAAIN,EAAgB,SAAS,MAAM,oBAAA;AAAA,EACrC,EAAE,IAAIA,E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1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { Account, GlobalErrorHandler } from '..';
2
+ import { Account, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class AccountApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  createAccount: (account: Account) => Promise<any>;
7
7
  deleteAccount: (accountGuid: string) => Promise<any>;
8
8
  getAccounts: () => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { AnalyticsEvent, GlobalErrorHandler } from '..';
2
+ import { AnalyticsEvent, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class AnalyticsApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  initializeAnalyticsSession: (version: string, featureName?: string) => Promise<{
7
7
  analytics_session: any;
8
8
  }>;
@@ -1,7 +1,7 @@
1
1
  import { Fetch } from '../utils';
2
- import { AppData, GlobalErrorHandler } from '..';
2
+ import { AppData, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class AppDataApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getAppData: () => Promise<AppData>;
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { Beat, GlobalErrorHandler } from '..';
2
+ import { Beat, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class BeatApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getBeats: (pageNum?: number, perPage?: number) => Promise<any>;
7
7
  getBeatsWithAssociatedTransaction: (fromDate?: string) => Promise<any>;
8
8
  getOffers: () => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler, Budget, Category } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler, Budget, Category } from '..';
3
3
  export declare class BudgetsApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
7
7
  deleteBudget: (guid: string) => Promise<any>;
8
8
  getBudgets: () => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { Account, Category, GlobalErrorHandler } from '..';
2
+ import { Account, Category, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class CategoryApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  addCategory: (category: Category) => Promise<any>;
7
7
  getCategories: () => Promise<any>;
8
8
  getDateRangeCategoryTotals: (startDate: number, endDate: number, accounts: Account[]) => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class FinstrongApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  calculateHealthScore: () => Promise<any>;
7
7
  getAverageHealthScores: () => Promise<any>;
8
8
  getDebtSpend: () => Promise<any>;
@@ -1,7 +1,7 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class GlobalCopyApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getGlobalCopy: (namespace: string, translationKey: string) => Promise<any>;
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { MonthlyCashFlowProfile, RetirementGoalAccount, GlobalErrorHandler, Goal } from '..';
2
+ import { MonthlyCashFlowProfile, RetirementGoalAccount, GlobalCaptureException, GlobalErrorHandler, Goal } from '..';
3
3
  export declare class GoalApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  addGoal: (goal: Goal) => Promise<any>;
7
7
  addRetirementGoal: (goal: Goal) => Promise<any>;
8
8
  addRetirementGoalAccount: (retirementAccount: RetirementGoalAccount) => Promise<any>;
@@ -1,7 +1,7 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler, Ticket } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler, Ticket } from '..';
3
3
  export declare class HelpApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  createSupportTicket: (ticket: Ticket) => Promise<any>;
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler, Holding } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler, Holding } from '..';
3
3
  export declare class HoldingApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getHoldings: () => Promise<any>;
7
7
  updateHoldings: (holding: Holding) => Promise<any>;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class MerchantApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getMerchants: (searchValues?: string[], guids?: string[], page?: number, perPage?: number) => Promise<any>;
7
7
  getMerchantByGuid: (guid: string) => Promise<any>;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { Notification, GlobalErrorHandler } from '..';
2
+ import { Notification, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class NotificationApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getNotifications: () => Promise<any>;
7
7
  updateNotification: (notification: Notification) => Promise<any>;
8
8
  markAllAsViewed: (channel?: number) => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler, RepeatingTransaction } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler, RepeatingTransaction } from '..';
3
3
  export declare class RepeatingTransactionsApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  addRepeatingTransaction: (repeatingTransaction: RepeatingTransaction) => Promise<any>;
7
7
  getRepeatingTransactions: () => Promise<any>;
8
8
  updateRepeatingTransaction: (repeatingTransaction: RepeatingTransaction) => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { ScheduledPayment, GlobalErrorHandler } from '..';
2
+ import { ScheduledPayment, GlobalCaptureException, GlobalErrorHandler } from '..';
3
3
  export declare class ScheduledPaymentsApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  addScheduledPayment: (scheduledPayment: ScheduledPayment) => Promise<any>;
7
7
  getScheduledPayments: () => Promise<any>;
8
8
  updateScheduledPayment: (scheduledPayment: ScheduledPayment) => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { UserCommunicationProfile, Device, GlobalErrorHandler, NotificationProfile } from '..';
2
+ import { UserCommunicationProfile, Device, GlobalCaptureException, GlobalErrorHandler, NotificationProfile } from '..';
3
3
  export declare class SettingsApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  deleteDevice: (guid: string) => Promise<any>;
7
7
  generateDeviceToken: () => Promise<any>;
8
8
  getDevices: () => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule } from '..';
3
3
  export declare class TransactionApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  addTag: (tag: Tag) => Promise<any>;
7
7
  addTagging: (tagging: Tagging) => Promise<any>;
8
8
  addTransaction: (transaction: Transaction) => Promise<any>;
@@ -1,8 +1,8 @@
1
1
  import { Fetch } from '../utils';
2
- import { GlobalErrorHandler, User, UserProfile } from '..';
2
+ import { GlobalCaptureException, GlobalErrorHandler, User, UserProfile } from '..';
3
3
  export declare class UserApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
6
6
  getUserFeatures: () => Promise<any>;
7
7
  updateUser: (user: User) => Promise<any>;
8
8
  updateUserProfile: (userProfile: UserProfile) => Promise<any>;
@@ -1,109 +1,109 @@
1
- import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-E5WvBXaY.mjs";
2
- import { b as ot, a as nt, d as rt, c as it, A as ct, C as pt, e as At, E as St, M as ut, N as lt, P as Tt, f as yt, g as dt, S as gt } from "../Account-DR7Plrqy.mjs";
3
- import { A as Ct, B as Nt, I as ht, N as ft } from "../Notification-DTNYSd8P.mjs";
4
- import { F as n } from "../GlobalCopyApi-wcnDUzMV.mjs";
5
- import { A as Dt, B as bt, G as It } from "../GlobalCopyApi-wcnDUzMV.mjs";
6
- import { F as Rt, a as Bt, b as Lt, R as Gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
7
- import { G as Ht, M as Pt, T as Ut } from "../GoalsUtil-C9EnLWvC.mjs";
8
- import { L as Ot, V as Ft, b as kt, g as vt } from "../Localization-DnoVyBNK.mjs";
1
+ import { A as m, a as C, b as N, c as h, d as f, B as E, e as D, f as b, g as I, C as M, h as R, i as B, j as L, D as G, F as _, k as H, G as P, l as U, m as x, n as O, o as F, H as k, p as v, q as w, r as W, M as Y, s as $, N as q, t as K, u as j, R as z, v as J, S as Q, w as X, T as Z, x as V, y as tt, U as at, z as st, W as et } from "../UserStore-CL_kIDzt.mjs";
2
+ import { b as nt, a as rt, d as it, c as ct, A as pt, C as At, e as St, E as ut, M as lt, N as Tt, P as yt, f as dt, g as gt, S as mt } from "../Account-DR7Plrqy.mjs";
3
+ import { A as Nt, B as ht, I as ft, N as Et } from "../Notification-DTNYSd8P.mjs";
4
+ import { F as r } from "../GlobalCopyApi-Tz10hezK.mjs";
5
+ import { A as bt, B as It, G as Mt } from "../GlobalCopyApi-Tz10hezK.mjs";
6
+ import { F as Bt, a as Lt, b as Gt, R as _t } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
7
+ import { G as Pt, M as Ut, T as xt } from "../GoalsUtil-C9EnLWvC.mjs";
8
+ import { L as Ft, V as kt, b as vt, g as wt } from "../Localization-DnoVyBNK.mjs";
9
9
  import { A as e } from "../ApiEndpoints-DXwIYNUV.mjs";
10
- import { T as r } from "../TransactionUtils-BphBJBbU.mjs";
11
- import { b as Wt } from "../TransactionUtils-BphBJBbU.mjs";
12
- class T {
10
+ import { T as i } from "../TransactionUtils-BphBJBbU.mjs";
11
+ import { b as Yt } from "../TransactionUtils-BphBJBbU.mjs";
12
+ class y {
13
13
  fetchInstance;
14
- constructor(a, s, o) {
15
- this.fetchInstance = new n(a, s, void 0, o);
14
+ constructor(a, s, o, n) {
15
+ this.fetchInstance = new r(a, s, void 0, o, n);
16
16
  }
17
17
  addScheduledPayment = async (a) => this.fetchInstance.post(e.SCHEDULED_PAYMENTS, {
18
18
  ...a,
19
19
  is_recurring: "true",
20
- transaction_type: r.DEBIT
20
+ transaction_type: i.DEBIT
21
21
  }).then((s) => s.scheduled_payment);
22
22
  getScheduledPayments = async () => this.fetchInstance.get(e.SCHEDULED_PAYMENTS).then((a) => a.scheduled_payments);
23
23
  updateScheduledPayment = async (a) => this.fetchInstance.put(`${e.SCHEDULED_PAYMENTS}/${a.guid}`, a).then((s) => s.scheduled_payment);
24
24
  deleteScheduledPayment = async (a) => this.fetchInstance.delete(`${e.SCHEDULED_PAYMENTS}/${a}`).then((s) => s);
25
25
  }
26
- var i = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.CORRECT = 1] = "CORRECT", t[t.INCORRECT = 2] = "INCORRECT", t))(i || {}), c = /* @__PURE__ */ ((t) => (t.Missed = "Missed", t.Paid = "Paid", t.Upcoming = "Upcoming expense", t.Income = "Income", t))(c || {}), p = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Subscription = 1] = "Subscription", t[t.Bill = 2] = "Bill", t))(p || {}), A = /* @__PURE__ */ ((t) => (t.Desktop = "Desktop", t.Mobile = "Mobile", t))(A || {});
26
+ var c = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.CORRECT = 1] = "CORRECT", t[t.INCORRECT = 2] = "INCORRECT", t))(c || {}), p = /* @__PURE__ */ ((t) => (t.Missed = "Missed", t.Paid = "Paid", t.Upcoming = "Upcoming expense", t.Income = "Income", t))(p || {}), A = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Subscription = 1] = "Subscription", t[t.Bill = 2] = "Bill", t))(A || {}), S = /* @__PURE__ */ ((t) => (t.Desktop = "Desktop", t.Mobile = "Mobile", t))(S || {});
27
27
  export {
28
- g as AccountApi,
29
- ot as AccountIcon,
30
- nt as AccountIconVariants,
31
- Ct as AccountNotificationTypes,
32
- m as AccountStore,
33
- rt as AccountSubType,
34
- it as AccountType,
35
- ct as AccountTypeName,
36
- Dt as AnalyticsApi,
37
- C as AnalyticsStore,
38
- N as AppDataApi,
39
- h as AppDataStore,
40
- f as BannerApi,
41
- bt as BeatApi,
42
- E as BeatStore,
43
- Nt as BudgetNotificationTypes,
44
- D as BudgetsApi,
45
- b as BudgetsStore,
46
- I as CashflowStore,
47
- M as CategoryApi,
48
- R as CategoryStore,
49
- B as ConnectStore,
50
- pt as ConnectionStatus,
51
- At as ConnectionStatusEnums,
52
- L as DebtsStore,
53
- St as ErrorStatuses,
54
- c as ExpenseStatus,
55
- n as Fetch,
56
- G as FinstrongApi,
57
- _ as FinstrongStore,
58
- Rt as Frequency,
59
- It as GlobalCopyApi,
60
- H as GlobalCopyStore,
61
- P as GlobalStore,
62
- U as GlobalUiStore,
63
- x as GoalApi,
64
- O as GoalStore,
65
- Ht as GoalType,
66
- F as HelpApi,
67
- k as HelpStore,
68
- v as HoldingApi,
69
- w as HoldingStore,
70
- ht as InsightNotificationTypes,
71
- Ot as LOCALES,
72
- W as MerchantApi,
73
- Y as MerchantStore,
74
- Pt as MetaType,
75
- ut as MfaStatuses,
76
- $ as NetWorthStore,
77
- lt as NonConnectedStatuses,
78
- q as NotificationApi,
79
- K as NotificationStore,
80
- ft as NotificationTypes,
81
- Tt as ProcessingStatuses,
82
- yt as PropertyType,
83
- dt as PropertyTypeName,
84
- Bt as RecurrenceStatus,
85
- Lt as RecurrenceType,
86
- j as RecurringTransactionsStore,
87
- z as RepeatingTransactionsApi,
88
- Gt as RepeatingType,
89
- p as ScheduledPaymentTypes,
90
- T as ScheduledPaymentsApi,
91
- A as ScreenSize,
92
- J as SettingsApi,
93
- Q as SettingsStore,
94
- gt as StatusName,
95
- Ut as TrackType,
96
- X as TransactionApi,
97
- Wt as TransactionStatus,
98
- Z as TransactionStore,
99
- r as TransactionType,
100
- V as TrendsStore,
101
- tt as UserApi,
102
- at as UserStore,
103
- i as UserVerification,
104
- Ft as VALID_LOCALES,
105
- st as WidgetApi,
106
- kt as buildDynamicCopy,
107
- vt as getLocale
28
+ m as AccountApi,
29
+ nt as AccountIcon,
30
+ rt as AccountIconVariants,
31
+ Nt as AccountNotificationTypes,
32
+ C as AccountStore,
33
+ it as AccountSubType,
34
+ ct as AccountType,
35
+ pt as AccountTypeName,
36
+ bt as AnalyticsApi,
37
+ N as AnalyticsStore,
38
+ h as AppDataApi,
39
+ f as AppDataStore,
40
+ E as BannerApi,
41
+ It as BeatApi,
42
+ D as BeatStore,
43
+ ht as BudgetNotificationTypes,
44
+ b as BudgetsApi,
45
+ I as BudgetsStore,
46
+ M as CashflowStore,
47
+ R as CategoryApi,
48
+ B as CategoryStore,
49
+ L as ConnectStore,
50
+ At as ConnectionStatus,
51
+ St as ConnectionStatusEnums,
52
+ G as DebtsStore,
53
+ ut as ErrorStatuses,
54
+ p as ExpenseStatus,
55
+ r as Fetch,
56
+ _ as FinstrongApi,
57
+ H as FinstrongStore,
58
+ Bt as Frequency,
59
+ Mt as GlobalCopyApi,
60
+ P as GlobalCopyStore,
61
+ U as GlobalStore,
62
+ x as GlobalUiStore,
63
+ O as GoalApi,
64
+ F as GoalStore,
65
+ Pt as GoalType,
66
+ k as HelpApi,
67
+ v as HelpStore,
68
+ w as HoldingApi,
69
+ W as HoldingStore,
70
+ ft as InsightNotificationTypes,
71
+ Ft as LOCALES,
72
+ Y as MerchantApi,
73
+ $ as MerchantStore,
74
+ Ut as MetaType,
75
+ lt as MfaStatuses,
76
+ q as NetWorthStore,
77
+ Tt as NonConnectedStatuses,
78
+ K as NotificationApi,
79
+ j as NotificationStore,
80
+ Et as NotificationTypes,
81
+ yt as ProcessingStatuses,
82
+ dt as PropertyType,
83
+ gt as PropertyTypeName,
84
+ Lt as RecurrenceStatus,
85
+ Gt as RecurrenceType,
86
+ z as RecurringTransactionsStore,
87
+ J as RepeatingTransactionsApi,
88
+ _t as RepeatingType,
89
+ A as ScheduledPaymentTypes,
90
+ y as ScheduledPaymentsApi,
91
+ S as ScreenSize,
92
+ Q as SettingsApi,
93
+ X as SettingsStore,
94
+ mt as StatusName,
95
+ xt as TrackType,
96
+ Z as TransactionApi,
97
+ Yt as TransactionStatus,
98
+ V as TransactionStore,
99
+ i as TransactionType,
100
+ tt as TrendsStore,
101
+ at as UserApi,
102
+ st as UserStore,
103
+ c as UserVerification,
104
+ kt as VALID_LOCALES,
105
+ et as WidgetApi,
106
+ vt as buildDynamicCopy,
107
+ wt as getLocale
108
108
  };
109
109
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/core/api/ScheduledPaymentsApi.ts","../../src/core/types/Beat.ts","../../src/core/types/Expense.ts","../../src/core/types/ScreenSize.tsx"],"sourcesContent":["import { Fetch } from '../utils'\nimport { ApiEndpoints } from '../constants'\nimport { TransactionType } from '..'\nimport type { ScheduledPayment, GlobalErrorHandler } from '..'\n\nexport class ScheduledPaymentsApi {\n fetchInstance: Fetch\n\n constructor(endpoint: string, token: string, onError?: GlobalErrorHandler) {\n this.fetchInstance = new Fetch(endpoint, token, undefined, onError)\n }\n\n addScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .post(ApiEndpoints.SCHEDULED_PAYMENTS, {\n ...scheduledPayment,\n is_recurring: 'true',\n transaction_type: TransactionType.DEBIT,\n })\n .then((data) => data.scheduled_payment)\n }\n\n getScheduledPayments = async () => {\n return this.fetchInstance\n .get(ApiEndpoints.SCHEDULED_PAYMENTS)\n .then((data) => data.scheduled_payments)\n }\n\n updateScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .put(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${scheduledPayment.guid}`, scheduledPayment)\n .then((data) => data.scheduled_payment)\n }\n\n deleteScheduledPayment = async (guid: string) => {\n return this.fetchInstance\n .delete(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${guid}`)\n .then((data) => data)\n }\n}\n","import { Account } from './Account'\nimport { Transaction } from './Transaction'\n\nexport interface Beat {\n account_guids: string[] | []\n active_at?: string | number\n associated_transaction_guid?: string | null\n call_to_action?: string | null\n category_guids?: string[] | []\n created_at?: string | number\n cta_clicked_at?: number | null\n data_series: DataSeries\n description?: string\n digest?: string\n dismissed_at?: number | null\n displayed_at?: string | null\n errors?: any\n guid: string\n has_been_displayed: boolean\n html_description?: string\n html_in_description_cta?: string\n html_micro_call_to_action?: string\n html_micro_description?: string\n html_micro_title?: string\n html_short_title?: string\n html_title: string\n icon_color?: string | null\n icon_type?: number | null\n in_description_cta?: string | null\n is_dismissed: boolean\n is_obsolete: boolean\n is_refreshable: boolean\n is_sampled: boolean\n merchant_guids: string[] | []\n metadata?: string | null\n micro_call_to_action?: string | null\n micro_description?: string | null\n micro_title?: string | null\n payload: any\n primary_account?: Account\n primary_account_guid?: string | null\n primary_category_guid?: string | null\n primary_goal_guid?: string | null\n primary_merchant_guid?: string | null\n primary_scheduled_payment_guid?: string | null\n primary_transaction?: Transaction\n primary_transaction_guid?: string | null\n power_action_completed_at?: string | null\n power_action_has_been_completed?: boolean\n scheduled_payment_guids: string[] | []\n short_title?: string | null\n supporting_action?: string | null\n template: string\n title: string\n transaction_guids: string[] | []\n transactions?: Transaction[]\n user_guid: string\n user_verification: UserVerification\n\n // Added for UI: optional institution info for displaying logos\n institutionGuid?: string | null\n institutionName?: string | null\n}\n\nexport interface DataSeries {\n names?: string[]\n types?: string[]\n data?: any[]\n}\n\nexport enum UserVerification {\n UNKNOWN = 0,\n CORRECT = 1,\n INCORRECT = 2,\n}\n","import type { ScheduledPayment } from './ScheduledPayment'\nimport type { Transaction } from './Transaction'\n\nexport enum ExpenseStatus {\n Missed = 'Missed',\n Paid = 'Paid',\n Upcoming = 'Upcoming expense',\n Income = 'Income',\n}\n\nexport interface Expense extends ScheduledPayment {\n status: ExpenseStatus\n payments: Transaction[]\n transactions: Transaction[]\n}\n\nexport enum ScheduledPaymentTypes {\n Unknown = 0,\n Subscription = 1,\n Bill = 2,\n}\n","export enum ScreenSize {\n Desktop = 'Desktop',\n Mobile = 'Mobile',\n}\n"],"names":["ScheduledPaymentsApi","endpoint","token","onError","Fetch","scheduledPayment","ApiEndpoints","TransactionType","data","guid","UserVerification","ExpenseStatus","ScheduledPaymentTypes","ScreenSize"],"mappings":";;;;;;;;;;;AAKO,MAAMA,EAAqB;AAAA,EAChC;AAAA,EAEA,YAAYC,GAAkBC,GAAeC,GA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ts","../../src/core/types/Beat.ts","../../src/core/types/Expense.ts","../../src/core/types/ScreenSize.tsx"],"sourcesContent":["import { Fetch } from '../utils'\nimport { ApiEndpoints } from '../constants'\nimport { TransactionType } from '..'\nimport type { ScheduledPayment, GlobalCaptureException, GlobalErrorHandler } from '..'\n\nexport class ScheduledPaymentsApi {\n fetchInstance: Fetch\n\n constructor(\n endpoint: string,\n token: string,\n onError?: GlobalErrorHandler,\n onCaptureException?: GlobalCaptureException,\n ) {\n this.fetchInstance = new Fetch(endpoint, token, undefined, onError, onCaptureException)\n }\n\n addScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .post(ApiEndpoints.SCHEDULED_PAYMENTS, {\n ...scheduledPayment,\n is_recurring: 'true',\n transaction_type: TransactionType.DEBIT,\n })\n .then((data) => data.scheduled_payment)\n }\n\n getScheduledPayments = async () => {\n return this.fetchInstance\n .get(ApiEndpoints.SCHEDULED_PAYMENTS)\n .then((data) => data.scheduled_payments)\n }\n\n updateScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .put(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${scheduledPayment.guid}`, scheduledPayment)\n .then((data) => data.scheduled_payment)\n }\n\n deleteScheduledPayment = async (guid: string) => {\n return this.fetchInstance\n .delete(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${guid}`)\n .then((data) => data)\n }\n}\n","import { Account } from './Account'\nimport { Transaction } from './Transaction'\n\nexport interface Beat {\n account_guids: string[] | []\n active_at?: string | number\n associated_transaction_guid?: string | null\n call_to_action?: string | null\n category_guids?: string[] | []\n created_at?: string | number\n cta_clicked_at?: number | null\n data_series: DataSeries\n description?: string\n digest?: string\n dismissed_at?: number | null\n displayed_at?: string | null\n errors?: any\n guid: string\n has_been_displayed: boolean\n html_description?: string\n html_in_description_cta?: string\n html_micro_call_to_action?: string\n html_micro_description?: string\n html_micro_title?: string\n html_short_title?: string\n html_title: string\n icon_color?: string | null\n icon_type?: number | null\n in_description_cta?: string | null\n is_dismissed: boolean\n is_obsolete: boolean\n is_refreshable: boolean\n is_sampled: boolean\n merchant_guids: string[] | []\n metadata?: string | null\n micro_call_to_action?: string | null\n micro_description?: string | null\n micro_title?: string | null\n payload: any\n primary_account?: Account\n primary_account_guid?: string | null\n primary_category_guid?: string | null\n primary_goal_guid?: string | null\n primary_merchant_guid?: string | null\n primary_scheduled_payment_guid?: string | null\n primary_transaction?: Transaction\n primary_transaction_guid?: string | null\n power_action_completed_at?: string | null\n power_action_has_been_completed?: boolean\n scheduled_payment_guids: string[] | []\n short_title?: string | null\n supporting_action?: string | null\n template: string\n title: string\n transaction_guids: string[] | []\n transactions?: Transaction[]\n user_guid: string\n user_verification: UserVerification\n\n // Added for UI: optional institution info for displaying logos\n institutionGuid?: string | null\n institutionName?: string | null\n}\n\nexport interface DataSeries {\n names?: string[]\n types?: string[]\n data?: any[]\n}\n\nexport enum UserVerification {\n UNKNOWN = 0,\n CORRECT = 1,\n INCORRECT = 2,\n}\n","import type { ScheduledPayment } from './ScheduledPayment'\nimport type { Transaction } from './Transaction'\n\nexport enum ExpenseStatus {\n Missed = 'Missed',\n Paid = 'Paid',\n Upcoming = 'Upcoming expense',\n Income = 'Income',\n}\n\nexport interface Expense extends ScheduledPayment {\n status: ExpenseStatus\n payments: Transaction[]\n transactions: Transaction[]\n}\n\nexport enum ScheduledPaymentTypes {\n Unknown = 0,\n Subscription = 1,\n Bill = 2,\n}\n","export enum ScreenSize {\n Desktop = 'Desktop',\n Mobile = 'Mobile',\n}\n"],"names":["ScheduledPaymentsApi","endpoint","token","onError","onCaptureException","Fetch","scheduledPayment","ApiEndpoints","TransactionType","data","guid","UserVerification","ExpenseStatus","ScheduledPaymentTypes","ScreenSize"],"mappings":";;;;;;;;;;;AAKO,MAAMA,EAAqB;AAAA,EAChC;AAAA,EAEA,YACEC,GACAC,GACAC,GACAC,GACA;AACA,SAAK,gBAAgB,IAAIC,EAAMJ,GAAUC,GAAO,QAAWC,GAASC,CAAkB;AAAA,EACxF;AAAA,EAEA,sBAAsB,OAAOE,MACpB,KAAK,cACT,KAAKC,EAAa,oBAAoB;AAAA,IACrC,GAAGD;AAAA,IACH,cAAc;AAAA,IACd,kBAAkBE,EAAgB;AAAA,EAAA,CACnC,EACA,KAAK,CAACC,MAASA,EAAK,iBAAiB;AAAA,EAG1C,uBAAuB,YACd,KAAK,cACT,IAAIF,EAAa,kBAAkB,EACnC,KAAK,CAACE,MAASA,EAAK,kBAAkB;AAAA,EAG3C,yBAAyB,OAAOH,MACvB,KAAK,cACT,IAAI,GAAGC,EAAa,kBAAkB,IAAID,EAAiB,IAAI,IAAIA,CAAgB,EACnF,KAAK,CAACG,MAASA,EAAK,iBAAiB;AAAA,EAG1C,yBAAyB,OAAOC,MACvB,KAAK,cACT,OAAO,GAAGH,EAAa,kBAAkB,IAAIG,CAAI,EAAE,EACnD,KAAK,CAACD,MAASA,CAAI;AAE1B;AC0BO,IAAKE,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aAHUA,IAAAA,KAAA,CAAA,CAAA,GCnEAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,WAAW,oBACXA,EAAA,SAAS,UAJCA,IAAAA,KAAA,CAAA,CAAA,GAaAC,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,OAAO,CAAA,IAAP,QAHUA,IAAAA,KAAA,CAAA,CAAA,GChBAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,5 +1,5 @@
1
1
  import { AccountStore, AnalyticsStore, AppDataStore, BeatStore, BudgetsStore, CashflowStore, CategoryStore, ConnectStore, DebtsStore, FinstrongStore, GlobalCopyStore, GlobalUiStore, GoalStore, HelpStore, HoldingStore, MerchantStore, NetWorthStore, NotificationStore, RecurringTransactionsStore, SettingsStore, TransactionStore, TrendsStore, UserStore } from '../stores';
2
- import { Account, Category, Institution, Member, AppConfig, AppData, Beat, GlobalErrorHandler, MerchantBudget, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
2
+ import { Account, Category, Institution, Member, AppConfig, AppData, Beat, GlobalCaptureException, GlobalErrorHandler, MerchantBudget, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
3
3
  interface LoadDataProps {
4
4
  accounts?: Account[];
5
5
  appData?: AppData;
@@ -22,6 +22,7 @@ export declare class GlobalStore {
22
22
  appConfig: AppConfig;
23
23
  endpoint: string;
24
24
  sessionToken: string;
25
+ onCaptureException?: GlobalCaptureException;
25
26
  onError?: GlobalErrorHandler;
26
27
  onStoreUpdate?: OnStoreUpdate;
27
28
  accountStore: AccountStore;
@@ -47,8 +48,9 @@ export declare class GlobalStore {
47
48
  trendsStore: TrendsStore;
48
49
  userStore: UserStore;
49
50
  globalUiStore: GlobalUiStore;
50
- constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
51
+ constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate, onCaptureException?: GlobalCaptureException);
51
52
  get isInitialized(): boolean;
53
+ captureException: (error: unknown, context?: Record<string, string>) => void;
52
54
  emitUpdate: (change: ObservedUpdate) => void;
53
55
  loadConfigData: () => Promise<void>;
54
56
  loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, merchantBudgets, }?: LoadDataProps) => Promise<void>;
@@ -1,2 +1,3 @@
1
+ export type GlobalCaptureException = (error: unknown, context?: Record<string, string>) => void;
1
2
  export type GlobalErrorHandler = (error: Error, props?: object, errorActionType?: string) => void;
2
3
  export type GlobalEventHandler = (event: string, props?: object) => void;
@@ -15,7 +15,7 @@ export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
15
15
  export { GoalType, MetaType, TrackType } from './Goal';
16
16
  export type { Goal, MonthlyCashFlowProfile, RetirementGoalAccount } from './Goal';
17
17
  export type { Debt } from './Debt';
18
- export type { GlobalErrorHandler, GlobalEventHandler } from './Handlers';
18
+ export type { GlobalCaptureException, GlobalErrorHandler, GlobalEventHandler } from './Handlers';
19
19
  export type { HealthScore, HealthScoreReport, MonthlyHealthScore, MonthlySummaries, SpendingFeeTransaction, AllTransactions, } from './Finstrong';
20
20
  export type { HelpAlertProps, HelpCategory, HelpContentProps, HelpTopic, HelpType, ImageContentProps, InstitutionData, NoImageContentProps, SectionProps, SelectedTopic, Ticket, } from './Help';
21
21
  export type { Institution } from './Institution';
@@ -1,9 +1,10 @@
1
- import { GlobalErrorHandler } from '../types';
1
+ import { GlobalCaptureException, GlobalErrorHandler } from '../types';
2
2
  export declare class Fetch {
3
3
  endpoint: string;
4
4
  headers: Record<string, string>;
5
+ onCaptureException?: GlobalCaptureException;
5
6
  onError?: GlobalErrorHandler;
6
- constructor(endpoint: string, token: string, headers?: Record<string, string>, onError?: GlobalErrorHandler);
7
+ constructor(endpoint: string, token: string, headers?: Record<string, string>, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
7
8
  get: (url: string) => Promise<any>;
8
9
  post: (url: string, data?: any) => Promise<any>;
9
10
  put: (url: string, data: any) => Promise<any>;