@layerfi/components 0.1.44 → 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/.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 +3 -3
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4521,7 +4521,7 @@ declare module '@layerfi/components/types/balance_sheet' {
|
|
|
4521
4521
|
}
|
|
4522
4522
|
declare module '@layerfi/components/types/bank_transactions' {
|
|
4523
4523
|
import { Categorization, CategorizationStatus, Category } from '@layerfi/components/types/categories';
|
|
4524
|
-
import { S3PresignedUrl } from
|
|
4524
|
+
import { S3PresignedUrl } from '@layerfi/components/types/general';
|
|
4525
4525
|
export enum Direction {
|
|
4526
4526
|
CREDIT = "CREDIT",
|
|
4527
4527
|
DEBIT = "DEBIT"
|
|
@@ -4550,7 +4550,7 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
4550
4550
|
counterparty_name: string;
|
|
4551
4551
|
category: Category;
|
|
4552
4552
|
categorization_status: CategorizationStatus;
|
|
4553
|
-
categorization_flow: Categorization;
|
|
4553
|
+
categorization_flow: Categorization | null;
|
|
4554
4554
|
categorization_method: string;
|
|
4555
4555
|
error?: string;
|
|
4556
4556
|
processing?: boolean;
|
|
@@ -4676,7 +4676,7 @@ declare module '@layerfi/components/types/categories' {
|
|
|
4676
4676
|
}[];
|
|
4677
4677
|
};
|
|
4678
4678
|
export type CategoryUpdate = SingleCategoryUpdate | SplitCategoryUpdate;
|
|
4679
|
-
export function hasSuggestions(categorization: Categorization): categorization is SuggestedCategorization;
|
|
4679
|
+
export function hasSuggestions(categorization: Categorization | null): categorization is SuggestedCategorization;
|
|
4680
4680
|
|
|
4681
4681
|
}
|
|
4682
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,
|