@layerfi/components 0.1.44 → 0.1.46
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/esm/index.js +572 -562
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +26 -36
- package/dist/index.js +779 -769
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +7 -0
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,7 +939,6 @@ 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;
|
|
948
943
|
}
|
|
949
944
|
export enum Purpose {
|
|
@@ -951,7 +946,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
|
|
|
951
946
|
personal = "personal",
|
|
952
947
|
more = "more"
|
|
953
948
|
}
|
|
954
|
-
export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, mode, initialLoad,
|
|
949
|
+
export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, mode, initialLoad, }: BankTransactionMobileListItemProps) => React.JSX.Element;
|
|
955
950
|
|
|
956
951
|
}
|
|
957
952
|
declare module '@layerfi/components/components/BankTransactionMobileList/BusinessCategories' {
|
|
@@ -968,18 +963,16 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
|
|
|
968
963
|
import { BankTransaction } from '@layerfi/components/types';
|
|
969
964
|
interface BusinessFormProps {
|
|
970
965
|
bankTransaction: BankTransaction;
|
|
971
|
-
hardRefreshPnlOnCategorize?: boolean;
|
|
972
966
|
}
|
|
973
|
-
export const BusinessForm: ({ bankTransaction
|
|
967
|
+
export const BusinessForm: ({ bankTransaction }: BusinessFormProps) => React.JSX.Element;
|
|
974
968
|
export {};
|
|
975
969
|
|
|
976
970
|
}
|
|
977
971
|
declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
|
|
978
972
|
import React from 'react';
|
|
979
973
|
import { BankTransaction } from '@layerfi/components/types';
|
|
980
|
-
export const MatchForm: ({ bankTransaction,
|
|
974
|
+
export const MatchForm: ({ bankTransaction, }: {
|
|
981
975
|
bankTransaction: BankTransaction;
|
|
982
|
-
hardRefreshPnlOnCategorize?: boolean | undefined;
|
|
983
976
|
}) => React.JSX.Element;
|
|
984
977
|
|
|
985
978
|
}
|
|
@@ -988,9 +981,8 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
|
|
|
988
981
|
import { BankTransaction } from '@layerfi/components/types';
|
|
989
982
|
interface PersonalFormProps {
|
|
990
983
|
bankTransaction: BankTransaction;
|
|
991
|
-
hardRefreshPnlOnCategorize?: boolean;
|
|
992
984
|
}
|
|
993
|
-
export const PersonalForm: ({ bankTransaction
|
|
985
|
+
export const PersonalForm: ({ bankTransaction }: PersonalFormProps) => React.JSX.Element;
|
|
994
986
|
export {};
|
|
995
987
|
|
|
996
988
|
}
|
|
@@ -999,18 +991,16 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
|
|
|
999
991
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1000
992
|
interface SplitAndMatchFormProps {
|
|
1001
993
|
bankTransaction: BankTransaction;
|
|
1002
|
-
hardRefreshPnlOnCategorize?: boolean;
|
|
1003
994
|
}
|
|
1004
|
-
export const SplitAndMatchForm: ({ bankTransaction,
|
|
995
|
+
export const SplitAndMatchForm: ({ bankTransaction, }: SplitAndMatchFormProps) => React.JSX.Element;
|
|
1005
996
|
export {};
|
|
1006
997
|
|
|
1007
998
|
}
|
|
1008
999
|
declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
|
|
1009
1000
|
import React from 'react';
|
|
1010
1001
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1011
|
-
export const SplitForm: ({ bankTransaction,
|
|
1002
|
+
export const SplitForm: ({ bankTransaction, }: {
|
|
1012
1003
|
bankTransaction: BankTransaction;
|
|
1013
|
-
hardRefreshPnlOnCategorize?: boolean | undefined;
|
|
1014
1004
|
}) => React.JSX.Element;
|
|
1015
1005
|
|
|
1016
1006
|
}
|
|
@@ -1072,14 +1062,13 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
|
|
|
1072
1062
|
initialLoad?: boolean;
|
|
1073
1063
|
showDescriptions: boolean;
|
|
1074
1064
|
showReceiptUploads: boolean;
|
|
1075
|
-
hardRefreshPnlOnCategorize: boolean;
|
|
1076
1065
|
mode: BankTransactionsMode;
|
|
1077
1066
|
stringOverrides?: BankTransactionCTAStringOverrides;
|
|
1078
1067
|
};
|
|
1079
1068
|
export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
|
|
1080
1069
|
export const extractDescriptionForSplit: (category: Category) => string;
|
|
1081
1070
|
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,
|
|
1071
|
+
export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, mode, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, stringOverrides, }: Props) => React.JSX.Element;
|
|
1083
1072
|
export {};
|
|
1084
1073
|
|
|
1085
1074
|
}
|
|
@@ -1131,7 +1120,6 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
|
|
|
1131
1120
|
mode?: BankTransactionsMode;
|
|
1132
1121
|
showDescriptions?: boolean;
|
|
1133
1122
|
showReceiptUploads?: boolean;
|
|
1134
|
-
hardRefreshPnlOnCategorize?: boolean;
|
|
1135
1123
|
monthlyView?: boolean;
|
|
1136
1124
|
categorizeView?: boolean;
|
|
1137
1125
|
mobileComponent?: MobileComponentType;
|
|
@@ -1238,14 +1226,13 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
|
|
|
1238
1226
|
removeTransaction: (bt: BankTransaction) => void;
|
|
1239
1227
|
showDescriptions?: boolean;
|
|
1240
1228
|
showReceiptUploads?: boolean;
|
|
1241
|
-
hardRefreshPnlOnCategorize?: boolean;
|
|
1242
1229
|
stringOverrides?: BankTransactionsStringOverrides;
|
|
1243
1230
|
isSyncing?: boolean;
|
|
1244
1231
|
page?: number;
|
|
1245
1232
|
lastPage?: boolean;
|
|
1246
1233
|
onRefresh?: () => void;
|
|
1247
1234
|
}
|
|
1248
|
-
export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, mode, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads,
|
|
1235
|
+
export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, mode, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
|
|
1249
1236
|
export {};
|
|
1250
1237
|
|
|
1251
1238
|
}
|
|
@@ -1784,7 +1771,6 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
|
|
|
1784
1771
|
categorized?: boolean;
|
|
1785
1772
|
showDescriptions: boolean;
|
|
1786
1773
|
showReceiptUploads: boolean;
|
|
1787
|
-
hardRefreshPnlOnCategorize: boolean;
|
|
1788
1774
|
};
|
|
1789
1775
|
export type SaveHandle = {
|
|
1790
1776
|
save: () => void;
|
|
@@ -2666,6 +2652,8 @@ declare module '@layerfi/components/components/SkeletonTableLoader/SkeletonTable
|
|
|
2666
2652
|
cols: Array<{
|
|
2667
2653
|
colSpan: number;
|
|
2668
2654
|
colComponent?: React.ReactNode;
|
|
2655
|
+
trimLastXRows?: number;
|
|
2656
|
+
parts?: number;
|
|
2669
2657
|
}>;
|
|
2670
2658
|
height?: number;
|
|
2671
2659
|
width?: number;
|
|
@@ -3753,10 +3741,13 @@ declare module '@layerfi/components/hooks/useDataSync/useDataSync' {
|
|
|
3753
3741
|
import { DataModel } from '@layerfi/components/types/general';
|
|
3754
3742
|
type UseDataSync = () => {
|
|
3755
3743
|
touch: (model: DataModel) => void;
|
|
3756
|
-
read: (model: DataModel) => void;
|
|
3744
|
+
read: (model: DataModel, cacheKey: string) => void;
|
|
3757
3745
|
syncTimestamps: Partial<Record<DataModel, number>>;
|
|
3758
|
-
readTimestamps: Partial<Record<
|
|
3759
|
-
|
|
3746
|
+
readTimestamps: Partial<Record<string, {
|
|
3747
|
+
t: number;
|
|
3748
|
+
m: DataModel;
|
|
3749
|
+
}>>;
|
|
3750
|
+
hasBeenTouched: (cacheKey: string) => boolean;
|
|
3760
3751
|
};
|
|
3761
3752
|
export const useDataSync: UseDataSync;
|
|
3762
3753
|
export {};
|
|
@@ -4521,7 +4512,7 @@ declare module '@layerfi/components/types/balance_sheet' {
|
|
|
4521
4512
|
}
|
|
4522
4513
|
declare module '@layerfi/components/types/bank_transactions' {
|
|
4523
4514
|
import { Categorization, CategorizationStatus, Category } from '@layerfi/components/types/categories';
|
|
4524
|
-
import { S3PresignedUrl } from
|
|
4515
|
+
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
4525
4516
|
export enum Direction {
|
|
4526
4517
|
CREDIT = "CREDIT",
|
|
4527
4518
|
DEBIT = "DEBIT"
|
|
@@ -4550,7 +4541,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
4550
4541
|
counterparty_name: string;
|
|
4551
4542
|
category: Category;
|
|
4552
4543
|
categorization_status: CategorizationStatus;
|
|
4553
|
-
categorization_flow: Categorization;
|
|
4544
|
+
categorization_flow: Categorization | null;
|
|
4554
4545
|
categorization_method: string;
|
|
4555
4546
|
error?: string;
|
|
4556
4547
|
processing?: boolean;
|
|
@@ -4676,7 +4667,7 @@ declare module '@layerfi/components/types/categories' {
|
|
|
4676
4667
|
}[];
|
|
4677
4668
|
};
|
|
4678
4669
|
export type CategoryUpdate = SingleCategoryUpdate | SplitCategoryUpdate;
|
|
4679
|
-
export function hasSuggestions(categorization: Categorization): categorization is SuggestedCategorization;
|
|
4670
|
+
export function hasSuggestions(categorization: Categorization | null): categorization is SuggestedCategorization;
|
|
4680
4671
|
|
|
4681
4672
|
}
|
|
4682
4673
|
declare module '@layerfi/components/types/chart_of_accounts' {
|
|
@@ -4874,10 +4865,10 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
4874
4865
|
removeToast: (toast: ToastProps) => void;
|
|
4875
4866
|
onError?: (error: LayerError) => void;
|
|
4876
4867
|
touch: (model: DataModel) => void;
|
|
4877
|
-
read: (model: DataModel) => void;
|
|
4868
|
+
read: (model: DataModel, cacheKey: string) => void;
|
|
4878
4869
|
syncTimestamps: Partial<Record<DataModel, number>>;
|
|
4879
4870
|
readTimestamps: Partial<Record<DataModel, number>>;
|
|
4880
|
-
hasBeenTouched: (
|
|
4871
|
+
hasBeenTouched: (cacheKey: string) => boolean;
|
|
4881
4872
|
};
|
|
4882
4873
|
export interface ColorHSLConfig {
|
|
4883
4874
|
h: string;
|
|
@@ -5419,11 +5410,10 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
|
|
|
5419
5410
|
showDescriptions?: boolean;
|
|
5420
5411
|
showReceiptUploads?: boolean;
|
|
5421
5412
|
mode?: BankTransactionsMode;
|
|
5422
|
-
hardRefreshPnlOnCategorize?: boolean;
|
|
5423
5413
|
mobileComponent?: MobileComponentType;
|
|
5424
5414
|
stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
|
|
5425
5415
|
}
|
|
5426
|
-
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode,
|
|
5416
|
+
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, mode, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
5427
5417
|
export {};
|
|
5428
5418
|
|
|
5429
5419
|
}
|