@layerfi/components 0.1.93 → 0.1.94-alpha

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/dist/index.d.ts CHANGED
@@ -1281,6 +1281,10 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
1281
1281
  export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, showDescriptions, showReceiptUploads, showTooltips, containerWidth, removeTransaction, stringOverrides, }: Props) => import("react/jsx-runtime").JSX.Element;
1282
1282
  export {};
1283
1283
 
1284
+ }
1285
+ declare module '@layerfi/components/components/BankTransactionList/BankTransactionProcessingInfo' {
1286
+ export const BankTransactionProcessingInfo: () => import("react/jsx-runtime").JSX.Element;
1287
+
1284
1288
  }
1285
1289
  declare module '@layerfi/components/components/BankTransactionList/index' {
1286
1290
  export { BankTransactionList } from '@layerfi/components/components/BankTransactionList/BankTransactionList';
@@ -1362,10 +1366,11 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
1362
1366
  }
1363
1367
  declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
1364
1368
  import { BankTransaction } from '@layerfi/components/types';
1365
- export const MatchForm: ({ bankTransaction, showReceiptUploads, showDescriptions, }: {
1369
+ export const MatchForm: ({ bankTransaction, showReceiptUploads, showDescriptions, showCategorization, }: {
1366
1370
  bankTransaction: BankTransaction;
1367
1371
  showReceiptUploads?: boolean;
1368
1372
  showDescriptions?: boolean;
1373
+ showCategorization?: boolean;
1369
1374
  }) => import("react/jsx-runtime").JSX.Element;
1370
1375
 
1371
1376
  }
@@ -1375,8 +1380,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
1375
1380
  bankTransaction: BankTransaction;
1376
1381
  showReceiptUploads?: boolean;
1377
1382
  showDescriptions?: boolean;
1383
+ showCategorization?: boolean;
1378
1384
  }
1379
- export const PersonalForm: ({ bankTransaction, showReceiptUploads, showDescriptions, }: PersonalFormProps) => import("react/jsx-runtime").JSX.Element;
1385
+ export const PersonalForm: ({ bankTransaction, showReceiptUploads, showDescriptions, showCategorization, }: PersonalFormProps) => import("react/jsx-runtime").JSX.Element;
1380
1386
  export {};
1381
1387
 
1382
1388
  }
@@ -1426,40 +1432,6 @@ declare module '@layerfi/components/components/BankTransactionMobileList/constan
1426
1432
  EXPENSES = "PERSONAL_EXPENSES"
1427
1433
  }
1428
1434
 
1429
- }
1430
- declare module '@layerfi/components/components/BankTransactionMobileList/index' {
1431
- export { BankTransactionMobileList } from '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileList';
1432
-
1433
- }
1434
- declare module '@layerfi/components/components/BankTransactionMobileList/useMemoText' {
1435
- import { ReactNode } from 'react';
1436
- import { BankTransaction } from '@layerfi/components/types';
1437
- interface MemoTextProps {
1438
- bankTransaction: BankTransaction;
1439
- isActive?: boolean;
1440
- }
1441
- interface MemoTextProviderProps extends MemoTextProps {
1442
- children: ReactNode;
1443
- }
1444
- export type MemoTextContextType = ReturnType<typeof useMemoText>;
1445
- export const MemoTextContext: import("react").Context<{
1446
- memoText: string | undefined;
1447
- setMemoText: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
1448
- saveMemoText: () => Promise<void>;
1449
- }>;
1450
- export const useMemoTextContext: () => {
1451
- memoText: string | undefined;
1452
- setMemoText: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
1453
- saveMemoText: () => Promise<void>;
1454
- };
1455
- const useMemoText: ({ bankTransaction, isActive }: MemoTextProps) => {
1456
- memoText: string | undefined;
1457
- setMemoText: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
1458
- saveMemoText: () => Promise<void>;
1459
- };
1460
- export const MemoTextProvider: ({ children, bankTransaction, isActive, }: MemoTextProviderProps) => import("react/jsx-runtime").JSX.Element;
1461
- export {};
1462
-
1463
1435
  }
