@stellar-expert/ui-framework 1.11.6 → 1.12.0
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/controls/tooltip.js +5 -3
- package/package.json +4 -4
- package/tx/tx-operations-list.js +1 -1
package/controls/tooltip.js
CHANGED
|
@@ -43,7 +43,7 @@ function calculateTooltipPosition(target, node, desiredPlace, offset) {
|
|
|
43
43
|
getTipOffsetBottom(p) > window.innerHeight //outside bottom
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
let place
|
|
46
|
+
let place = 'top'
|
|
47
47
|
if (!isOutside(desiredPlace)) {
|
|
48
48
|
place = desiredPlace || 'top'
|
|
49
49
|
} else {
|
|
@@ -166,7 +166,8 @@ export const Tooltip = React.memo(function Tooltip({trigger, desiredPlace = 'top
|
|
|
166
166
|
content = useRef(null)
|
|
167
167
|
|
|
168
168
|
function mouseEnter(e) {
|
|
169
|
-
if (visible)
|
|
169
|
+
if (visible)
|
|
170
|
+
return
|
|
170
171
|
const {place, position} = calculateTooltipPosition(e.currentTarget, content.current, desiredPlace, offset)
|
|
171
172
|
setVisible(true)
|
|
172
173
|
setPosition(position)
|
|
@@ -174,7 +175,8 @@ export const Tooltip = React.memo(function Tooltip({trigger, desiredPlace = 'top
|
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
function mouseLeave(e) {
|
|
177
|
-
if (!visible)
|
|
178
|
+
if (!visible)
|
|
179
|
+
return
|
|
178
180
|
setVisible(false)
|
|
179
181
|
}
|
|
180
182
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar-expert/ui-framework",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "StellarExpert shared UI components library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"author": "orbitlens <orbit@stellar.expert>",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@stellar/stellar-base": "^
|
|
18
|
-
"@stellar/stellar-sdk": "^
|
|
17
|
+
"@stellar/stellar-base": "^12.0.0",
|
|
18
|
+
"@stellar/stellar-sdk": "^12.0.1",
|
|
19
19
|
"@stellar-expert/asset-descriptor": "^1.3.0",
|
|
20
20
|
"@stellar-expert/claimable-balance-utils": "^1.4.1",
|
|
21
21
|
"@stellar-expert/client-cache": "github:stellar-expert/client-cache",
|
|
22
22
|
"@stellar-expert/formatter": "^2.3.0",
|
|
23
23
|
"@stellar-expert/navigation": "github:stellar-expert/navigation#v1.0.2",
|
|
24
|
-
"@stellar-expert/tx-meta-effects-parser": "^5.
|
|
24
|
+
"@stellar-expert/tx-meta-effects-parser": "^5.5.0",
|
|
25
25
|
"classnames": ">=2",
|
|
26
26
|
"prop-types": ">=15",
|
|
27
27
|
"qrcode.react": "^3.1.0",
|
package/tx/tx-operations-list.js
CHANGED
|
@@ -86,7 +86,7 @@ export const TxOperationsList = React.memo(function TxOperationsList({
|
|
|
86
86
|
}
|
|
87
87
|
//hide some operations in large transactions to prevent interface hanging
|
|
88
88
|
if (operations.length > 5) {
|
|
89
|
-
operations = operations.
|
|
89
|
+
operations = operations.slice(0, 5)
|
|
90
90
|
opdiff = parsedTx.operations.length - operations.length
|
|
91
91
|
}
|
|
92
92
|
}
|