@tight-embedded/react 1.2.0 → 1.3.1
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.css +542 -263
- package/dist/index.css.gz +0 -0
- package/dist/index.d.ts +55 -12
- package/dist/index.js +1 -1
- package/dist/index.js.gz +0 -0
- package/dist/index.js.map +1 -1
- package/dist/index.js.map.gz +0 -0
- package/package.json +7 -4
package/dist/index.css.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
|
+
export declare function BanksAndIntegrations({ onPlaidLink, hideManualBanks }: BanksAndIntegrationsComponentProps): JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare type BanksAndIntegrationsComponentProps = {
|
|
7
|
+
onPlaidLink?: (eventData: OnPlaidLinkEventData) => void;
|
|
8
|
+
hideManualBanks?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare type BanksAndIntegrationsOptions = {
|
|
12
|
+
integrations?: IntegrationIdentifier[];
|
|
13
|
+
};
|
|
14
|
+
|
|
4
15
|
export declare function BusinessOwnerDashboard(props: BusinessOwnerDashboardProps): JSX.Element;
|
|
5
16
|
|
|
6
17
|
declare type BusinessOwnerDashboardProps = {
|
|
@@ -18,10 +29,27 @@ declare const Environments: {
|
|
|
18
29
|
declare type ExternalOptions = {
|
|
19
30
|
transactionsDashboard?: TransactionsDashboardOptions;
|
|
20
31
|
dataVisualizationColors?: string[];
|
|
32
|
+
banksAndIntegrations?: BanksAndIntegrationsOptions;
|
|
21
33
|
};
|
|
22
34
|
|
|
35
|
+
declare type IntegrationIdentifier = typeof SUPPORTED_INTEGRATION_IDENTIFIERS[number];
|
|
36
|
+
|
|
37
|
+
declare type Nullable<T> = T | null;
|
|
38
|
+
|
|
23
39
|
declare type ObjectKey = string | number | symbol;
|
|
24
40
|
|
|
41
|
+
declare type OnPlaidLinkEventData = {
|
|
42
|
+
eventType: "onPlaidLink";
|
|
43
|
+
message?: string;
|
|
44
|
+
defaultPrevented: boolean;
|
|
45
|
+
data: {
|
|
46
|
+
plaidEvent: PlaidEvent;
|
|
47
|
+
integrationId?: string | undefined;
|
|
48
|
+
apiAccessToken?: string;
|
|
49
|
+
apiErrorCode?: Nullable<string> | undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
|
|
25
53
|
declare type OptionSetter = (options: Partial<ExternalOptions>, replace?: boolean) => void;
|
|
26
54
|
|
|
27
55
|
declare type Period = {
|
|
@@ -29,6 +57,18 @@ declare type Period = {
|
|
|
29
57
|
year: number;
|
|
30
58
|
};
|
|
31
59
|
|
|
60
|
+
declare const PLAID_EVENTS: {
|
|
61
|
+
readonly NEW: "PLAID_LINK_NEW";
|
|
62
|
+
readonly UNLINK_RELINK: "PLAID_LINK_UNLINK_RELINK";
|
|
63
|
+
readonly UPDATE: "PLAID_LINK_UPDATE";
|
|
64
|
+
readonly UNLINK: "PLAID_LINK_UNLINK";
|
|
65
|
+
readonly FAILURE: "PLAID_LINK_FAILURE";
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare type PlaidEvent = ValueOf<typeof PLAID_EVENTS>;
|
|
69
|
+
|
|
70
|
+
declare const SUPPORTED_INTEGRATION_IDENTIFIERS: readonly ["UNIT", "STRIPE", "GUSTO", "SHOPIFY", "SQUARE", "RUTTER", "UBER", "MOOV", "QUALPAY", "MANUAL_ENTRY", "PARTNER_IMPLEMENTATION", "QBO", "XERO", "FRESHBOOKS"];
|
|
71
|
+
|
|
32
72
|
export declare function Tight({ children, environment, accessToken }: TightProps): JSX.Element;
|
|
33
73
|
|
|
34
74
|
declare type TightProps = PropsWithChildren<{
|
|
@@ -36,26 +76,29 @@ declare type TightProps = PropsWithChildren<{
|
|
|
36
76
|
accessToken: string;
|
|
37
77
|
}>;
|
|
38
78
|
|
|
39
|
-
declare
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
readonly AMOUNT: "amount";
|
|
43
|
-
readonly CATEGORY: "category";
|
|
44
|
-
readonly CLASS_SEGMENT: "classSegment";
|
|
45
|
-
readonly REVIEW_STATUS: "reviewStatus";
|
|
46
|
-
readonly COMMENTS: "comments";
|
|
47
|
-
readonly SELECT: "select";
|
|
48
|
-
readonly EXPAND: "expand";
|
|
79
|
+
declare type TransactionDashProps = {
|
|
80
|
+
columns?: TransactionsTableColumnOption[];
|
|
81
|
+
limit?: number;
|
|
49
82
|
};
|
|
50
83
|
|
|
84
|
+
export declare const TransactionsDashboard: (props: TransactionDashProps) => JSX.Element;
|
|
85
|
+
|
|
51
86
|
declare type TransactionsDashboardOptions = {
|
|
52
87
|
columns?: TransactionsTableColumnOption[];
|
|
53
88
|
pageSize?: number;
|
|
54
89
|
};
|
|
55
90
|
|
|
56
|
-
declare type
|
|
91
|
+
declare type TransactionsTableColumnOption = ValueOf<typeof TransactionTableColumns>;
|
|
57
92
|
|
|
58
|
-
declare
|
|
93
|
+
declare const TransactionTableColumns: {
|
|
94
|
+
readonly DATE: "date";
|
|
95
|
+
readonly DESCRIPTION: "description";
|
|
96
|
+
readonly AMOUNT: "amount";
|
|
97
|
+
readonly CATEGORY: "category";
|
|
98
|
+
readonly CLASS_SEGMENT: "classSegment";
|
|
99
|
+
readonly REVIEW_STATUS: "reviewStatus";
|
|
100
|
+
readonly COMMENTS: "comments";
|
|
101
|
+
};
|
|
59
102
|
|
|
60
103
|
/**
|
|
61
104
|
* Set library-wide options for various components.
|