1464
1436
  declare module '@layerfi/components/components/BankTransactionMobileList/utils' {
1465
1437
  import { BankTransaction } from '@layerfi/components/types';
@@ -1560,8 +1532,38 @@ declare module '@layerfi/components/components/BankTransactionRow/SplitTooltipDe
1560
1532
  }) => import("react/jsx-runtime").JSX.Element | undefined;
1561
1533
 
1562
1534
  }
1563
- declare module '@layerfi/components/components/BankTransactionRow/index' {
1564
- export { BankTransactionRow } from '@layerfi/components/components/BankTransactionRow/BankTransactionRow';
1535
+ declare module '@layerfi/components/components/BankTransactions/BankTransactionMemo/BankTransactionMemo' {
1536
+ import { BankTransaction } from '@layerfi/components/types/bank_transactions';
1537
+ export const BankTransactionMemo: ({ bankTransactionId }: {
1538
+ bankTransactionId: BankTransaction["id"];
1539
+ }) => import("react/jsx-runtime").JSX.Element;
1540
+
1541
+ }
1542
+ declare module '@layerfi/components/components/BankTransactions/BankTransactionMemo/useBankTransactionMemo' {
1543
+ import { BankTransaction } from '@layerfi/components/types';
1544
+ interface BankTransactionMemoProps {
1545
+ bankTransactionId: BankTransaction['id'];
1546
+ }
1547
+ export const useBankTransactionMemo: ({ bankTransactionId }: BankTransactionMemoProps) => import("@tanstack/react-form").ReactFormExtendedApi<{
1548
+ memo: string | null | undefined;
1549
+ }, import("@tanstack/react-form").FormValidateOrFn<{
1550
+ memo: string | null | undefined;
1551
+ }> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
1552
+ memo: string | null | undefined;
1553
+ }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
1554
+ memo: string | null | undefined;
1555
+ }> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
1556
+ memo: string | null | undefined;
1557
+ }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
1558
+ memo: string | null | undefined;
1559
+ }> | undefined, import("@tanstack/react-form").FormValidateOrFn<{
1560
+ memo: string | null | undefined;
1561
+ }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
1562
+ memo: string | null | undefined;
1563
+ }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
1564
+ memo: string | null | undefined;
1565
+ }> | undefined, unknown>;
1566
+ export {};
1565
1567
 
1566
1568
  }
1567
1569
  declare module '@layerfi/components/components/BankTransactions/BankTransactions' {
@@ -1688,7 +1690,6 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1688
1690
  editable: boolean;
1689
1691
  categorizeView?: boolean;
1690
1692
  isLoading?: boolean;
1691
- initialLoad?: boolean;
1692
1693
  containerWidth: number;
1693
1694
  removeTransaction: (bt: BankTransaction) => void;
1694
1695
  showDescriptions?: boolean;
@@ -1700,7 +1701,7 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1700
1701
  lastPage?: boolean;
1701
1702
  onRefresh?: () => void;
1702
1703
  }
1703
- export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => import("react/jsx-runtime").JSX.Element;
1704
+ export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => import("react/jsx-runtime").JSX.Element;
1704
1705
  export {};
1705
1706
 
1706
1707
  }
@@ -1713,9 +1714,10 @@ declare module '@layerfi/components/components/BookkeepingStatus/BookkeepingStat
1713
1714
  type BookkeepingStatusProps = {
1714
1715
  monthNumber?: number;
1715
1716
  status?: BookkeepingPeriodStatus;
1717
+ text?: string;
1716
1718
  iconOnly?: boolean;
1717
1719
  };
1718
- export const BookkeepingStatus: ({ status, monthNumber, iconOnly }: BookkeepingStatusProps) => import("react/jsx-runtime").JSX.Element | undefined;
1720
+ export const BookkeepingStatus: ({ status, text, monthNumber, iconOnly }: BookkeepingStatusProps) => import("react/jsx-runtime").JSX.Element | undefined;
1719
1721
  export {};
1720
1722
 
1721
1723
  }
@@ -1750,7 +1752,7 @@ declare module '@layerfi/components/components/BookkeepingStatus/utils' {
1750
1752
  };
