@mx-cartographer/experiences 3.1.0-alpha.sms5-await → 3.1.0-alpha.sms5-await3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,45 @@
1
+ ## [3.0.12] - 08-19-2024
2
+
3
+ - **ADDED** - GlobalCopyStore now has isInitialized value
4
+ - **FIXED** - Don't load Greeting component until the Global copy is loaded
5
+
6
+ ## [3.0.11] - 08-16-2024
7
+
8
+ - **ADDED** - Posthog events for `Transactions` components
9
+ - **ADDED** - Posthog events for `SpendingWidget`
10
+
11
+ ## [3.0.10] - 08-16-2024
12
+
13
+ - **UPDATED** - Filter Accounts menu now matches Figma
14
+ - **ADDED** - You can now select or unselect all accounts in Filter Accounts dropdown
15
+ - **REMOVED** - Deleted unused ActionBar component
16
+
17
+ ## [3.0.9] - 08-16-2024
18
+
19
+ - **FIXED** - Category Icons are now positioned correctly in the center of Bubble budget circles in Safari
20
+
21
+ ## [3.0.8] - 08-15-2024
22
+
23
+ - **ADDED** - Posthog events for `Cashflow` components
24
+
25
+ ## [3.0.7] - 08-15-2024
26
+
27
+ - **FIXED** - Issues where Cashflow widget didn't include activities scheduled for today
28
+
29
+ ## [3.0.6] - 08-15-2024
30
+
31
+ - **ADDED** - Posthog events for `AccountDetails` components
32
+
33
+ ## [3.0.5] - 08-15-2024
34
+
35
+ - **FIXED** - Issue where the static date on Cashflow would change when Managing Income/Expenses
36
+ - **FIXED** - Issue where the `To be paid out` amount in the Cashflow header didn't match the Summary or Details
37
+ - **FIXED** - Issue where Adding Income/Expenses from Cashflow would not display any transactions
38
+
39
+ ## [3.0.4] - 08-14-2024
40
+
41
+ - **CHANGED** - Replace `posthog.capture` calls with `onEvent`
42
+
1
43
  ## [3.0.3] - 08-13-2024
2
44
 
3
45
  - **ADDED** - Posthog events to `RecurringActivity` components
@@ -6,6 +6,7 @@ type SelectOption = {
6
6
  icon: React.ReactElement;
7
7
  };
8
8
  export type AccountField = {
9
+ event?: string;
9
10
  label: string;
10
11
  minAmount?: number;
11
12
  options?: SelectOption[];
@@ -1,6 +1,10 @@
1
1
  import { Account, Activity } from '../../common';
2
2
 
3
3
  export declare class UiStore {
4
+ dateRange: {
5
+ start: Date;
6
+ end: Date;
7
+ };
4
8
  isDirty: boolean;
5
9
  nextIncome: Activity | undefined;
6
10
  upcomingExpenses: Activity[];
@@ -0,0 +1,11 @@
1
+ import { Account, Activity } from '../../common';
2
+
3
+ /**
4
+ * Returns activities that match the given account and date range
5
+ * @param account The account
6
+ * @param dateRange The date range
7
+ */
8
+ export declare const activityFilter: (account: Account, dateRange: {
9
+ start: Date;
10
+ end: Date;
11
+ }) => (a: Activity) => boolean;
@@ -3,17 +3,6 @@ import { SxProps } from '@mui/material/styles';
3
3
  import { Account } from '../types';
4
4
  import { CalendarActions } from './daterangeselector/DateRangeSelector';
5
5
 
6
- export declare const accountFilterCopy: {
7
- accountFilterOptionsCopy: {
8
- cancelButton: string;
9
- filterButton: string;
10
- filterButtonAria: string;
11
- zeroStateButton: string;
12
- zeroStateDescription: string;
13
- zeroStateTitle: string;
14
- };
15
- title: string;
16
- };
17
6
  type Action = {
18
7
  label: string;
19
8
  iconName: string;
@@ -24,6 +13,10 @@ interface WidgetContainerProps {
24
13
  actions?: Action[];
25
14
  calendarActions?: CalendarActions;
26
15
  className?: string;
16
+ dateRange?: {
17
+ start: Date;
18
+ end: Date;
19
+ };
27
20
  dateReadonly?: boolean;
28
21
  hasDivider?: boolean;
29
22
  onBackClick?: () => void;
@@ -14,7 +14,6 @@ export interface AccountFilterProps {
14
14
  onConnectAccountClick?: () => void;
15
15
  selectedAccounts: string[];
16
16
  showAccountNumbers: boolean;
17
- showChevron?: boolean;
18
17
  sx?: SxProps;
19
18
  variant?: 'outlined' | 'text';
20
19
  }
@@ -3,9 +3,13 @@ import { Account } from '../../types/Account';
3
3
  import { MappedAccount, MappedAccounts, MappedOptions } from '../../utils/AccountFilter';
4
4
 
5
5
  export type AccountFilterOptionsCopy = {
6
+ accountTypeAccounts: string;
6
7
  cancelButton: string;
7
8
  filterButton: string;
8
9
  filterButtonAria: string;
10
+ selectAllAccounts: string;
11
+ toggleAccountTypeAccounts: string;
12
+ unselectAllAccounts: string;
9
13
  zeroStateButton: string;
10
14
  zeroStateDescription: string;
11
15
  zeroStateTitle: string;
@@ -20,6 +24,7 @@ interface AccountFilterOptionsProps {
20
24
  onConnectAccountClick: () => void;
21
25
  onFilterClick: () => void;
22
26
  selectedOptions: MappedOptions;
27
+ setSelectedOptions: (value: React.SetStateAction<MappedOptions>) => void;
23
28
  handleClose: () => void;
24
29
  showAccountNumbers: boolean;
25
30
  }
@@ -3,7 +3,7 @@ import { GlobalStore } from '..';
3
3
 
4
4
  export interface GlobalStoreContextTypes {
5
5
  children: React.ReactNode;
6
- onEvent: (event: string) => void;
6
+ onEvent: (event: string, props?: object) => void;
7
7
  onPageView: (pageViewEvent: string) => void;
8
8
  globalStore: GlobalStore;
9
9
  }
@@ -13,7 +13,7 @@ export declare const useRecurringActivityStore: () => import('../..').RecurringA
13
13
  export declare const useTransactionStore: () => import('../..').TransactionStore;
14
14
  export declare const useUserStore: () => import('..').UserStore;
15
15
  export declare const useEvent: () => {
16
- onEvent: (event: string) => void;
16
+ onEvent: (event: string, props?: object) => void;
17
17
  };
18
18
  export declare const usePageView: () => {
19
19
  onPageView: (pageViewEvent: string) => void;
@@ -5,6 +5,7 @@ export declare class GlobalCopyStore {
5
5
  copy: GlobalCopy;
6
6
  featureNamespace: string;
7
7
  api: GlobalCopyApi;
8
+ isInitialized: boolean;
8
9
  constructor();
9
10
  initialize: (endpoint: string, token: string) => Promise<void>;
10
11
  getCopy: (namespace: string, translationKey?: string) => Promise<void>;