@tight-embedded/react 6.7.1 → 6.9.0
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 +677 -439
- package/dist/index.css.gz +0 -0
- package/dist/index.d.ts +35 -5
- package/dist/index.js +1 -2
- 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 +14 -11
package/dist/index.css.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { EventRegistration } from './types/events.ts';
|
|
2
3
|
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import { PlaidLinkEvent } from './types/events.ts';
|
|
3
5
|
import { PropsWithChildren } from 'react';
|
|
6
|
+
import { TightEvent } from './types/events.ts';
|
|
7
|
+
import { TightEventListener } from './types/events.ts';
|
|
8
|
+
import { TightEvents } from './types/events.ts';
|
|
9
|
+
import { UseEmbeddedEventListenersResult } from './types/events.ts';
|
|
4
10
|
|
|
5
11
|
/**
|
|
6
12
|
* A valid anchor target string across all pages that define anchor sections.
|
|
@@ -71,7 +77,7 @@ declare type BankTransactionType = "EXPENSE" | "REVENUE" | "TRANSFER_IN" | "TRAN
|
|
|
71
77
|
*
|
|
72
78
|
* @see NavState
|
|
73
79
|
*/
|
|
74
|
-
export declare type BasePage = "FinancialOverview";
|
|
80
|
+
export declare type BasePage = "FinancialOverview" | "TransactionsDashboard" | "BanksAndIntegrations" | "ExpenseDashboard" | "IncomeDashboard" | "ReportDashboard" | "GeneralLedger";
|
|
75
81
|
|
|
76
82
|
/**
|
|
77
83
|
* A standalone drawer for rendering a conversation that is not attached to an entity.
|
|
@@ -105,6 +111,7 @@ declare type DrawerProps = {
|
|
|
105
111
|
RevenueFilterList: EmptyObject;
|
|
106
112
|
ExpensesFilterList: EmptyObject;
|
|
107
113
|
TransactionSettingsDrawer: EmptyObject;
|
|
114
|
+
NavMenu: EmptyObject;
|
|
108
115
|
};
|
|
109
116
|
|
|
110
117
|
declare type DrawerRouteNames = keyof DrawerProps;
|
|
@@ -118,6 +125,8 @@ declare const Environments: {
|
|
|
118
125
|
readonly SANDBOX: "SANDBOX";
|
|
119
126
|
};
|
|
120
127
|
|
|
128
|
+
export { EventRegistration }
|
|
129
|
+
|
|
121
130
|
export declare const ExpenseDashboard: (props: ExpenseDashboardProps) => JSX.Element;
|
|
122
131
|
|
|
123
132
|
declare type ExpenseDashboardProps = {
|
|
@@ -287,6 +296,8 @@ declare const PLAID_EVENTS: {
|
|
|
287
296
|
|
|
288
297
|
declare type PlaidEvent = ValueOf<typeof PLAID_EVENTS>;
|
|
289
298
|
|
|
299
|
+
export { PlaidLinkEvent }
|
|
300
|
+
|
|
290
301
|
export declare function ReportDashboard(): JSX.Element;
|
|
291
302
|
|
|
292
303
|
declare const SUPPORTED_INTEGRATION_IDENTIFIERS: readonly ["UNIT", "STRIPE", "GUSTO", "SHOPIFY", "SQUARE", "RUTTER", "UBER", "MOOV", "QUALPAY", "MANUAL_ENTRY", "PARTNER_IMPLEMENTATION", "QBO", "XERO", "FRESHBOOKS"];
|
|
@@ -296,9 +307,10 @@ export declare function Tight({ children, environment, accessToken }: TightProps
|
|
|
296
307
|
/**
|
|
297
308
|
* All-in-one component that provides simple and easy consumption of Tight Embedded Components.
|
|
298
309
|
*
|
|
299
|
-
* @param
|
|
300
|
-
* @param
|
|
301
|
-
* @param
|
|
310
|
+
* @param props - Props for the `<TightApp />` component.
|
|
311
|
+
* @param props.accessToken - Bearer token used to authenticate API requests.
|
|
312
|
+
* @param props.environment - Selects the Tight API environment (`"PRODUCTION"` or `"SANDBOX"`). Defaults to `"PRODUCTION"`.
|
|
313
|
+
* @param props.initialNav - The initial page of the TightApp that should open on the initial render. Defaults to the Financial Overview
|
|
302
314
|
*
|
|
303
315
|
* @example
|
|
304
316
|
* ```TypeScript
|
|
@@ -307,7 +319,15 @@ export declare function Tight({ children, environment, accessToken }: TightProps
|
|
|
307
319
|
* <TightApp accessToken={accessToken} initialNav={initialTightPage} />
|
|
308
320
|
* ```
|
|
309
321
|
*/
|
|
310
|
-
export declare function TightApp(
|
|
322
|
+
export declare function TightApp(props: AppProps): JSX.Element;
|
|
323
|
+
|
|
324
|
+
export { TightEvent }
|
|
325
|
+
|
|
326
|
+
export { TightEventListener }
|
|
327
|
+
|
|
328
|
+
export { TightEvents }
|
|
329
|
+
|
|
330
|
+
export declare type TightEventSource = "TransactionsDashboard" | "ExpenseDashboard" | "IncomeDashboard" | "FinancialOverview" | "BanksAndIntegrations";
|
|
311
331
|
|
|
312
332
|
declare type TightProps = PropsWithChildren<{
|
|
313
333
|
environment: Environment;
|
|
@@ -351,6 +371,16 @@ declare type UploadedAttachmentInfo = {
|
|
|
351
371
|
publicFileUrl: Nullable<string>;
|
|
352
372
|
};
|
|
353
373
|
|
|
374
|
+
export declare function useEmbeddedEventListeners(initialEventListeners?: Partial<TightEvents>): [TightEvents, (partial: Partial<TightEvents>) => void];
|
|
375
|
+
|
|
376
|
+
export { UseEmbeddedEventListenersResult }
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Returns the dashboard this component is rendered in, or null when rendered
|
|
380
|
+
* outside any dashboard (e.g. global Drawers, standalone tiles).
|
|
381
|
+
*/
|
|
382
|
+
export declare function useEventSource(): TightEventSource | null;
|
|
383
|
+
|
|
354
384
|
/**
|
|
355
385
|
* Set library-wide options for various components.
|
|
356
386
|
*
|