1751
1753
  type BookkeepingStatusConfigOptions = {
1752
1754
  status: BookkeepingPeriodStatus;
1753
- monthNumber: number;
1755
+ monthNumber?: number;
1754
1756
  incompleteTasksCount?: number;
1755
1757
  };
1756
1758
  export function getBookkeepingStatusConfig({ status, monthNumber, incompleteTasksCount, }: BookkeepingStatusConfigOptions): InternalStatusConfig | undefined;
@@ -3252,7 +3254,7 @@ declare module '@layerfi/components/components/MatchForm/MatchForm' {
3252
3254
  }
3253
3255
  declare module '@layerfi/components/components/MatchForm/MatchFormMobile' {
3254
3256
  import { MatchFormProps } from '@layerfi/components/components/MatchForm/MatchForm';
3255
- export const MatchFormMobile: ({ classNamePrefix, bankTransaction, selectedMatchId, setSelectedMatchId, matchFormError, }: MatchFormProps) => import("react/jsx-runtime").JSX.Element;
3257
+ export const MatchFormMobile: ({ classNamePrefix, bankTransaction, selectedMatchId, setSelectedMatchId, matchFormError, readOnly, }: MatchFormProps) => import("react/jsx-runtime").JSX.Element;
3256
3258
 
3257
3259
  }
3258
3260
  declare module '@layerfi/components/components/MatchForm/index' {
@@ -4209,8 +4211,9 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
4209
4211
  tasksHeader?: string;
4210
4212
  mobile?: boolean;
4211
4213
  stringOverrides?: TasksStringOverrides;
4214
+ onClickReconnectAccounts?: () => void;
4212
4215
  };
4213
- export function Tasks({ mobile, tasksHeader, stringOverrides, }: TasksProps): import("react/jsx-runtime").JSX.Element;
4216
+ export function Tasks({ mobile, tasksHeader, onClickReconnectAccounts, stringOverrides, }: TasksProps): import("react/jsx-runtime").JSX.Element;
4214
4217
  export {};
4215
4218
 
4216
4219
  }
@@ -4259,7 +4262,11 @@ declare module '@layerfi/components/components/Tasks/TasksMonthSelector' {
4259
4262
 
4260
4263
  }
4261
4264
  declare module '@layerfi/components/components/Tasks/TasksPanelNotification' {
4262
- export const TasksPanelNotification: () => import("react/jsx-runtime").JSX.Element | null;
4265
+ type TasksPanelNotificationProps = {
4266
+ onClickReconnectAccounts?: () => void;
4267
+ };
4268
+ export const TasksPanelNotification: ({ onClickReconnectAccounts, }: TasksPanelNotificationProps) => import("react/jsx-runtime").JSX.Element | null;
4269
+ export {};
4263
4270
 
4264
4271
  }
