@mx-cartographer/experiences 6.17.1-alpha.mega1 → 6.17.1-alpha.mega2

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.
@@ -1,11 +1,9 @@
1
1
  import { Tag, Transaction } from '../../common';
2
2
  /**
3
- * Combines sorted parent transactions with their split child transactions.
4
- * Child transactions are sorted by absolute amount in descending order.
5
- *
6
- * Removes duplicates based on `guid` because expanded transactions may already
7
- * be injected into `sortedTransactions`. To avoid duplication during the merge
8
- * with `allTransactions`, we skip any transactions that have already been included.
3
+ * Produces a list of transactions based on the given sorted transactions,
4
+ * where parent transactions that have split children are replaced by those
5
+ * children sorted by descending absolute amount. All other transactions
6
+ * are included as-is, with duplicates removed.
9
7
  */
10
- export declare const getSortedTransactionsWithSplits: (sortedTransactions: Transaction[], allTransactions: Transaction[]) => Transaction[];
8
+ export declare function flattenTransactionsWithSplits(sortedTransactions: Transaction[], allTransactions: Transaction[]): Transaction[];
11
9
  export declare const exportTransactionsToCSV: (transactions: Transaction[], tags: Tag[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.17.1-alpha.mega1",
3
+ "version": "6.17.1-alpha.mega2",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",