@layerfi/components 0.1.98 → 0.1.99-alpha.3
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/cjs/index.cjs +2799 -2370
- package/dist/esm/index.mjs +2353 -1925
- package/dist/index.css +220 -152
- package/dist/index.d.ts +165 -52
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,21 +77,26 @@ declare module '@layerfi/components/api/layer/bankTransactions' {
|
|
|
77
77
|
params?: GetBankTransactionsPaginatedParams | undefined;
|
|
78
78
|
} | undefined) => () => Promise<GetBankTransactionsReturn>;
|
|
79
79
|
export const categorizeBankTransaction: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
80
|
-
params?:
|
|
80
|
+
params?: {
|
|
81
|
+
businessId: string;
|
|
82
|
+
bankTransactionId: string;
|
|
83
|
+
} | undefined;
|
|
81
84
|
body?: CategoryUpdate | undefined;
|
|
82
85
|
} | undefined) => Promise<{
|
|
83
86
|
data: BankTransaction;
|
|
84
|
-
errors: unknown;
|
|
85
87
|
}>;
|
|
88
|
+
export type MatchBankTransactionBody = {
|
|
89
|
+
match_id: string;
|
|
90
|
+
type: BankTransactionMatchType;
|
|
91
|
+
};
|
|
86
92
|
export const matchBankTransaction: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
87
|
-
params?:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
type: BankTransactionMatchType;
|
|
93
|
+
params?: {
|
|
94
|
+
businessId: string;
|
|
95
|
+
bankTransactionId: string;
|
|
91
96
|
} | undefined;
|
|
97
|
+
body?: MatchBankTransactionBody | undefined;
|
|
92
98
|
} | undefined) => Promise<{
|
|
93
99
|
data: BankTransactionMatch;
|
|
94
|
-
errors: unknown;
|
|
95
100
|
}>;
|
|
96
101
|
export const getBankTransactionsExcel: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
97
102
|
params?: GetBankTransactionsBaseParams | undefined;
|
|
@@ -345,7 +350,7 @@ declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
|
345
350
|
} | undefined;
|
|
346
351
|
body?: UpdateOpeningBalanceBody | undefined;
|
|
347
352
|
} | undefined) => Promise<never>;
|
|
348
|
-
export const
|
|
353
|
+
export const listExternalAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
349
354
|
params?: {
|
|
350
355
|
businessId: string;
|
|
351
356
|
} | undefined;
|
|
@@ -502,7 +507,7 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
502
507
|
|
|
503
508
|
}
|
|
504
509
|
declare module '@layerfi/components/api/layer/quickbooks' {
|
|
505
|
-
import { StatusOfSyncFromQuickbooks } from '@layerfi/components/types/quickbooks';
|
|
510
|
+
import type { StatusOfQuickbooksConnection, StatusOfSyncFromQuickbooks } from '@layerfi/components/types/quickbooks';
|
|
506
511
|
export const syncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
507
512
|
params?: {
|
|
508
513
|
businessId: string;
|
|
@@ -541,9 +546,7 @@ declare module '@layerfi/components/api/layer/quickbooks' {
|
|
|
541
546
|
businessId: string;
|
|
542
547
|
} | undefined;
|
|
543
548
|
} | undefined) => () => Promise<{
|
|
544
|
-
data:
|
|
545
|
-
is_connected: boolean;
|
|
546
|
-
};
|
|
549
|
+
data: StatusOfQuickbooksConnection;
|
|
547
550
|
}>;
|
|
548
551
|
|
|
549
552
|
}
|
|
@@ -633,23 +636,6 @@ declare module '@layerfi/components/api/layer' {
|
|
|
633
636
|
} | undefined) => () => Promise<{
|
|
634
637
|
data: import("@layerfi/components/types").Business;
|
|
635
638
|
}>;
|
|
636
|
-
categorizeBankTransaction: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
637
|
-
params?: Record<string, string | undefined> | undefined;
|
|
638
|
-
body?: import("@layerfi/components/types").CategoryUpdate | undefined;
|
|
639
|
-
} | undefined) => Promise<{
|
|
640
|
-
data: import("@layerfi/components/types").BankTransaction;
|
|
641
|
-
errors: unknown;
|
|
642
|
-
}>;
|
|
643
|
-
matchBankTransaction: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
644
|
-
params?: Record<string, string | undefined> | undefined;
|
|
645
|
-
body?: {
|
|
646
|
-
match_id: string;
|
|
647
|
-
type: import("@layerfi/components/types/bank_transactions").BankTransactionMatchType;
|
|
648
|
-
} | undefined;
|
|
649
|
-
} | undefined) => Promise<{
|
|
650
|
-
data: import("@layerfi/components/types/bank_transactions").BankTransactionMatch;
|
|
651
|
-
errors: unknown;
|
|
652
|
-
}>;
|
|
653
639
|
createAccount: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
654
640
|
params?: Record<string, string | undefined> | undefined;
|
|
655
641
|
body?: import("@layerfi/components/types").NewAccount | undefined;
|
|
@@ -843,13 +829,6 @@ declare module '@layerfi/components/api/layer' {
|
|
|
843
829
|
data?: import("@layerfi/components/types/general").S3PresignedUrl;
|
|
844
830
|
error?: unknown;
|
|
845
831
|
}>;
|
|
846
|
-
getLinkedAccounts: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
847
|
-
params?: {
|
|
848
|
-
businessId: string;
|
|
849
|
-
} | undefined;
|
|
850
|
-
} | undefined) => () => Promise<{
|
|
851
|
-
data: import("@layerfi/components/types/linked_accounts").LinkedAccounts;
|
|
852
|
-
}>;
|
|
853
832
|
getJournal: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
854
833
|
params?: Record<string, string | undefined> | undefined;
|
|
855
834
|
} | undefined) => () => Promise<{
|
|
@@ -1016,9 +995,7 @@ declare module '@layerfi/components/api/layer' {
|
|
|
1016
995
|
businessId: string;
|
|
1017
996
|
} | undefined;
|
|
1018
997
|
} | undefined) => () => Promise<{
|
|
1019
|
-
data:
|
|
1020
|
-
is_connected: boolean;
|
|
1021
|
-
};
|
|
998
|
+
data: import("@layerfi/components/types/quickbooks").StatusOfQuickbooksConnection;
|
|
1022
999
|
}>;
|
|
1023
1000
|
initQuickbooksOAuth: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
1024
1001
|
params?: {
|
|
@@ -1122,8 +1099,9 @@ declare module '@layerfi/components/components/BadgeLoader/BadgeLoader' {
|
|
|
1122
1099
|
export interface BadgeLoaderProps {
|
|
1123
1100
|
children?: ReactNode;
|
|
1124
1101
|
size?: number;
|
|
1102
|
+
variant?: 'default' | 'info' | 'success' | 'error' | 'warning';
|
|
1125
1103
|
}
|
|
1126
|
-
export const BadgeLoader: ({ children }: BadgeLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
1104
|
+
export const BadgeLoader: ({ children, variant }: BadgeLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
1127
1105
|
|
|
1128
1106
|
}
|
|
1129
1107
|
declare module '@layerfi/components/components/BadgeLoader/index' {
|
|
@@ -2738,6 +2716,33 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
2738
2716
|
export { InputWithBadge } from '@layerfi/components/components/Input/InputWithBadge';
|
|
2739
2717
|
export { MultiSelect } from '@layerfi/components/components/Input/MultiSelect';
|
|
2740
2718
|
|
|
2719
|
+
}
|
|
2720
|
+
declare module '@layerfi/components/components/Integrations/Integrations' {
|
|
2721
|
+
export interface IntegrationsProps {
|
|
2722
|
+
elevated?: boolean;
|
|
2723
|
+
stringOverrides?: {
|
|
2724
|
+
title?: string;
|
|
2725
|
+
};
|
|
2726
|
+
}
|
|
2727
|
+
export const Integrations: (props: IntegrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2728
|
+
export const IntegrationsComponent: ({ elevated, stringOverrides, }: IntegrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2729
|
+
|
|
2730
|
+
}
|
|
2731
|
+
declare module '@layerfi/components/components/Integrations/IntegrationsConnectMenu/IntegrationsConnectMenu' {
|
|
2732
|
+
export const IntegrationsConnectMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
2733
|
+
|
|
2734
|
+
}
|
|
2735
|
+
declare module '@layerfi/components/components/Integrations/IntegrationsContent' {
|
|
2736
|
+
export const IntegrationsContent: () => import("react/jsx-runtime").JSX.Element;
|
|
2737
|
+
|
|
2738
|
+
}
|
|
2739
|
+
declare module '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/IntegrationsQuickbooksItemThumb' {
|
|
2740
|
+
export const IntegrationsQuickbooksItemThumb: () => import("react/jsx-runtime").JSX.Element;
|
|
2741
|
+
|
|
2742
|
+
}
|
|
2743
|
+
declare module '@layerfi/components/components/Integrations/IntegrationsQuickbooksItemThumb/IntegrationsQuickbooksItemThumbFooter' {
|
|
2744
|
+
export const IntegrationsQuickbooksItemThumbFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
2745
|
+
|
|
2741
2746
|
}
|
|
2742
2747
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
2743
2748
|
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
@@ -3473,17 +3478,15 @@ declare module '@layerfi/components/components/ProfitAndLossChart/ChartStateCard
|
|
|
3473
3478
|
|
|
3474
3479
|
}
|
|
3475
3480
|
declare module '@layerfi/components/components/ProfitAndLossChart/Indicator' {
|
|
3476
|
-
import { Props as
|
|
3477
|
-
type
|
|
3478
|
-
animateFrom: number;
|
|
3479
|
-
setAnimateFrom: (x: number) => void;
|
|
3481
|
+
import type { Props as LabelBaseProps } from 'recharts/types/component/Label';
|
|
3482
|
+
type IndicatorProps = Pick<LabelBaseProps, 'className' | 'viewBox'> & {
|
|
3480
3483
|
customCursorSize: {
|
|
3481
3484
|
width: number;
|
|
3482
3485
|
height: number;
|
|
3483
3486
|
};
|
|
3484
3487
|
setCustomCursorSize: (width: number, height: number, x: number) => void;
|
|
3485
3488
|
};
|
|
3486
|
-
export const Indicator: ({ className,
|
|
3489
|
+
export const Indicator: ({ className, customCursorSize, setCustomCursorSize, viewBox, }: IndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3487
3490
|
export {};
|
|
3488
3491
|
|
|
3489
3492
|
}
|
|
@@ -4619,6 +4622,34 @@ declare module '@layerfi/components/components/ui/Checkbox/Checkbox' {
|
|
|
4619
4622
|
export function CheckboxWithTooltip({ tooltip, ...props }: CheckboxWithTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4620
4623
|
export {};
|
|
4621
4624
|
|
|
4625
|
+
}
|
|
4626
|
+
declare module '@layerfi/components/components/ui/DropdownMenu/DropdownMenu' {
|
|
4627
|
+
import React, { PropsWithChildren } from 'react';
|
|
4628
|
+
type DropdownMenuProps = PropsWithChildren<{
|
|
4629
|
+
className?: string;
|
|
4630
|
+
ariaLabel?: string;
|
|
4631
|
+
slots: {
|
|
4632
|
+
Trigger: React.FC;
|
|
4633
|
+
};
|
|
4634
|
+
slotProps?: {
|
|
4635
|
+
Dialog?: {
|
|
4636
|
+
width?: number;
|
|
4637
|
+
};
|
|
4638
|
+
};
|
|
4639
|
+
}>;
|
|
4640
|
+
type MenuItemProps = PropsWithChildren<{
|
|
4641
|
+
isDisabled?: boolean;
|
|
4642
|
+
onClick?: () => void;
|
|
4643
|
+
}>;
|
|
4644
|
+
export const Heading: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
4645
|
+
export const Separator: () => import("react/jsx-runtime").JSX.Element;
|
|
4646
|
+
export const MenuItem: ({ children, onClick, isDisabled }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4647
|
+
export const MenuList: ({ children }: {
|
|
4648
|
+
children: React.ReactNode | React.ReactNode[];
|
|
4649
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
4650
|
+
export const DropdownMenu: ({ children, ariaLabel, slots, slotProps }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
4651
|
+
export {};
|
|
4652
|
+
|
|
4622
4653
|
}
|
|
4623
4654
|
declare module '@layerfi/components/components/ui/Loading/LoadingSpinner' {
|
|
4624
4655
|
import { type LucideProps } from 'lucide-react';
|
|
@@ -4717,6 +4748,7 @@ declare module '@layerfi/components/components/ui/Stack/Stack' {
|
|
|
4717
4748
|
}>;
|
|
4718
4749
|
export function VStack(props: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
4719
4750
|
export function HStack(props: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
4751
|
+
export const Spacer: () => import("react/jsx-runtime").JSX.Element;
|
|
4720
4752
|
|
|
4721
4753
|
}
|
|
4722
4754
|
declare module '@layerfi/components/components/ui/Typography/Heading' {
|
|
@@ -4936,8 +4968,8 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
|
|
|
4936
4968
|
isValidating: boolean;
|
|
4937
4969
|
refetch: () => void;
|
|
4938
4970
|
error: any;
|
|
4939
|
-
categorize: (
|
|
4940
|
-
match: (
|
|
4971
|
+
categorize: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
|
|
4972
|
+
match: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
|
|
4941
4973
|
updateOneLocal: (newBankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
4942
4974
|
shouldHideAfterCategorize: () => boolean;
|
|
4943
4975
|
removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
@@ -4960,8 +4992,8 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
|
|
|
4960
4992
|
isValidating: boolean;
|
|
4961
4993
|
refetch: () => void;
|
|
4962
4994
|
error: any;
|
|
4963
|
-
categorize: (
|
|
4964
|
-
match: (
|
|
4995
|
+
categorize: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], newCategory: import("../../types").CategoryUpdate, notify?: boolean) => Promise<void>;
|
|
4996
|
+
match: (bankTransactionId: import("@layerfi/components/types").BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
|
|
4965
4997
|
updateOneLocal: (newBankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
4966
4998
|
shouldHideAfterCategorize: () => boolean;
|
|
4967
4999
|
removeAfterCategorize: (bankTransaction: import("@layerfi/components/types").BankTransaction) => void;
|
|
@@ -5158,6 +5190,19 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
|
|
|
5158
5190
|
declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/index' {
|
|
5159
5191
|
export { PNLComparisonContext } from '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext';
|
|
5160
5192
|
|
|
5193
|
+
}
|
|
5194
|
+
declare module '@layerfi/components/contexts/QuickbooksContext/QuickbooksContext' {
|
|
5195
|
+
import { useQuickbooks } from '@layerfi/components/hooks/useQuickbooks/index';
|
|
5196
|
+
export type QuickbooksContextType = ReturnType<typeof useQuickbooks>;
|
|
5197
|
+
export const QuickbooksContext: import("react").Context<{
|
|
5198
|
+
linkQuickbooks: () => Promise<string>;
|
|
5199
|
+
unlinkQuickbooks: () => void;
|
|
5200
|
+
syncFromQuickbooks: () => void;
|
|
5201
|
+
isSyncingFromQuickbooks: boolean;
|
|
5202
|
+
quickbooksIsConnected: import("@layerfi/components/types/quickbooks").StatusOfQuickbooksConnection["is_connected"] | undefined;
|
|
5203
|
+
quickbooksLastSyncedAt: import("@layerfi/components/types/quickbooks").StatusOfQuickbooksConnection["last_synced_at"] | undefined;
|
|
5204
|
+
}>;
|
|
5205
|
+
|
|
5161
5206
|
}
|
|
5162
5207
|
declare module '@layerfi/components/contexts/ReceiptsContext/ReceiptsContext' {
|
|
5163
5208
|
import { useReceipts } from '@layerfi/components/hooks/useReceipts/useReceipts';
|
|
@@ -5373,6 +5418,7 @@ declare module '@layerfi/components/hooks/bookkeeping/periods/useBookkeepingYear
|
|
|
5373
5418
|
}
|
|
5374
5419
|
declare module '@layerfi/components/hooks/bookkeeping/useBankAccounts' {
|
|
5375
5420
|
import { BankAccount } from '@layerfi/components/types/linked_accounts';
|
|
5421
|
+
export const BANK_ACCOUNTS_TAG_KEY = "#bank-accounts";
|
|
5376
5422
|
export const requiresNotification: (bankAccount: BankAccount) => boolean;
|
|
5377
5423
|
export const useBankAccounts: () => {
|
|
5378
5424
|
bankAccounts: BankAccount[];
|
|
@@ -5584,8 +5630,8 @@ declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTr
|
|
|
5584
5630
|
isValidating: boolean;
|
|
5585
5631
|
refetch: () => void;
|
|
5586
5632
|
error: any;
|
|
5587
|
-
categorize: (
|
|
5588
|
-
match: (
|
|
5633
|
+
categorize: (bankTransactionId: BankTransaction["id"], newCategory: CategoryUpdate, notify?: boolean) => Promise<void>;
|
|
5634
|
+
match: (bankTransactionId: BankTransaction["id"], suggestedMatchId: string, notify?: boolean) => Promise<void>;
|
|
5589
5635
|
updateOneLocal: (newBankTransaction: BankTransaction) => void;
|
|
5590
5636
|
shouldHideAfterCategorize: () => boolean;
|
|
5591
5637
|
removeAfterCategorize: (bankTransaction: BankTransaction) => void;
|
|
@@ -5600,6 +5646,7 @@ declare module '@layerfi/components/hooks/useBankTransactions/useAugmentedBankTr
|
|
|
5600
5646
|
}
|
|
5601
5647
|
declare module '@layerfi/components/hooks/useBankTransactions/useBankTransactions' {
|
|
5602
5648
|
import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
|
|
5649
|
+
export const BANK_TRANSACTIONS_TAG_KEY = "#bank-transactions";
|
|
5603
5650
|
export type UseBankTransactionsOptions = {
|
|
5604
5651
|
categorized?: boolean;
|
|
5605
5652
|
direction?: 'INFLOW' | 'OUTFLOW';
|
|
@@ -5628,6 +5675,43 @@ declare module '@layerfi/components/hooks/useBankTransactions/useBankTransaction
|
|
|
5628
5675
|
bankTransactionId: BankTransaction['id'];
|
|
5629
5676
|
}): import("swr").SWRResponse<import("../../types/bank_transactions").BankTransactionMetadata, any, any>;
|
|
5630
5677
|
|
|
5678
|
+
}
|
|
5679
|
+
declare module '@layerfi/components/hooks/useBankTransactions/useCategorizeBankTransaction' {
|
|
5680
|
+
import { type GetBankTransactionsReturn } from '@layerfi/components/api/layer/bankTransactions';
|
|
5681
|
+
import type { CategoryUpdate } from '@layerfi/components/types';
|
|
5682
|
+
import type { SWRInfiniteKeyedMutator } from 'swr/infinite';
|
|
5683
|
+
type CategorizeBankTransactionArgs = CategoryUpdate & {
|
|
5684
|
+
bankTransactionId: string;
|
|
5685
|
+
};
|
|
5686
|
+
type UseCategorizeBankTransactionOptions = {
|
|
5687
|
+
mutateBankTransactions: SWRInfiniteKeyedMutator<Array<GetBankTransactionsReturn>>;
|
|
5688
|
+
};
|
|
5689
|
+
export function useCategorizeBankTransaction({ mutateBankTransactions, }: UseCategorizeBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types").BankTransaction, any, () => {
|
|
5690
|
+
accessToken: string;
|
|
5691
|
+
apiUrl: string;
|
|
5692
|
+
businessId: string;
|
|
5693
|
+
tags: string[];
|
|
5694
|
+
} | undefined, CategorizeBankTransactionArgs>;
|
|
5695
|
+
export {};
|
|
5696
|
+
|
|
5697
|
+
}
|
|
5698
|
+
declare module '@layerfi/components/hooks/useBankTransactions/useMatchBankTransaction' {
|
|
5699
|
+
import { type GetBankTransactionsReturn, type MatchBankTransactionBody } from '@layerfi/components/api/layer/bankTransactions';
|
|
5700
|
+
import type { SWRInfiniteKeyedMutator } from 'swr/infinite';
|
|
5701
|
+
type MatchBankTransactionArgs = MatchBankTransactionBody & {
|
|
5702
|
+
bankTransactionId: string;
|
|
5703
|
+
};
|
|
5704
|
+
type UseMatchBankTransactionOptions = {
|
|
5705
|
+
mutateBankTransactions: SWRInfiniteKeyedMutator<Array<GetBankTransactionsReturn>>;
|
|
5706
|
+
};
|
|
5707
|
+
export function useMatchBankTransaction({ mutateBankTransactions, }: UseMatchBankTransactionOptions): import("swr/mutation").SWRMutationResponse<import("../../types/bank_transactions").BankTransactionMatch, any, () => {
|
|
5708
|
+
accessToken: string;
|
|
5709
|
+
apiUrl: string;
|
|
5710
|
+
businessId: string;
|
|
5711
|
+
tags: string[];
|
|
5712
|
+
} | undefined, MatchBankTransactionArgs>;
|
|
5713
|
+
export {};
|
|
5714
|
+
|
|
5631
5715
|
}
|
|
5632
5716
|
declare module '@layerfi/components/hooks/useBankTransactions/useUpdateBankTransactionMetadata' {
|
|
5633
5717
|
import type { Awaitable } from '@layerfi/components/types/utility/promises';
|
|
@@ -5913,6 +5997,11 @@ declare module '@layerfi/components/hooks/useLinkedAccounts/useLinkedAccounts' {
|
|
|
5913
5997
|
export const useLinkedAccounts: UseLinkedAccounts;
|
|
5914
5998
|
export {};
|
|
5915
5999
|
|
|
6000
|
+
}
|
|
6001
|
+
declare module '@layerfi/components/hooks/useLinkedAccounts/useListExternalAccounts' {
|
|
6002
|
+
export const EXTERNAL_ACCOUNTS_TAG_KEY = "#external-accounts";
|
|
6003
|
+
export function useListExternalAccounts(): import("swr").SWRResponse<import("../../types/linked_accounts").LinkedAccount[], any, any>;
|
|
6004
|
+
|
|
5916
6005
|
}
|
|
5917
6006
|
declare module '@layerfi/components/hooks/usePagination/index' {
|
|
5918
6007
|
export { usePagination, DOTS } from '@layerfi/components/hooks/usePagination/usePagination';
|
|
@@ -6132,12 +6221,14 @@ declare module '@layerfi/components/hooks/useQuickbooks/index' {
|
|
|
6132
6221
|
|
|
6133
6222
|
}
|
|
6134
6223
|
declare module '@layerfi/components/hooks/useQuickbooks/useQuickbooks' {
|
|
6224
|
+
import type { StatusOfQuickbooksConnection } from '@layerfi/components/types/quickbooks';
|
|
6135
6225
|
type UseQuickbooks = () => {
|
|
6136
6226
|
linkQuickbooks: () => Promise<string>;
|
|
6137
6227
|
unlinkQuickbooks: () => void;
|
|
6138
6228
|
syncFromQuickbooks: () => void;
|
|
6139
6229
|
isSyncingFromQuickbooks: boolean;
|
|
6140
|
-
|
|
6230
|
+
quickbooksIsConnected: StatusOfQuickbooksConnection['is_connected'] | undefined;
|
|
6231
|
+
quickbooksLastSyncedAt: StatusOfQuickbooksConnection['last_synced_at'] | undefined;
|
|
6141
6232
|
};
|
|
6142
6233
|
export const useQuickbooks: UseQuickbooks;
|
|
6143
6234
|
export {};
|
|
@@ -6327,6 +6418,12 @@ declare module '@layerfi/components/icons/Coffee' {
|
|
|
6327
6418
|
const CoffeeIcon: ({ size, ...props }: IconSvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
6328
6419
|
export default CoffeeIcon;
|
|
6329
6420
|
|
|
6421
|
+
}
|
|
6422
|
+
declare module '@layerfi/components/icons/Cog' {
|
|
6423
|
+
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
6424
|
+
const Cog: ({ size, ...props }: IconSvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
6425
|
+
export default Cog;
|
|
6426
|
+
|
|
6330
6427
|
}
|
|
6331
6428
|
declare module '@layerfi/components/icons/Collapse' {
|
|
6332
6429
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
@@ -6488,6 +6585,12 @@ declare module '@layerfi/components/icons/ProgressIcon' {
|
|
|
6488
6585
|
const ProgressIcon: ({ size, ...props }: IconSvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
6489
6586
|
export default ProgressIcon;
|
|
6490
6587
|
|
|
6588
|
+
}
|
|
6589
|
+
declare module '@layerfi/components/icons/QuickbooksIcon' {
|
|
6590
|
+
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
6591
|
+
const QuickbooksIcon: ({ size, ...props }: IconSvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
6592
|
+
export default QuickbooksIcon;
|
|
6593
|
+
|
|
6491
6594
|
}
|
|
6492
6595
|
declare module '@layerfi/components/icons/RefreshCcw' {
|
|
6493
6596
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
@@ -6579,6 +6682,7 @@ declare module '@layerfi/components/index' {
|
|
|
6579
6682
|
export { Onboarding } from '@layerfi/components/components/Onboarding/index';
|
|
6580
6683
|
export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/index';
|
|
6581
6684
|
export { BankTransactions } from '@layerfi/components/components/BankTransactions/index';
|
|
6685
|
+
export { Integrations } from '@layerfi/components/components/Integrations/Integrations';
|
|
6582
6686
|
export { Quickbooks } from '@layerfi/components/components/Quickbooks/index';
|
|
6583
6687
|
export { ProfitAndLoss } from '@layerfi/components/components/ProfitAndLoss/index';
|
|
6584
6688
|
export { BalanceSheet } from '@layerfi/components/components/BalanceSheet/index';
|
|
@@ -6876,6 +6980,11 @@ declare module '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccou
|
|
|
6876
6980
|
declare module '@layerfi/components/providers/LinkedAccountsProvider/index' {
|
|
6877
6981
|
export { LinkedAccountsProvider } from '@layerfi/components/providers/LinkedAccountsProvider/LinkedAccountsProvider';
|
|
6878
6982
|
|
|
6983
|
+
}
|
|
6984
|
+
declare module '@layerfi/components/providers/QuickbooksContextProvider/QuickbooksContextProvider' {
|
|
6985
|
+
import { type PropsWithChildren } from 'react';
|
|
6986
|
+
export function QuickbooksContextProvider({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6987
|
+
|
|
6879
6988
|
}
|
|
6880
6989
|
declare module '@layerfi/components/providers/ReceiptsProvider/ReceiptsProvider' {
|
|
6881
6990
|
import { ReactNode } from 'react';
|
|
@@ -8002,6 +8111,10 @@ declare module '@layerfi/components/types/profit_and_loss' {
|
|
|
8002
8111
|
|
|
8003
8112
|
}
|
|
8004
8113
|
declare module '@layerfi/components/types/quickbooks' {
|
|
8114
|
+
export type StatusOfQuickbooksConnection = {
|
|
8115
|
+
is_connected: boolean;
|
|
8116
|
+
last_synced_at: string | null;
|
|
8117
|
+
};
|
|
8005
8118
|
export type StatusOfSyncFromQuickbooks = {
|
|
8006
8119
|
is_syncing: boolean;
|
|
8007
8120
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerfi/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.99-alpha.3",
|
|
4
4
|
"description": "Layer React Components",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"stylelint": "^16.19.1",
|
|
70
70
|
"stylelint-config-standard": "^38.0.0",
|
|
71
71
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
72
|
+
"stylelint-order": "^7.0.0",
|
|
72
73
|
"typescript": "^5.8.3",
|
|
73
74
|
"typescript-eslint": "^8.32.0"
|
|
74
75
|
},
|