4265
4272
  declare module '@layerfi/components/components/Tasks/TasksPending' {
@@ -4368,7 +4375,9 @@ declare module '@layerfi/components/components/Tooltip/Tooltip' {
4368
4375
  export const TooltipTrigger: import("react").ForwardRefExoticComponent<Omit<HTMLProps<HTMLElement> & {
4369
4376
  asChild?: boolean;
4370
4377
  }, "ref"> & import("react").RefAttributes<HTMLElement>>;
4371
- type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'>;
4378
+ type TooltipContentProps = Omit<HTMLProps<HTMLDivElement>, 'style'> & {
4379
+ width?: 'md';
4380
+ };
4372
4381
  export const TooltipContent: import("react").ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4373
4382
  export {};
4374
4383
 
@@ -4617,11 +4626,26 @@ declare module '@layerfi/components/components/Wizard/Wizard' {
4617
4626
  export function Wizard({ Header, Footer, onComplete, children, }: WizardProps): import("react/jsx-runtime").JSX.Element;
4618
4627
  export {};
4619
4628
 
4629
+ }
4630
+ declare module '@layerfi/components/components/domain/transactions/actions/TransactionsActions' {
4631
+ import type { PropsWithChildren } from 'react';
4632
+ export function TransactionsActions({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
4633
+
4634
+ }
4635
+ declare module '@layerfi/components/components/domain/transactions/searchField/TransactionsSearchField' {
4636
+ type TransactionsSearchFieldProps = {
4637
+ value: string;
4638
+ slot?: string;
4639
+ onChange: (value: string) => void;
4640
+ };
4641
+ export function TransactionsSearchField({ slot, ...restProps }: TransactionsSearchFieldProps): import("react/jsx-runtime").JSX.Element;
4642
+ export {};
4643
+
4620
4644
  }
4621
4645
  declare module '@layerfi/components/components/ui/Button/Button' {
4622
4646
  import { type ButtonProps } from 'react-aria-components';
4623
4647
  type ButtonVariant = 'solid' | 'ghost';
4624
- type ButtonSize = 'md' | 'lg';
4648
+ type ButtonSize = 'sm' | 'md' | 'lg';
4625
4649
  const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "className"> & {
4626
4650
  icon?: true;
4627
4651
  size?: ButtonSize;
@@ -4684,18 +4708,29 @@ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
4684
4708
  size?: "2xs" | "xs" | "sm" | "lg";
4685
4709
  }, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
4686
4710
  const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<{
4687
- size?: "xs" | "sm" | "md" | "lg";
4711
+ slot?: string | undefined | undefined;
4712
+ } & {
4713
+ align?: "center";
4688
4714
  pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
4689
4715
  pbs?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
4690
- align?: "center";
4716
+ size?: "xs" | "sm" | "md" | "lg";
4691
4717
  variant?: "subtle";
4692
- } & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "slot"> & {
4718
+ } & {
4693
4719
  children?: import("react").ReactNode | undefined;
4694
4720
  } & import("react").RefAttributes<HTMLParagraphElement>, "slot">, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
4695
4721
  function ModalContent({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
4696
4722
  function ModalActions({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
4697
4723
  export { ModalContextBar, ModalHeading, ModalDescription, ModalContent, ModalActions, };
4698
4724
 
4725
+ }
4726
+ declare module '@layerfi/components/components/ui/SearchField/MinimalSearchField' {
4727
+ import { type SearchFieldProps as ReactAriaSearchFieldProps } from 'react-aria-components';
4728
+ type MinimalSearchFieldProps = ReactAriaSearchFieldProps & {
4729
+ placeholder?: string;
4730
+ };
4731
+ export function MinimalSearchField({ placeholder, ...restProps }: MinimalSearchFieldProps): import("react/jsx-runtime").JSX.Element;
4732
+ export {};
4733
+
4699
4734
  }
4700
4735
  declare module '@layerfi/components/components/ui/Stack/Stack' {
4701
4736
  import { type PropsWithChildren } from 'react';
@@ -4706,6 +4741,9 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
4706
4741
  justify?: 'start' | 'center' | 'end';
4707
4742
  pbs?: Spacing;
4708
4743
  pbe?: Spacing;
4744
+ pis?: Spacing;
4745
+ pie?: Spacing;
4746
+ fluid?: boolean;
4709
4747
  slot?: string;
4710
4748
  className?: string;
4711
4749
  }>;
@@ -4734,17 +4772,30 @@ declare module '@layerfi/components/components/ui/Typography/MoneyText' {
4734
4772
 
4735
4773
  }
4736
4774
  declare module '@layerfi/components/components/ui/Typography/Text' {
4775
+ import type { ComponentPropsWithoutRef } from 'react';
4737
4776
  import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
4738
- const P: import("react").ForwardRefExoticComponent<{
4739
- size?: "xs" | "sm" | "md" | "lg";
4777
+ type ParagraphProps = Pick<ComponentPropsWithoutRef<'p'>, 'slot'>;
4778
+ type TextStyleProps = {
4779
+ align?: 'center';
4740
4780
  pbe?: Spacing;
4741
4781
  pbs?: Spacing;
4742
- align?: "center";
4743
- variant?: "subtle";
4744
- } & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "slot"> & {
4782
+ size?: 'xs' | 'sm' | 'md' | 'lg';
4783
+ variant?: 'subtle';
4784
+ };
4785
+ export const P: import("react").ForwardRefExoticComponent<ParagraphProps & TextStyleProps & {
4745
4786
  children?: import("react").ReactNode | undefined;
4746
4787
  } & import("react").RefAttributes<HTMLParagraphElement>>;
4747
- export { P };
4788
+ type SpanProps = Pick<ComponentPropsWithoutRef<'span'>, 'slot'>;
4789
+ export const Span: import("react").ForwardRefExoticComponent<SpanProps & TextStyleProps & {
4790
+ noWrap?: boolean;
4791
+ } & {
4792
+ children?: import("react").ReactNode | undefined;
4793
+ } & import("react").RefAttributes<HTMLSpanElement>>;
4794
+ type LabelProps = Pick<ComponentPropsWithoutRef<'label'>, 'slot'>;
4795
+ export const Label: import("react").ForwardRefExoticComponent<LabelProps & TextStyleProps & {
4796
+ children?: import("react").ReactNode | undefined;
4797
+ } & import("react").RefAttributes<HTMLLabelElement>>;
4798
+ export {};
4748
4799
 
4749
4800
  }
4750
4801
  declare module '@layerfi/components/components/ui/sharedUITypes' {
@@ -4913,7 +4964,6 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
4913
4964
  has_more: boolean;
4914
4965
  };
4915
4966
  } | undefined;
4916
- loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
4917
4967
  isLoading: boolean;
4918
4968
  isValidating: boolean;
4919
4969
  refetch: () => void;
@@ -4938,7 +4988,6 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
4938
4988
  has_more: boolean;
4939
4989
  };
4940
4990
  } | undefined;
4941
- loadingStatus: import("@layerfi/components/types/general").LoadedStatus;
4942
4991
  isLoading: boolean;
4943
4992
  isValidating: boolean;
4944
4993
  refetch: () => void;
@@ -5192,6 +5241,19 @@ declare module '@layerfi/components/contexts/VendorsContext' {
5192
5241
  export const VendorsProvider: React.FC<VendorsProviderProps>;
5193
5242
  export {};
5194
5243
 
5244
+ }
5245
+ declare module '@layerfi/components/hooks/array/usePaginatedList' {
5246
+ export function usePaginatedList<T>(list: ReadonlyArray<T>, pageSize: number): {
5247
+ pageCount: number;
5248
+ pageIndex: number;
5249
+ pageItems: readonly T[];
5250
+ pageSize: number;
5251
+ next: () => void;
5252
+ set: (pageIndex: number) => void;
5253
+ previous: () => void;
5254
+ reset: () => void;
5255
+ };
5256
+
5195
5257
  }
5196
5258
  declare module '@layerfi/components/hooks/balanceSheet/useBalanceSheet' {
5197
5259
  export function useBalanceSheet({ effectiveDate, }: {
@@ -5340,6 +5402,17 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYear
5340
5402
  isLoading: boolean;
5341
5403
  };
5342
5404
 
5405
+ }
5406
+ declare module '@layerfi/components/hooks/bookkeeping/useBankAccounts' {
5407
+ import { BankAccount } from '@layerfi/components/types/linked_accounts';
5408
+ export const requiresNotification: (bankAccount: BankAccount) => boolean;
5409
+ export const useBankAccounts: () => {
5410
+ bankAccounts: BankAccount[];
5411
+ isLoading: boolean;
5412
+ error: any;
5413
+ disconnectedAccountsRequiringNotification: number;
5414
+ };
5415
+
5343
5416
  }
5344
5417
  declare module '@layerfi/components/hooks/bookkeeping/useBookkeepingStatus' {
5345
5418
  const BOOKKEEPING_STATUSES: readonly ["NOT_PURCHASED", "ACTIVE", "ONBOARDING", "BOOKKEEPING_PAUSED"];
@@ -5504,14 +5577,15 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
5504
5577
  id: string;
5505
5578
  name: string;
5506
5579
  }
5507
- export interface BankTransactionFilters {
5580
+ export type BankTransactionFilters = {
5508
5581
  amount?: NumericRangeFilter;
5509
5582
  account?: string[];
5510
5583
  direction?: Direction[];
5511
5584
  categorizationStatus?: DisplayState;
5512
5585
  dateRange?: Partial<DateRange>;
5586
+ descriptionFilter?: string;
5513
5587
  tagFilter?: TagFilterInput;
5514
- }
5588
+ };
5515
5589
  export type UseBankTransactionsParams = {
5516
5590
  scope?: DisplayState;
5517
5591
  monthlyView?: boolean;
@@ -5521,7 +5595,6 @@ declare module '@layerfi/components/hooks/useBankTransactions/types' {
5521
5595
  declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTransactions' {
5522
5596
  import { BankTransaction, CategoryUpdate } from '@layerfi/components/types';
5523
5597
  import { DisplayState } from '@layerfi/components/types/bank_transactions';
5524
- import { LoadedStatus } from '@layerfi/components/types/general';
5525
5598
  import { BankTransactionFilters, UseBankTransactionsParams } from '@layerfi/components/hooks/useBankTransactions/types';
5526
5599
  export const useAugmentedBankTransactions: (params?: UseBankTransactionsParams) => {
5527
5600
  data: BankTransaction[] | undefined;
@@ -5531,7 +5604,6 @@ declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTr
5531
5604
  has_more: boolean;
5532
5605
  };
5533
5606
  } | undefined;
5534
- loadingStatus: LoadedStatus;
5535
5607
  isLoading: boolean;
5536
5608
  isValidating: boolean;
5537
5609
  refetch: () => void;
@@ -5563,6 +5635,31 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
5563
5635
  export function useBankTransactions({ categorized, descriptionFilter, direction, startDate, endDate, tagFilterQueryString, }: UseBankTransactionsOptions): import("swr/infinite").SWRInfiniteResponse<GetBankTransactionsReturn, any>;
5564
5636
  export {};
5565
5637
 
5638
+ }
5639
+ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactionsMetadata' {
5640
+ import { BankTransaction } from '@layerfi/components/types';
5641
+ export const GET_BANK_TRANSACTION_METADATA_TAG_KEY = "#bank-transaction-metadata";
5642
+ export function useBankTransactionMetadata({ bankTransactionId }: {
5643
+ bankTransactionId: BankTransaction['id'];
5644
+ }): import("swr").SWRResponse<import("../../types/bank_transactions").BankTransactionMetadata, any, any>;
5645
+
5646
+ }
5647
+ declare module '@layerfi/components/hooks/useBankTransactions/useUpdateBankTransactionMetadata' {
5648
+ import type { Awaitable } from '@layerfi/components/types/utility/promises';
5649
+ export type UpdateBankTransactionMetadataBody = {
5650
+ memo: string;
5651
+ };
5652
+ export function useUpdateBankTransactionMetadata({ bankTransactionId, onSuccess }: {
5653
+ bankTransactionId: string;
5654
+ onSuccess?: () => Awaitable<unknown>;
5655
+ }): import("swr/mutation").SWRMutationResponse<import("../../types/bank_transactions").BankTransactionMetadata | undefined, any, () => {
5656
+ accessToken: string;
5657
+ apiUrl: string;
5658
+ businessId: string;
5659
+ bankTransactionId: string;
5660
+ tags: string[];
5661
+ } | undefined, UpdateBankTransactionMetadataBody>;
5662
+
5566
5663
  }
5567
5664
  declare module '@layerfi/components/hooks/useBankTransactions/utils' {
5568
5665
  import { BankTransaction, DisplayState } from '@layerfi/components/types';
@@ -5647,6 +5744,10 @@ declare module '@layerfi/components/hooks/useDataSync/useDataSync' {
5647
5744
  export const useDataSync: UseDataSync;
5648
5745
  export {};
5649
5746
 
5747
+ }
5748
+ declare module '@layerfi/components/hooks/useDebounce/useDebounce' {
5749
+ export function useDebounce<F extends (...args: Parameters<F>) => ReturnType<F>>(fn: F): import("lodash").DebouncedFunc<(...args: Parameters<F>) => void>;
5750
+
5650
5751
  }
5651
5752
  declare module '@layerfi/components/hooks/useDrawer/index' {
5652
5753
  export { useDrawer } from '@layerfi/components/hooks/useDrawer/useDrawer';
@@ -6107,6 +6208,15 @@ declare module '@layerfi/components/hooks/useWindowSize/useWindowSize' {
6107
6208
  export function useSizeClass(): UseSizeClass;
6108
6209
  export {};
6109
6210
 
6211
+ }
6212
+ declare module '@layerfi/components/hooks/visibility/useDelayedVisibility' {
6213
+ export function useDelayedVisibility({ delay, initialVisibility, }: {
6214
+ delay: number;
6215
+ initialVisibility?: boolean;
6216
+ }): {
6217
+ isVisible: boolean;
6218
+ };
6219
+
6110
6220
  }
6111
6221
  declare module '@layerfi/components/icons/AlertCircle' {
6112
6222
  import { IconSvgProps } from '@layerfi/components/icons/types';
@@ -7554,9 +7664,9 @@ declare module '@layerfi/components/types/linked_accounts' {
7554
7664
  };
7555
7665
  export type AccountSource = EnumWithUnknownValues<'PLAID' | 'STRIPE'>;
7556
7666
  const _KNOWN_ACCOUNT_NOTIFICATION_TYPES: readonly ["CONFIRM_RELEVANT", "CONFIRM_UNIQUE", "OPENING_BALANCE_MISSING"];
7557
- type KnownAccountNotificationType = typeof _KNOWN_ACCOUNT_NOTIFICATION_TYPES[number];
7667
+ type KnownAccountNotificationType = (typeof _KNOWN_ACCOUNT_NOTIFICATION_TYPES)[number];
7558
7668
  const _KNOWN_ACCOUNT_NOTIFICATION_SCOPES: readonly ["USER"];
7559
- type KnownAccountNotificationScope = typeof _KNOWN_ACCOUNT_NOTIFICATION_SCOPES[number];
7669
+ type KnownAccountNotificationScope = (typeof _KNOWN_ACCOUNT_NOTIFICATION_SCOPES)[number];
7560
7670
  type AccountNotificationType = EnumWithUnknownValues<KnownAccountNotificationType>;
7561
7671
  type AccountNotificationScope = EnumWithUnknownValues<KnownAccountNotificationScope>;
7562
7672
  type AccountNotification = {
@@ -7591,6 +7701,26 @@ declare module '@layerfi/components/types/linked_accounts' {
7591
7701
  type: string;
7592
7702
  external_accounts: Array<LinkedAccount>;
7593
7703
  };
7704
+ export type FinancialAccountInstitution = {
7705
+ id: string;
7706
+ name: string;
7707
+ logo: string | null;
7708
+ };
7709
+ export type BankAccount = {
7710
+ id: string;
7711
+ account_name: string | null;
7712
+ ledger_account_id: string;
7713
+ notes: string | null;
7714
+ institution: FinancialAccountInstitution | null;
7715
+ account_type: AccountType;
7716
+ account_subtype: AccountSubtype;
7717
+ notify_when_disconnected: boolean;
7718
+ is_disconnected: boolean;
7719
+ archived_at: string | null;
7720
+ external_accounts: LinkedAccount[];
7721
+ };
7722
+ export type AccountType = 'DEPOSITORY' | 'CREDIT' | 'LOAN';
7723
+ export type AccountSubtype = '_401A' | '_401K' | '_403B' | '_457B' | '_529' | 'BROKERAGE' | 'CASH_ISA' | 'CRYPTO_EXCHANGE' | 'EDUCATION_SAVINGS_ACCOUNT' | 'EBT' | 'FIXED_ANNUITY' | 'GIC' | 'HEALTH_REIMBURSEMENT_ARRANGEMENT' | 'HSA' | 'ISA' | 'IRA' | 'LIF' | 'LIFE_INSURANCE' | 'LIRA' | 'LRIF' | 'LRSP' | 'NON_CUSTODIAL_WALLET' | 'NON_TAXABLE_BROKERAGE_ACCOUNT' | 'OTHER' | 'OTHER_INSURANCE' | 'OTHER_ANNUITY' | 'PRIF' | 'RDSP' | 'RESP' | 'RLIF' | 'RRIF' | 'PENSION' | 'PROFIT_SHARING_PLAN' | 'RETIREMENT' | 'ROTH' | 'ROTH_401K' | 'RRSP' | 'SEP_IRA' | 'SIMPLE_IRA' | 'SIPP' | 'STOCK_PLAN' | 'THRIFT_SAVINGS_PLAN' | 'TFSA' | 'TRUST' | 'UGMA' | 'UTMA' | 'VARIABLE_ANNUITY' | 'CREDIT_CARD' | 'PAYPAL' | 'CD' | 'CHECKING' | 'SAVINGS' | 'MONEY_MARKET' | 'PREPAID' | 'AUTO' | 'BUSINESS' | 'COMMERCIAL' | 'CONSTRUCTION' | 'CONSUMER' | 'HOME_EQUITY' | 'LOAN' | 'MORTGAGE' | 'OVERDRAFT' | 'LINE_OF_CREDIT' | 'STUDENT' | 'CASH_MANAGEMENT' | 'KEOGH' | 'MUTUAL_FUND' | 'RECURRING' | 'REWARDS' | 'SAFE_DEPOSIT' | 'SARSEP' | 'PAYROLL' | 'NULL' | 'ENUM_UNKNOWN';
7594
7724
  export {};
7595
7725
 
7596
7726
  }
@@ -8270,7 +8400,6 @@ declare module '@layerfi/components/utils/format' {
8270
8400
  }
8271
8401
  declare module '@layerfi/components/utils/helpers' {
8272
8402
  export const range: (start: number, end: number) => number[];
8273
- export const debounce: <F extends (...args: Parameters<F>) => ReturnType<F>>(fnc: F, timeout?: number) => (...args: Parameters<F>) => void;
8274
8403
  export const sleep: (time: number) => Promise<unknown>;
8275
8404
  /**
8276
8405
  * Convert the account name into stable_name
@@ -8481,12 +8610,13 @@ declare module '@layerfi/components/views/BookkeepingOverview/BookkeepingOvervie
8481
8610
  };
8482
8611
  };
8483
8612
  };
8613
+ onClickReconnectAccounts?: () => void;
8484
8614
  /**
8485
8615
  * @deprecated Use `stringOverrides.title` instead
8486
8616
  */
8487
8617
  title?: string;
8488
8618
  }
8489
- export const BookkeepingOverview: ({ title, showTitle, stringOverrides, slotProps, }: BookkeepingOverviewProps) => import("react/jsx-runtime").JSX.Element;
8619
+ export const BookkeepingOverview: ({ title, showTitle, onClickReconnectAccounts, stringOverrides, slotProps, }: BookkeepingOverviewProps) => import("react/jsx-runtime").JSX.Element;
8490
8620
 
8491
8621
  }
8492
8622
  declare module '@layerfi/components/views/BookkeepingOverview/index' {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.93",
3
+ "version": "0.1.94-alpha",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -52,6 +52,7 @@
52
52
  "@stylistic/eslint-plugin": "^2.10.0",
53
53
  "@stylistic/stylelint-plugin": "^3.1.1",
54
54
  "@types/jest": "^29.5.7",
55
+ "@types/lodash": "^4.17.16",
55
56
  "@types/pluralize": "^0.0.33",
56
57
  "@types/react": "^18.2.0",
57
58
  "@types/react-datepicker": "^6.2.0",
@@ -62,6 +63,7 @@
62
63
  "eslint-plugin-react": "^7.37.2",
63
64
  "eslint-plugin-react-hooks": "^5.0.0",
64
65
  "eslint-plugin-unused-imports": "^4.1.4",
66
+ "lodash": "^4.17.21",
65
67
  "npm-dts": "^1.3.12",
66
68
  "react": "^18.2.0",
67
69
  "react-dom": "^18.2.0",
@@ -84,7 +86,7 @@
84
86
  "react-datepicker": "^6.9.0",
85
87
  "react-plaid-link": "^3.5.1",
86
88
  "react-select": "^5.8.0",
87
- "recharts": "^2.10.1",
89
+ "recharts": "^2.15.2",
88
90
  "swr": "^2.2.4",
89
91
  "zustand": "^5.0.1"
90
92
  }