@stellar-expert/ui-framework 1.11.0 → 1.11.2

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.
@@ -4,7 +4,7 @@ $tooltip-notch-shadow-color: var(--color-border-shadow);
4
4
 
5
5
  .tooltip-wrapper {
6
6
  width: 40rem;
7
- max-width: min(40rem, 80vw);
7
+ max-width: Min(40rem, 80vw);
8
8
  position: absolute;
9
9
  visibility: hidden;
10
10
  opacity: 0;
@@ -17,7 +17,7 @@ $tooltip-notch-shadow-color: var(--color-border-shadow);
17
17
  font-size: 0.9*$font-size-base;
18
18
  font-style: normal;
19
19
  line-height: 1.3;
20
- max-width: min(40rem, 80vw);
20
+ max-width: Min(40rem, 80vw);
21
21
  background: var(--color-bg);
22
22
  border-color: var(--color-contrast-border);
23
23
  border-radius: $border-radius-input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",
@@ -45,9 +45,13 @@ export function parseTxDetails({network, txEnvelope, result, meta, id, context,
45
45
  const {tx, effects, operations, isEphemeral, failed} = parseTxOperationsMeta({network, tx: txEnvelope, meta, result})
46
46
  const txHash = tx.hash().toString('hex')
47
47
  const txMatcher = new TxMatcher(context, skipUnrelated)
48
- const parsedOps = OperationDescriptor.parseOperations(operations, txHash, isEphemeral, !isEphemeral && !failed)
49
- .filter(od => txMatcher.matchOperation(od))
50
-
48
+ let parsedOps = OperationDescriptor.parseOperations(operations, txHash, isEphemeral, !isEphemeral && !failed)
49
+ //filter out irrelevant operations
50
+ const matchedOps = parsedOps.filter(od => txMatcher.matchOperation(od))
51
+ //display only relevant operations or all of them if no relevant operations found
52
+ if (matchedOps.length) {
53
+ parsedOps = matchedOps
54
+ }
51
55
  const res = {
52
56
  operations: parsedOps,
53
57
  tx,