@layerfi/components 0.1.43 → 0.1.45
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/.eslintrc.js +14 -1
- package/.idea/codeStyles/Project.xml +61 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/layer-react.iml +9 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/esm/index.js +5 -6
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -6
- package/dist/index.js.map +3 -3
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1638,7 +1638,6 @@ declare module '@layerfi/components/components/DataState/index' {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
declare module '@layerfi/components/components/DatePicker/DatePicker' {
|
|
1640
1640
|
import React from 'react';
|
|
1641
|
-
import 'react-datepicker/dist/react-datepicker.css';
|
|
1642
1641
|
interface DatePickerProps {
|
|
1643
1642
|
mode: 'dayPicker' | 'dayRangePicker' | 'monthPicker' | 'monthRangePicker' | 'timePicker';
|
|
1644
1643
|
selected: Date | [Date | null, Date | null];
|
|
@@ -4522,7 +4521,7 @@ declare module '@layerfi/components/types/balance_sheet' {
|
|
|
4522
4521
|
}
|
|
4523
4522
|
declare module '@layerfi/components/types/bank_transactions' {
|
|
4524
4523
|
import { Categorization, CategorizationStatus, Category } from '@layerfi/components/types/categories';
|
|
4525
|
-
import { S3PresignedUrl } from
|
|
4524
|
+
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
4526
4525
|
export enum Direction {
|
|
4527
4526
|
CREDIT = "CREDIT",
|
|
4528
4527
|
DEBIT = "DEBIT"
|
|
@@ -4551,7 +4550,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
4551
4550
|
counterparty_name: string;
|
|
4552
4551
|
category: Category;
|
|
4553
4552
|
categorization_status: CategorizationStatus;
|
|
4554
|
-
categorization_flow: Categorization;
|
|
4553
|
+
categorization_flow: Categorization | null;
|
|
4555
4554
|
categorization_method: string;
|
|
4556
4555
|
error?: string;
|
|
4557
4556
|
processing?: boolean;
|
|
@@ -4677,7 +4676,7 @@ declare module '@layerfi/components/types/categories' {
|
|
|
4677
4676
|
}[];
|
|
4678
4677
|
};
|
|
4679
4678
|
export type CategoryUpdate = SingleCategoryUpdate | SplitCategoryUpdate;
|
|
4680
|
-
export function hasSuggestions(categorization: Categorization): categorization is SuggestedCategorization;
|
|
4679
|
+
export function hasSuggestions(categorization: Categorization | null): categorization is SuggestedCategorization;
|
|
4681
4680
|
|
|
4682
4681
|
}
|
|
4683
4682
|
declare module '@layerfi/components/types/chart_of_accounts' {
|
package/dist/index.js
CHANGED
|
@@ -704,7 +704,7 @@ var DisplayState = /* @__PURE__ */ ((DisplayState2) => {
|
|
|
704
704
|
|
|
705
705
|
// src/types/categories.ts
|
|
706
706
|
function hasSuggestions(categorization) {
|
|
707
|
-
return categorization.suggestions !== void 0 && categorization.suggestions.length > 0;
|
|
707
|
+
return categorization != null && categorization.suggestions !== void 0 && categorization.suggestions.length > 0;
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
// src/contexts/BankTransactionsContext/BankTransactionsContext.tsx
|
|
@@ -4018,14 +4018,14 @@ var LinkedAccountThumb = ({
|
|
|
4018
4018
|
className: "account-institution",
|
|
4019
4019
|
size: "sm"
|
|
4020
4020
|
},
|
|
4021
|
-
account.institution?.name
|
|
4021
|
+
account.institution?.name ? account.institution?.name : account.external_account_name
|
|
4022
4022
|
)), /* @__PURE__ */ import_react47.default.createElement("div", { className: "topbar-logo" }, account.institution?.logo != void 0 ? /* @__PURE__ */ import_react47.default.createElement(
|
|
4023
4023
|
"img",
|
|
4024
4024
|
{
|
|
4025
4025
|
width: 28,
|
|
4026
4026
|
height: 28,
|
|
4027
4027
|
src: `data:image/png;base64,${account.institution.logo}`,
|
|
4028
|
-
alt: account.institution?.name
|
|
4028
|
+
alt: account.institution?.name ? account.institution?.name : account.external_account_name
|
|
4029
4029
|
}
|
|
4030
4030
|
) : /* @__PURE__ */ import_react47.default.createElement(InstitutionIcon_default, null))), account.is_syncing ? /* @__PURE__ */ import_react47.default.createElement("div", { className: "loadingbar" }, /* @__PURE__ */ import_react47.default.createElement("div", { className: "loading-text Layer__text--sm" }, /* @__PURE__ */ import_react47.default.createElement("div", null, "Syncing account data"), /* @__PURE__ */ import_react47.default.createElement("div", { className: "syncing-data-description" }, "This may take up to 5 minutes")), /* @__PURE__ */ import_react47.default.createElement("div", { className: "loading-wrapper" }, /* @__PURE__ */ import_react47.default.createElement(Loader_default, { size: 11, className: "Layer__anim--rotating" }))) : /* @__PURE__ */ import_react47.default.createElement(import_react47.default.Fragment, null, !asWidget && /* @__PURE__ */ import_react47.default.createElement("div", { className: "middlebar" }, /* @__PURE__ */ import_react47.default.createElement(
|
|
4031
4031
|
Text,
|
|
@@ -7971,7 +7971,6 @@ var isDateAllowedToBrowse = (date, business) => {
|
|
|
7971
7971
|
// src/components/DatePicker/DatePicker.tsx
|
|
7972
7972
|
var import_react92 = __toESM(require("react"));
|
|
7973
7973
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
|
7974
|
-
var import_react_datepicker2 = require("react-datepicker/dist/react-datepicker.css");
|
|
7975
7974
|
|
|
7976
7975
|
// src/components/DatePicker/DatePickerOptions.tsx
|
|
7977
7976
|
var import_react91 = __toESM(require("react"));
|
|
@@ -8555,12 +8554,12 @@ var BankTransactionsHeader = ({
|
|
|
8555
8554
|
minDate: getEarliestDateToBrowse(business)
|
|
8556
8555
|
}
|
|
8557
8556
|
) : null),
|
|
8558
|
-
/* @__PURE__ */ import_react95.default.createElement("div", { className: "Layer__header__actions-wrapper" },
|
|
8557
|
+
/* @__PURE__ */ import_react95.default.createElement("div", { className: "Layer__header__actions-wrapper" }, /* @__PURE__ */ import_react95.default.createElement("div", { className: "Layer__header__actions" }, /* @__PURE__ */ import_react95.default.createElement(
|
|
8559
8558
|
DownloadButton,
|
|
8560
8559
|
{
|
|
8561
8560
|
downloadButtonTextOverride: stringOverrides?.downloadButton
|
|
8562
8561
|
}
|
|
8563
|
-
), /* @__PURE__ */ import_react95.default.createElement(
|
|
8562
|
+
), !categorizedOnly && !(mobileComponent == "mobileList" && listView) && categorizeView && /* @__PURE__ */ import_react95.default.createElement(
|
|
8564
8563
|
Toggle,
|
|
8565
8564
|
{
|
|
8566
8565
|
name: "bank-transaction-display",
|