@layerfi/components 0.1.25 → 0.1.26

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
@@ -729,7 +729,16 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
729
729
  personal = "personal",
730
730
  more = "more"
731
731
  }
732
- export const BankTransactionMobileListItem: ({ index, bankTransaction, editable, initialLoad, }: BankTransactionMobileListItemProps) => React.JSX.Element;
732
+ export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, initialLoad, }: BankTransactionMobileListItemProps) => React.JSX.Element;
733
+
734
+ }
735
+ declare module '@layerfi/components/components/BankTransactionMobileList/BusinessCategories' {
736
+ import React from 'react';
737
+ import { Option } from '@layerfi/components/components/BankTransactionMobileList/utils';
738
+ export interface BusinessCategoriesProps {
739
+ select: (category: Option) => void;
740
+ }
741
+ export const BusinessCategories: ({ select }: BusinessCategoriesProps) => React.JSX.Element;
733
742
 
734
743
  }
735
744
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
@@ -777,6 +786,23 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitFo
777
786
  bankTransaction: BankTransaction;
778
787
  }) => React.JSX.Element;
779
788
 
789
+ }
790
+ declare module '@layerfi/components/components/BankTransactionMobileList/TransactionToOpenContext' {
791
+ /// <reference types="react" />
792
+ type UseTransactionToOpen = () => {
793
+ transactionIdToOpen?: string;
794
+ setTransactionIdToOpen: (id: string) => void;
795
+ clearTransactionIdToOpen: () => void;
796
+ };
797
+ export const useTransactionToOpen: UseTransactionToOpen;
798
+ export type TransactionToOpenContextType = ReturnType<typeof useTransactionToOpen>;
799
+ export const TransactionToOpenContext: import("react").Context<{
800
+ transactionIdToOpen?: string | undefined;
801
+ setTransactionIdToOpen: (id: string) => void;
802
+ clearTransactionIdToOpen: () => void;
803
+ }>;
804
+ export {};
805
+
780
806
  }
781
807
  declare module '@layerfi/components/components/BankTransactionMobileList/constants' {
782
808
  export const PersonalCategories: string[];
@@ -1314,6 +1340,19 @@ declare module '@layerfi/components/components/DetailsList/index' {
1314
1340
  export { DetailsList } from '@layerfi/components/components/DetailsList/DetailsList';
1315
1341
  export { DetailsListItem } from '@layerfi/components/components/DetailsList/DetailsListItem';
1316
1342
 
1343
+ }
1344
+ declare module '@layerfi/components/components/Drawer/Drawer' {
1345
+ import React from 'react';
1346
+ export const Drawer: ({ isOpen, onClose, children }: {
1347
+ isOpen: boolean;
1348
+ onClose: () => void;
1349
+ children: React.ReactNode;
1350
+ }) => React.JSX.Element;
1351
+
1352
+ }
1353
+ declare module '@layerfi/components/components/Drawer/index' {
1354
+ export { Drawer } from '@layerfi/components/components/Drawer/Drawer';
1355
+
1317
1356
  }
1318
1357
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/APIErrorNotifications' {
1319
1358
  import React from 'react';
@@ -1350,6 +1389,15 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
1350
1389
  declare module '@layerfi/components/components/ExpandedBankTransactionRow/index' {
1351
1390
  export { ExpandedBankTransactionRow } from '@layerfi/components/components/ExpandedBankTransactionRow/ExpandedBankTransactionRow';
1352
1391
 
1392
+ }
1393
+ declare module '@layerfi/components/components/GlobalWidgets/GlobalWidgets' {
1394
+ import React from 'react';
1395
+ export const GlobalWidgets: () => React.JSX.Element;
1396
+
1397
+ }
1398
+ declare module '@layerfi/components/components/GlobalWidgets/index' {
1399
+ export { GlobalWidgets } from '@layerfi/components/components/GlobalWidgets/GlobalWidgets';
1400
+
1353
1401
  }
1354
1402
  declare module '@layerfi/components/components/Hello/Hello' {
1355
1403
  import React from 'react';
@@ -2557,6 +2605,21 @@ declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccou
2557
2605
  declare module '@layerfi/components/contexts/ChartOfAccountsContext/index' {
2558
2606
  export { ChartOfAccountsContext } from '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext';
2559
2607
 
2608
+ }
2609
+ declare module '@layerfi/components/contexts/DrawerContext/DrawerContext' {
2610
+ /// <reference types="react" />
2611
+ import { useDrawer } from '@layerfi/components/hooks/useDrawer/index';
2612
+ export type DrawerContextType = ReturnType<typeof useDrawer>;
2613
+ export const DrawerContext: import("react").Context<{
2614
+ content?: import("react").ReactNode;
2615
+ setContent: (content: import("react").ReactNode) => void;
2616
+ close: () => void;
2617
+ }>;
2618
+
2619
+ }
2620
+ declare module '@layerfi/components/contexts/DrawerContext/index' {
2621
+ export { DrawerContext } from '@layerfi/components/contexts/DrawerContext/DrawerContext';
2622
+
2560
2623
  }
2561
2624
  declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
2562
2625
  /// <reference types="react" />
@@ -2697,14 +2760,16 @@ declare module '@layerfi/components/hooks/useBankTransactions/index' {
2697
2760
  }
2698
2761
  declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
2699
2762
  import { BankTransaction, CategoryUpdate, Metadata } from '@layerfi/components/types';
2763
+ import { LoadedStatus } from '@layerfi/components/types/general';
2700
2764
  type UseBankTransactions = () => {
2701
2765
  data?: BankTransaction[];
2702
2766
  metadata: Metadata;
2767
+ loadingStatus: LoadedStatus;
2703
2768
  isLoading: boolean;
2704
2769
  isValidating: boolean;
2705
2770
  error: unknown;
2706
- categorize: (id: BankTransaction['id'], newCategory: CategoryUpdate) => Promise<void>;
2707
- match: (id: BankTransaction['id'], matchId: BankTransaction['id']) => Promise<void>;
2771
+ categorize: (id: BankTransaction['id'], newCategory: CategoryUpdate, notify?: boolean) => Promise<void>;
2772
+ match: (id: BankTransaction['id'], matchId: BankTransaction['id'], notify?: boolean) => Promise<void>;
2708
2773
  updateOneLocal: (bankTransaction: BankTransaction) => void;
2709
2774
  refetch: () => void;
2710
2775
  };
@@ -2764,6 +2829,21 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
2764
2829
  };
2765
2830
  export {};
2766
2831
 
2832
+ }
2833
+ declare module '@layerfi/components/hooks/useDrawer/index' {
2834
+ export { useDrawer } from '@layerfi/components/hooks/useDrawer/useDrawer';
2835
+
2836
+ }
2837
+ declare module '@layerfi/components/hooks/useDrawer/useDrawer' {
2838
+ import { ReactNode } from 'react';
2839
+ type UseDrawer = () => {
2840
+ content?: ReactNode;
2841
+ setContent: (content: ReactNode) => void;
2842
+ close: () => void;
2843
+ };
2844
+ export const useDrawer: UseDrawer;
2845
+ export {};
2846
+
2767
2847
  }
2768
2848
  declare module '@layerfi/components/hooks/useElementSize/index' {
2769
2849
  export { useElementSize } from '@layerfi/components/hooks/useElementSize/useElementSize';