@layerfi/components 0.1.53 → 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/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: ({ appId, appSecret, businessId, children, businessAccessToken, environment, theme, usePlaidSandbox, onError, eventCallbacks, }: PropsWithChildren<Props>) => React.JSX.Element;
4448
+ export const LayerProvider: (props: PropsWithChildren<Props>) => React.JSX.Element;
4442
4449
  export {};
4443
4450
 
4444
4451
  }
@@ -4720,7 +4727,10 @@ declare module '@layerfi/components/types/chart_of_accounts' {
4720
4727
  account_subtype?: string;
4721
4728
  };
4722
4729
  export type EditAccount = {
4723
- stable_name?: string;
4730
+ stable_name?: {
4731
+ type: 'StableName';
4732
+ stable_name: string;
4733
+ };
4724
4734
  name: string;
4725
4735
  normality: Direction;
4726
4736
  parent_id?: {
@@ -4854,7 +4864,10 @@ declare module '@layerfi/components/types/layer_context' {
4854
4864
  touch: (model: DataModel) => void;
4855
4865
  read: (model: DataModel, cacheKey: string) => void;
4856
4866
  syncTimestamps: Partial<Record<DataModel, number>>;
4857
- readTimestamps: Partial<Record<DataModel, number>>;
4867
+ readTimestamps: Partial<Record<string, {
4868
+ t: number;
4869
+ m: DataModel;
4870
+ }>>;
4858
4871
  expireDataCaches: () => void;
4859
4872
  hasBeenTouched: (cacheKey: string) => boolean;
4860
4873
  };
@@ -5324,8 +5337,7 @@ declare module '@layerfi/components/utils/format' {
5324
5337
  */
5325
5338
  export const humanizeEnum: (text: string) => string;
5326
5339
  export const convertNumberToCurrency: (amount: number | undefined) => string;
5327
- export const convertCurrencyToNumber: (amount: string) => number;
5328
- export const CURRENCY_INPUT_PATTERN = "[0-9]+(.[0-9]+)?";
5340
+ export const convertCurrencyToNumber: (amount: string) => string;
5329
5341
 
5330
5342
  }
5331
5343
  declare module '@layerfi/components/utils/helpers' {