@layerfi/components 0.1.54 → 0.1.55
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/README.md +11 -11
- package/dist/esm/index.js +1523 -1412
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +15 -6
- package/dist/index.js +1867 -1756
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2091,7 +2091,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerA
|
|
|
2091
2091
|
createdByLabel?: string;
|
|
2092
2092
|
processorLabel?: string;
|
|
2093
2093
|
}
|
|
2094
|
-
export const SourceDetailView: ({ source, stringOverrides }: {
|
|
2094
|
+
export const SourceDetailView: ({ source, stringOverrides, }: {
|
|
2095
2095
|
source: LedgerEntrySource;
|
|
2096
2096
|
stringOverrides?: SourceDetailStringOverrides | undefined;
|
|
2097
2097
|
}) => React.JSX.Element | null;
|
|
@@ -2119,7 +2119,7 @@ declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerA
|
|
|
2119
2119
|
};
|
|
2120
2120
|
lineItemsTable?: LineItemsTableStringOverrides;
|
|
2121
2121
|
}
|
|
2122
|
-
export const LedgerAccountEntryDetails: ({ stringOverrides }: {
|
|
2122
|
+
export const LedgerAccountEntryDetails: ({ stringOverrides, }: {
|
|
2123
2123
|
stringOverrides?: LedgerAccountEntryDetailsStringOverrides | undefined;
|
|
2124
2124
|
}) => React.JSX.Element;
|
|
2125
2125
|
export {};
|
|
@@ -4413,6 +4413,12 @@ declare module '@layerfi/components/providers/BankTransactionsProvider/BankTrans
|
|
|
4413
4413
|
declare module '@layerfi/components/providers/BankTransactionsProvider/index' {
|
|
4414
4414
|
export { BankTransactionsProvider } from '@layerfi/components/providers/BankTransactionsProvider/BankTransactionsProvider';
|
|
4415
4415
|
|
|
4416
|
+
}
|
|
4417
|
+
declare module '@layerfi/components/providers/BusinessProvider/BusinessProvider' {
|
|
4418
|
+
import React, { PropsWithChildren } from 'react';
|
|
4419
|
+
import { Props } from '@layerfi/components/providers/LayerProvider/LayerProvider';
|
|
4420
|
+
export const BusinessProvider: ({ appId, appSecret, businessId, children, businessAccessToken, environment, theme, usePlaidSandbox, onError, eventCallbacks, }: PropsWithChildren<Props>) => React.JSX.Element;
|
|
4421
|
+
|
|
4416
4422
|
}
|
|
4417
4423
|
declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
4418
4424
|
import React, { PropsWithChildren } from 'react';
|
|
@@ -4426,6 +4432,7 @@ declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
|
4426
4432
|
export const LayerEnvironment: Record<string, LayerEnvironmentConfig>;
|
|
4427
4433
|
export type EventCallbacks = {
|
|
4428
4434
|
onTransactionCategorized?: (bankTransactionId: string) => void;
|
|
4435
|
+
onTransactionsFetched?: () => void;
|
|
4429
4436
|
};
|
|
4430
4437
|
export type Props = {
|
|
4431
4438
|
businessId: string;
|
|
@@ -4438,7 +4445,7 @@ declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
|
4438
4445
|
onError?: (error: LayerError) => void;
|
|
4439
4446
|
eventCallbacks?: EventCallbacks;
|
|
4440
4447
|
};
|
|
4441
|
-
export const LayerProvider: (
|
|
4448
|
+
export const LayerProvider: (props: PropsWithChildren<Props>) => React.JSX.Element;
|
|
4442
4449
|
export {};
|
|
4443
4450
|
|
|
4444
4451
|
}
|
|
@@ -4857,7 +4864,10 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
4857
4864
|
touch: (model: DataModel) => void;
|
|
4858
4865
|
read: (model: DataModel, cacheKey: string) => void;
|
|
4859
4866
|
syncTimestamps: Partial<Record<DataModel, number>>;
|
|
4860
|
-
readTimestamps: Partial<Record<
|
|
4867
|
+
readTimestamps: Partial<Record<string, {
|
|
4868
|
+
t: number;
|
|
4869
|
+
m: DataModel;
|
|
4870
|
+
}>>;
|
|
4861
4871
|
expireDataCaches: () => void;
|
|
4862
4872
|
hasBeenTouched: (cacheKey: string) => boolean;
|
|
4863
4873
|
};
|
|
@@ -5327,8 +5337,7 @@ declare module '@layerfi/components/utils/format' {
|
|
|
5327
5337
|
*/
|
|
5328
5338
|
export const humanizeEnum: (text: string) => string;
|
|
5329
5339
|
export const convertNumberToCurrency: (amount: number | undefined) => string;
|
|
5330
|
-
export const convertCurrencyToNumber: (amount: string) =>
|
|
5331
|
-
export const CURRENCY_INPUT_PATTERN = "[0-9]+(.[0-9]+)?";
|
|
5340
|
+
export const convertCurrencyToNumber: (amount: string) => string;
|
|
5332
5341
|
|
|
5333
5342
|
}
|
|
5334
5343
|
declare module '@layerfi/components/utils/helpers' {
|