@layerfi/components 0.1.45 → 0.1.47

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
@@ -873,10 +873,9 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
873
873
  removeTransaction: (bt: BankTransaction) => void;
874
874
  showDescriptions?: boolean;
875
875
  showReceiptUploads?: boolean;
876
- hardRefreshPnlOnCategorize?: boolean;
877
876
  stringOverrides?: BankTransactionCTAStringOverrides;
878
877
  }
879
- export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, mode, containerWidth, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, }: BankTransactionListProps) => React.JSX.Element;
878
+ export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, mode, containerWidth, showDescriptions, showReceiptUploads, stringOverrides, }: BankTransactionListProps) => React.JSX.Element;
880
879
  export {};
881
880
 
882
881
  }
@@ -892,12 +891,11 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
892
891
  mode: BankTransactionsMode;
893
892
  showDescriptions: boolean;
894
893
  showReceiptUploads: boolean;
895
- hardRefreshPnlOnCategorize: boolean;
896
894
  removeTransaction: (bt: BankTransaction) => void;
897
895
  containerWidth?: number;
898
896
  stringOverrides?: BankTransactionCTAStringOverrides;
899
897
  };
900
- export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, mode, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, containerWidth, removeTransaction, stringOverrides, }: Props) => React.JSX.Element;
898
+ export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, mode, showDescriptions, showReceiptUploads, containerWidth, removeTransaction, stringOverrides, }: Props) => React.JSX.Element;
901
899
  export {};
902
900
 
903
901
  }
@@ -912,9 +910,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
912
910
  interface BankTransactionMobileFormsProps {
913
911
  purpose: Purpose;
914
912
  bankTransaction: BankTransaction;
915
- hardRefreshPnlOnCategorize?: boolean;
916
913
  }
917
- export const BankTransactionMobileForms: ({ purpose, bankTransaction, hardRefreshPnlOnCategorize }: BankTransactionMobileFormsProps) => React.JSX.Element;
914
+ export const BankTransactionMobileForms: ({ purpose, bankTransaction, }: BankTransactionMobileFormsProps) => React.JSX.Element;
918
915
  export {};
919
916
 
920
917
  }
@@ -927,10 +924,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
927
924
  editable: boolean;
928
925
  removeTransaction: (bt: BankTransaction) => void;
929
926
  initialLoad?: boolean;
930
- hardRefreshPnlOnCategorize?: boolean;
931
927
  mode: BankTransactionsMode;
932
928
  }
933
- export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, mode, hardRefreshPnlOnCategorize, }: BankTransactionMobileListProps) => React.JSX.Element;
929
+ export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, mode, }: BankTransactionMobileListProps) => React.JSX.Element;
934
930
 
935
931
  }
936
932
  declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem' {
@@ -943,15 +939,15 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
943
939
  editable: boolean;
944
940
  removeTransaction: (bt: BankTransaction) => void;
945
941
  initialLoad?: boolean;
946
- hardRefreshPnlOnCategorize?: boolean;
947
942
  mode: BankTransactionsMode;
943
+ isFirstItem?: boolean;
948
944
  }
949
945
  export enum Purpose {
950
946
  business = "business",
951
947
  personal = "personal",
952
948
  more = "more"
953
949
  }
954
- export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, mode, initialLoad, hardRefreshPnlOnCategorize, }: BankTransactionMobileListItemProps) => React.JSX.Element;
950
+ export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, mode, initialLoad, isFirstItem, }: BankTransactionMobileListItemProps) => React.JSX.Element;
955
951
 
956
952
  }
957
953
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessCategories' {
@@ -968,18 +964,16 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
968
964
  import { BankTransaction } from '@layerfi/components/types';
969
965
  interface BusinessFormProps {
970
966
  bankTransaction: BankTransaction;
971
- hardRefreshPnlOnCategorize?: boolean;
972
967
  }
973
- export const BusinessForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: BusinessFormProps) => React.JSX.Element;
968
+ export const BusinessForm: ({ bankTransaction }: BusinessFormProps) => React.JSX.Element;
974
969
  export {};
975
970
 
976
971
  }
977
972
  declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
978
973
  import React from 'react';
979
974
  import { BankTransaction } from '@layerfi/components/types';
980
- export const MatchForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: {
975
+ export const MatchForm: ({ bankTransaction, }: {
981
976
  bankTransaction: BankTransaction;
982
- hardRefreshPnlOnCategorize?: boolean | undefined;
983
977
  }) => React.JSX.Element;
984
978
 
985
979
  }
@@ -988,9 +982,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
988
982
  import { BankTransaction } from '@layerfi/components/types';
989
983
  interface PersonalFormProps {
990
984
  bankTransaction: BankTransaction;
991
- hardRefreshPnlOnCategorize?: boolean;
992
985
  }
993
- export const PersonalForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: PersonalFormProps) => React.JSX.Element;
986
+ export const PersonalForm: ({ bankTransaction }: PersonalFormProps) => React.JSX.Element;
994
987
  export {};
995
988
 
996
989
  }
@@ -999,18 +992,16 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
999
992
  import { BankTransaction } from '@layerfi/components/types';
1000
993
  interface SplitAndMatchFormProps {
1001
994
  bankTransaction: BankTransaction;
1002
- hardRefreshPnlOnCategorize?: boolean;
1003
995
  }
1004
- export const SplitAndMatchForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: SplitAndMatchFormProps) => React.JSX.Element;
996
+ export const SplitAndMatchForm: ({ bankTransaction, }: SplitAndMatchFormProps) => React.JSX.Element;
1005
997
  export {};
1006
998
 
1007
999
  }
1008
1000
  declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
1009
1001
  import React from 'react';
