@mx-cartographer/experiences 9.4.53 → 9.4.54
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [9.4.54] - 10-05-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - Searching in the Add Expense drawer in Recurring Transactions no longer crashes when an expense has no description MEW-3671
|
|
4
|
+
|
|
1
5
|
## [9.4.53] - 10-02-2026
|
|
2
6
|
|
|
3
7
|
- **FIXED** - Recalculated budget amounts now use the three-month spending average instead of varying by browser history MEW-4013
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { CategoryGuids as
|
|
2
|
-
import { TransactionType as
|
|
3
|
-
var
|
|
1
|
+
import { CategoryGuids as o } from "../../core/constants/Category.es.js";
|
|
2
|
+
import { TransactionType as a } from "../../core/types/Transaction.es.js";
|
|
3
|
+
var n = (e) => e.top_level_category_guid !== o.INCOME && e.transaction_type === a.DEBIT, t = (e, r) => {
|
|
4
|
+
const i = r.toLowerCase();
|
|
5
|
+
return [
|
|
6
|
+
e.payee,
|
|
7
|
+
e.description,
|
|
8
|
+
e.feed_description
|
|
9
|
+
].some((c) => c?.toLowerCase().includes(i));
|
|
10
|
+
}, l = (e, r) => n(e) && t(e, r), s = (e) => e.top_level_category_guid === o.INCOME || e.top_level_category_guid === o.TRANSFER && e.transaction_type === a.CREDIT, d = (e, r) => s(e) && t(e, r);
|
|
4
11
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
n as expenseFilter,
|
|
13
|
+
l as expenseFilterSearch,
|
|
7
14
|
s as incomeFilter,
|
|
8
|
-
|
|
15
|
+
d as incomeFilterSearch
|
|
9
16
|
};
|
|
10
17
|
|
|
11
18
|
//# sourceMappingURL=Filters.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filters.es.js","names":[],"sources":["../../../src/transactions/utils/Filters.ts"],"sourcesContent":["import { CategoryGuids } from '../../core/constants'\nimport { type Transaction, TransactionType } from '../../core'\n\n// Returns true if the transaction is not income\nexport const expenseFilter = (t: Transaction) =>\n t.top_level_category_guid !== CategoryGuids.INCOME && t.transaction_type === TransactionType.DEBIT\n\n//
|
|
1
|
+
{"version":3,"file":"Filters.es.js","names":[],"sources":["../../../src/transactions/utils/Filters.ts"],"sourcesContent":["import { CategoryGuids } from '../../core/constants'\nimport { type Transaction, TransactionType } from '../../core'\n\n// Returns true if the transaction is not income\nexport const expenseFilter = (t: Transaction) =>\n t.top_level_category_guid !== CategoryGuids.INCOME && t.transaction_type === TransactionType.DEBIT\n\n// The feed can return null descriptions\nconst matchesSearch = (t: Transaction, searchValue: string): boolean => {\n const search = searchValue.toLowerCase()\n\n return [t.payee, t.description, t.feed_description].some((field) =>\n field?.toLowerCase().includes(search),\n )\n}\n\n// Returns true if the transaction is an expense and it matches the search string\nexport const expenseFilterSearch = (t: Transaction, searchValue: string): boolean =>\n expenseFilter(t) && matchesSearch(t, searchValue)\n\n// Returns true if the transaction is income\nexport const incomeFilter = (t: Transaction) =>\n t.top_level_category_guid === CategoryGuids.INCOME ||\n (t.top_level_category_guid === CategoryGuids.TRANSFER &&\n t.transaction_type === TransactionType.CREDIT)\n\n// Returns true if the transaction is income and it matches the search string\nexport const incomeFilterSearch = (t: Transaction, searchValue: string): boolean =>\n incomeFilter(t) && matchesSearch(t, searchValue)\n"],"mappings":";;AAIA,IAAa,IAAA,CAAiB,MAC5B,EAAE,4BAA4B,EAAc,UAAU,EAAE,qBAAqB,EAAgB,OAGzF,IAAA,CAAiB,GAAgB,MAAiC;AACtE,QAAM,IAAS,EAAY,YAAY;AAEvC,SAAO;AAAA,IAAC,EAAE;AAAA,IAAO,EAAE;AAAA,IAAa,EAAE;AAAA,EAAgB,EAAE,KAAA,CAAM,MACxD,GAAO,YAAY,EAAE,SAAS,CAAM,CACtC;AACF,GAGa,IAAA,CAAuB,GAAgB,MAClD,EAAc,CAAC,KAAK,EAAc,GAAG,CAAW,GAGrC,IAAA,CAAgB,MAC3B,EAAE,4BAA4B,EAAc,UAC3C,EAAE,4BAA4B,EAAc,YAC3C,EAAE,qBAAqB,EAAgB,QAG9B,IAAA,CAAsB,GAAgB,MACjD,EAAa,CAAC,KAAK,EAAc,GAAG,CAAW"}
|