@layerfi/components 0.1.95-alpha → 0.1.95
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 +6 -6
- package/dist/esm/index.mjs +6 -6
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -5601,7 +5601,7 @@ var import_react16 = require("react");
|
|
|
5601
5601
|
var import_react14 = require("react");
|
|
5602
5602
|
|
|
5603
5603
|
// package.json
|
|
5604
|
-
var version = "0.1.95
|
|
5604
|
+
var version = "0.1.95";
|
|
5605
5605
|
|
|
5606
5606
|
// src/models/APIError.ts
|
|
5607
5607
|
var APIError = class _APIError extends Error {
|
|
@@ -14553,15 +14553,15 @@ var MatchForm = ({
|
|
|
14553
14553
|
readOnly = false
|
|
14554
14554
|
}) => {
|
|
14555
14555
|
const bookkeepingStatus = useEffectiveBookkeepingStatus();
|
|
14556
|
-
const
|
|
14556
|
+
const categorizationEnabled = isCategorizationEnabledForStatus(bookkeepingStatus);
|
|
14557
14557
|
const {
|
|
14558
14558
|
suggested_matches: suggestedMatches = [],
|
|
14559
14559
|
match
|
|
14560
14560
|
} = bankTransaction;
|
|
14561
|
-
const effectiveSuggestedMatches =
|
|
14561
|
+
const effectiveSuggestedMatches = categorizationEnabled ? suggestedMatches : suggestedMatches.filter(
|
|
14562
14562
|
({ details: { id } }) => id === (match == null ? void 0 : match.details.id)
|
|
14563
|
-
)
|
|
14564
|
-
if (
|
|
14563
|
+
);
|
|
14564
|
+
if (!categorizationEnabled && effectiveSuggestedMatches.length === 0) {
|
|
14565
14565
|
return null;
|
|
14566
14566
|
}
|
|
14567
14567
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: `${classNamePrefix}__match-table`, children: [
|
|
@@ -18215,7 +18215,7 @@ function BankTransactionsTableEmptyStates({
|
|
|
18215
18215
|
return null;
|
|
18216
18216
|
}
|
|
18217
18217
|
if (!hasVisibleTransactions && !isFiltered) {
|
|
18218
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
18218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
18219
18219
|
DataState,
|
|
18220
18220
|
{
|
|
18221
18221
|
status: "allDone" /* allDone */,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -5570,7 +5570,7 @@ import { useState as useState8 } from "react";
|
|
|
5570
5570
|
import { useReducer, useEffect as useEffect4 } from "react";
|
|
5571
5571
|
|
|
5572
5572
|
// package.json
|
|
5573
|
-
var version = "0.1.95
|
|
5573
|
+
var version = "0.1.95";
|
|
5574
5574
|
|
|
5575
5575
|
// src/models/APIError.ts
|
|
5576
5576
|
var APIError = class _APIError extends Error {
|
|
@@ -14584,15 +14584,15 @@ var MatchForm = ({
|
|
|
14584
14584
|
readOnly = false
|
|
14585
14585
|
}) => {
|
|
14586
14586
|
const bookkeepingStatus = useEffectiveBookkeepingStatus();
|
|
14587
|
-
const
|
|
14587
|
+
const categorizationEnabled = isCategorizationEnabledForStatus(bookkeepingStatus);
|
|
14588
14588
|
const {
|
|
14589
14589
|
suggested_matches: suggestedMatches = [],
|
|
14590
14590
|
match
|
|
14591
14591
|
} = bankTransaction;
|
|
14592
|
-
const effectiveSuggestedMatches =
|
|
14592
|
+
const effectiveSuggestedMatches = categorizationEnabled ? suggestedMatches : suggestedMatches.filter(
|
|
14593
14593
|
({ details: { id } }) => id === (match == null ? void 0 : match.details.id)
|
|
14594
|
-
)
|
|
14595
|
-
if (
|
|
14594
|
+
);
|
|
14595
|
+
if (!categorizationEnabled && effectiveSuggestedMatches.length === 0) {
|
|
14596
14596
|
return null;
|
|
14597
14597
|
}
|
|
14598
14598
|
return /* @__PURE__ */ jsxs68("div", { className: `${classNamePrefix}__match-table`, children: [
|
|
@@ -18253,7 +18253,7 @@ function BankTransactionsTableEmptyStates({
|
|
|
18253
18253
|
return null;
|
|
18254
18254
|
}
|
|
18255
18255
|
if (!hasVisibleTransactions && !isFiltered) {
|
|
18256
|
-
/* @__PURE__ */ jsx151(
|
|
18256
|
+
return /* @__PURE__ */ jsx151(
|
|
18257
18257
|
DataState,
|
|
18258
18258
|
{
|
|
18259
18259
|
status: "allDone" /* allDone */,
|