1010
1002
  import { BankTransaction } from '@layerfi/components/types';
1011
- export const SplitForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: {
1003
+ export const SplitForm: ({ bankTransaction, }: {
1012
1004
  bankTransaction: BankTransaction;
1013
- hardRefreshPnlOnCategorize?: boolean | undefined;
1014
1005
  }) => React.JSX.Element;
1015
1006
 
1016
1007
  }
@@ -1072,14 +1063,13 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
1072
1063
  initialLoad?: boolean;
1073
1064
  showDescriptions: boolean;
1074
1065
  showReceiptUploads: boolean;
1075
- hardRefreshPnlOnCategorize: boolean;
1076
1066
  mode: BankTransactionsMode;
1077
1067
  stringOverrides?: BankTransactionCTAStringOverrides;
1078
1068
  };
1079
1069
  export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
1080
1070
  export const extractDescriptionForSplit: (category: Category) => string;
1081
1071
  export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
1082
- export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, }: Props) => React.JSX.Element;
1072
+ export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, stringOverrides, }: Props) => React.JSX.Element;
1083
1073
  export {};
1084
1074
 
1085
1075
  }
@@ -1131,7 +1121,6 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
1131
1121
  mode?: BankTransactionsMode;
1132
1122
  showDescriptions?: boolean;
1133
1123
  showReceiptUploads?: boolean;
1134
- hardRefreshPnlOnCategorize?: boolean;
1135
1124
  monthlyView?: boolean;
1136
1125
  categorizeView?: boolean;
1137
1126
  mobileComponent?: MobileComponentType;
@@ -1238,14 +1227,13 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
1238
1227
  removeTransaction: (bt: BankTransaction) => void;
1239
1228
  showDescriptions?: boolean;
1240
1229
  showReceiptUploads?: boolean;
1241
- hardRefreshPnlOnCategorize?: boolean;
1242
1230
  stringOverrides?: BankTransactionsStringOverrides;
1243
1231
  isSyncing?: boolean;
1244
1232
  page?: number;
1245
1233
  lastPage?: boolean;
1246
1234
  onRefresh?: () => void;
1247
1235
  }
1248
- export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, mode, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
1236
+ export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, mode, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
1249
1237
  export {};
1250
1238
 
1251
1239
  }
@@ -1329,6 +1317,7 @@ declare module '@layerfi/components/components/Button/RetryButton' {
1329
1317
  disabled?: boolean;
1330
1318
  error: string;
1331
1319
  fullWidth?: boolean;
1320
+ iconOnly?: boolean;
1332
1321
  }
1333
1322
  export const RetryButton: ({ className, processing, disabled, error, children, ...props }: RetryButtonProps) => React.JSX.Element;
1334
1323
 
@@ -1784,7 +1773,6 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
1784
1773
  categorized?: boolean;
1785
1774
  showDescriptions: boolean;
1786
1775
  showReceiptUploads: boolean;
1787
- hardRefreshPnlOnCategorize: boolean;
1788
1776
  };
1789
1777
  export type SaveHandle = {
1790
1778
  save: () => void;
@@ -2666,6 +2654,8 @@ declare module '@layerfi/components/components/SkeletonTableLoader/SkeletonTable
2666
2654
  cols: Array<{
2667
2655
  colSpan: number;
2668
2656
  colComponent?: React.ReactNode;
2657
+ trimLastXRows?: number;
2658
+ parts?: number;
2669
2659
  }>;
2670
2660
  height?: number;
2671
2661
  width?: number;
@@ -3753,10 +3743,13 @@ declare module '@layerfi/components/hooks/useDataSync/useDataSync' {
3753
3743
  import { DataModel } from '@layerfi/components/types/general';
3754
3744
  type UseDataSync = () => {
3755
3745
  touch: (model: DataModel) => void;
3756
- read: (model: DataModel) => void;
3746
+ read: (model: DataModel, cacheKey: string) => void;
3757
3747
  syncTimestamps: Partial<Record<DataModel, number>>;
3758
- readTimestamps: Partial<Record<DataModel, number>>;
3759
- hasBeenTouched: (model: DataModel) => boolean;
3748
+ readTimestamps: Partial<Record<string, {
3749
+ t: number;
3750
+ m: DataModel;
3751
+ }>>;
3752
+ hasBeenTouched: (cacheKey: string) => boolean;
3760
3753
  };
3761
3754
  export const useDataSync: UseDataSync;
3762
3755
  export {};
@@ -4874,10 +4867,10 @@ declare module '@layerfi/components/types/layer_context' {
4874
4867
  removeToast: (toast: ToastProps) => void;
4875
4868
  onError?: (error: LayerError) => void;
4876
4869
  touch: (model: DataModel) => void;
4877
- read: (model: DataModel) => void;
4870
+ read: (model: DataModel, cacheKey: string) => void;
4878
4871
  syncTimestamps: Partial<Record<DataModel, number>>;
4879
4872
  readTimestamps: Partial<Record<DataModel, number>>;
4880
- hasBeenTouched: (model: DataModel) => boolean;
4873
+ hasBeenTouched: (cacheKey: string) => boolean;
4881
4874
  };
4882
4875
  export interface ColorHSLConfig {
4883
4876
  h: string;
@@ -5419,11 +5412,10 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
5419
5412
  showDescriptions?: boolean;
5420
5413
  showReceiptUploads?: boolean;
5421
5414
  mode?: BankTransactionsMode;
5422
- hardRefreshPnlOnCategorize?: boolean;
5423
5415
  mobileComponent?: MobileComponentType;
5424
5416
  stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
5425
5417
  }
5426
- export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, hardRefreshPnlOnCategorize, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5418
+ export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
5427
5419
  export {};
5428
5420
 
5429
5421
  }