@layerfi/components 0.1.123 → 0.1.124-alpha
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 +16571 -18764
- package/dist/esm/index.mjs +16565 -18757
- package/dist/index.css +385 -1141
- package/dist/index.d.ts +43 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -213,15 +213,15 @@ declare interface BankTransactionsWithLinkedAccountsStringOverrides {
|
|
|
213
213
|
bankTransactions?: BankTransactionsStringOverrides;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
declare type
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
216
|
+
declare type BaseLayerProviderProps = {
|
|
217
|
+
businessId: string;
|
|
218
|
+
appId?: string;
|
|
219
|
+
appSecret?: string;
|
|
220
|
+
businessAccessToken?: string;
|
|
221
|
+
theme?: LayerThemeConfig;
|
|
222
|
+
usePlaidSandbox?: boolean;
|
|
223
|
+
onError?: (error: LayerError) => void;
|
|
224
|
+
eventCallbacks?: EventCallbacks;
|
|
225
225
|
};
|
|
226
226
|
|
|
227
227
|
export declare const BookkeepingOverview: ({ title, showTitle, onClickReconnectAccounts, stringOverrides, slotProps, }: BookkeepingOverviewProps) => JSX_2.Element;
|
|
@@ -480,6 +480,16 @@ declare type EnumWithUnknownValues<T extends string> = T | UnknownEnumValue;
|
|
|
480
480
|
|
|
481
481
|
declare type Environment = 'production' | 'sandbox' | 'staging' | 'internalStaging';
|
|
482
482
|
|
|
483
|
+
declare type EnvironmentConfig = {
|
|
484
|
+
environment: Environment;
|
|
485
|
+
apiUrl: string;
|
|
486
|
+
authUrl: string;
|
|
487
|
+
scope: string;
|
|
488
|
+
usePlaidSandbox: boolean;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
declare type EnvironmentConfigOverride = Omit<EnvironmentConfig, 'usePlaidSandbox'>;
|
|
492
|
+
|
|
483
493
|
declare type EventCallbacks = {
|
|
484
494
|
onTransactionCategorized?: () => void;
|
|
485
495
|
onTransactionsFetched?: () => void;
|
|
@@ -505,6 +515,10 @@ declare interface GeneralLedgerStringOverrides {
|
|
|
505
515
|
|
|
506
516
|
export declare const GeneralLedgerView: ({ title, showTitle, showTags, showCustomerVendor, stringOverrides, chartOfAccountsOptions, renderInAppLink, }: GeneralLedgerProps) => JSX_2.Element;
|
|
507
517
|
|
|
518
|
+
export declare const GlobalDateRangeSelection: ({ showLabels }: {
|
|
519
|
+
showLabels?: boolean;
|
|
520
|
+
}) => JSX_2.Element;
|
|
521
|
+
|
|
508
522
|
export declare const GlobalMonthPicker: ({ truncateMonth, showLabel }: GlobalMonthPickerProps) => JSX_2.Element;
|
|
509
523
|
|
|
510
524
|
declare type GlobalMonthPickerProps = {
|
|
@@ -725,18 +739,16 @@ declare type LayerErrorScope = 'BankTransaction' | 'ChartOfAccounts';
|
|
|
725
739
|
|
|
726
740
|
declare type LayerErrorType = 'unauthenticated' | 'api' | 'render';
|
|
727
741
|
|
|
728
|
-
export declare const LayerProvider: (
|
|
742
|
+
export declare const LayerProvider: (props: PropsWithChildren<LayerProviderProps>) => JSX_2.Element;
|
|
729
743
|
|
|
730
|
-
declare type LayerProviderProps =
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
744
|
+
declare type LayerProviderProps = LayerProviderPropsWithLayerEnv | LayerProviderPropsWithEnvironmentConfigOverride;
|
|
745
|
+
|
|
746
|
+
declare type LayerProviderPropsWithEnvironmentConfigOverride = BaseLayerProviderProps & {
|
|
747
|
+
environmentConfigOverride?: EnvironmentConfigOverride;
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
declare type LayerProviderPropsWithLayerEnv = BaseLayerProviderProps & {
|
|
735
751
|
environment?: Environment;
|
|
736
|
-
theme?: LayerThemeConfig;
|
|
737
|
-
usePlaidSandbox?: boolean;
|
|
738
|
-
onError?: (error: LayerError) => void;
|
|
739
|
-
eventCallbacks?: EventCallbacks;
|
|
740
752
|
};
|
|
741
753
|
|
|
742
754
|
declare interface LayerThemeConfig {
|
|
@@ -858,14 +870,23 @@ declare interface ProfitAndLossChartProps {
|
|
|
858
870
|
};
|
|
859
871
|
}
|
|
860
872
|
|
|
861
|
-
declare
|
|
873
|
+
declare type ProfitAndLossCompareConfig = ProfitAndLossCompareConfigBase & ({
|
|
874
|
+
showTagComparison?: true;
|
|
862
875
|
tagComparisonOptions: TagComparisonOption[];
|
|
863
876
|
defaultTagFilter: TagComparisonOption;
|
|
877
|
+
} | {
|
|
878
|
+
showTagComparison: false;
|
|
879
|
+
tagComparisonOptions?: never;
|
|
880
|
+
defaultTagFilter?: never;
|
|
881
|
+
});
|
|
882
|
+
|
|
883
|
+
declare type ProfitAndLossCompareConfigBase = {
|
|
884
|
+
showTimeSeriesComparison?: boolean;
|
|
864
885
|
/**
|
|
865
886
|
* @deprecated This is a deprecated property - the number of periods to compare is derived from the date range.
|
|
866
887
|
*/
|
|
867
888
|
defaultPeriods?: number;
|
|
868
|
-
}
|
|
889
|
+
};
|
|
869
890
|
|
|
870
891
|
declare interface ProfitAndLossDetailedChartsStringOverrides {
|
|
871
892
|
detailedChartStringOverrides?: DetailedChartStringOverrides;
|
|
@@ -1132,7 +1153,7 @@ declare type UnifiedReportProps = {
|
|
|
1132
1153
|
|
|
1133
1154
|
declare type UnknownEnumValue = string & Record<never, never>;
|
|
1134
1155
|
|
|
1135
|
-
export declare const
|
|
1156
|
+
export declare const unstable_MileageSummaryCard: () => JSX_2.Element;
|
|
1136
1157
|
|
|
1137
1158
|
export declare const unstable_MileageTracking: ({ showTitle }: {
|
|
1138
1159
|
showTitle?: boolean;
|