@stellar-expert/ui-framework 1.15.4 → 1.15.5
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/basic-styles/base.scss +50 -50
- package/claimable-balance/claimable-balance-claimants.js +18 -18
- package/contract/sc-val.js +107 -107
- package/controls/button-group.scss +46 -46
- package/controls/button.scss +173 -173
- package/controls/code-block.scss +71 -71
- package/controls/dropdown.scss +159 -159
- package/controls/tabs.scss +70 -70
- package/controls/tooltip.scss +116 -116
- package/controls/update-highlighter.scss +7 -7
- package/dex/price-dynamic.scss +33 -33
- package/effect/effect-description.js +344 -344
- package/interaction/block-select.scss +21 -21
- package/interaction/spoiler.scss +6 -6
- package/ledger/ledger-entry-href-formatter.js +26 -26
- package/package.json +40 -40
- package/tx/op-description-view.js +941 -941
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.block-select {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
width: auto;
|
|
4
|
-
overflow: auto;
|
|
5
|
-
text-overflow: ellipsis;
|
|
6
|
-
vertical-align: bottom;
|
|
7
|
-
|
|
8
|
-
&:focus {
|
|
9
|
-
outline: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&textarea {
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 7em;
|
|
15
|
-
margin: 0;
|
|
16
|
-
resize: vertical;
|
|
17
|
-
|
|
18
|
-
&.code {
|
|
19
|
-
font-family: $font-face-mono;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
.block-select {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: auto;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
text-overflow: ellipsis;
|
|
6
|
+
vertical-align: bottom;
|
|
7
|
+
|
|
8
|
+
&:focus {
|
|
9
|
+
outline: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&textarea {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 7em;
|
|
15
|
+
margin: 0;
|
|
16
|
+
resize: vertical;
|
|
17
|
+
|
|
18
|
+
&.code {
|
|
19
|
+
font-family: $font-face-mono;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
22
|
}
|
package/interaction/spoiler.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.spoiler {
|
|
2
|
-
padding: 0.3em 0;
|
|
3
|
-
|
|
4
|
-
.spoiler-text {
|
|
5
|
-
border-bottom: 1px dotted;
|
|
6
|
-
}
|
|
1
|
+
.spoiler {
|
|
2
|
+
padding: 0.3em 0;
|
|
3
|
+
|
|
4
|
+
.spoiler-text {
|
|
5
|
+
border-bottom: 1px dotted;
|
|
6
|
+
}
|
|
7
7
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {getCurrentStellarNetwork} from '../state/stellar-network-hooks'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @param {'account'|'asset'|'ledger'|'tx'|'op'|'offer'|'contract'|'liquidity-pool'|'claimable-balance'} type
|
|
5
|
-
* @param {String|Number} id
|
|
6
|
-
* @param {String} [network]
|
|
7
|
-
* @return {String}
|
|
8
|
-
*/
|
|
9
|
-
export function formatExplorerLink(type, id, network = null) {
|
|
10
|
-
if (typeof window.explorerLinkFormatter === 'function') {
|
|
11
|
-
const link = window.explorerLinkFormatter(type, id, network)
|
|
12
|
-
if (link)
|
|
13
|
-
return link
|
|
14
|
-
}
|
|
15
|
-
const segments = [
|
|
16
|
-
explorerFrontendOrigin !== window.origin ? explorerFrontendOrigin : '',
|
|
17
|
-
'explorer',
|
|
18
|
-
network || getCurrentStellarNetwork()
|
|
19
|
-
]
|
|
20
|
-
if (type) {
|
|
21
|
-
segments.push(type)
|
|
22
|
-
}
|
|
23
|
-
if (id) {
|
|
24
|
-
segments.push(id)
|
|
25
|
-
}
|
|
26
|
-
return segments.join('/')
|
|
1
|
+
import {getCurrentStellarNetwork} from '../state/stellar-network-hooks'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {'account'|'asset'|'ledger'|'tx'|'op'|'offer'|'contract'|'liquidity-pool'|'claimable-balance'} type
|
|
5
|
+
* @param {String|Number} id
|
|
6
|
+
* @param {String} [network]
|
|
7
|
+
* @return {String}
|
|
8
|
+
*/
|
|
9
|
+
export function formatExplorerLink(type, id, network = null) {
|
|
10
|
+
if (typeof window.explorerLinkFormatter === 'function') {
|
|
11
|
+
const link = window.explorerLinkFormatter(type, id, network)
|
|
12
|
+
if (link)
|
|
13
|
+
return link
|
|
14
|
+
}
|
|
15
|
+
const segments = [
|
|
16
|
+
explorerFrontendOrigin !== window.origin ? explorerFrontendOrigin : '',
|
|
17
|
+
'explorer',
|
|
18
|
+
network || getCurrentStellarNetwork()
|
|
19
|
+
]
|
|
20
|
+
if (type) {
|
|
21
|
+
segments.push(type)
|
|
22
|
+
}
|
|
23
|
+
if (id) {
|
|
24
|
+
segments.push(id)
|
|
25
|
+
}
|
|
26
|
+
return segments.join('/')
|
|
27
27
|
}
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@stellar-expert/ui-framework",
|
|
3
|
-
"version": "1.15.
|
|
4
|
-
"description": "StellarExpert shared UI components library",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "./index.js",
|
|
7
|
-
"sideEffects": [
|
|
8
|
-
"*.scss"
|
|
9
|
-
],
|
|
10
|
-
"keywords": [
|
|
11
|
-
"StellarExpert",
|
|
12
|
-
"UI"
|
|
13
|
-
],
|
|
14
|
-
"author": "orbitlens <orbit@stellar.expert>",
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"peerDependencies": {
|
|
17
|
-
"@stellar/stellar-base": "^14.0.0",
|
|
18
|
-
"@stellar/stellar-sdk": "^14.0.0",
|
|
19
|
-
"@stellar-expert/asset-descriptor": "^1.4.0",
|
|
20
|
-
"@stellar-expert/claimable-balance-utils": "^1.4.1",
|
|
21
|
-
"@stellar-expert/client-cache": "github:stellar-expert/client-cache",
|
|
22
|
-
"@stellar-expert/contract-wasm-interface-parser": "^3.2.0",
|
|
23
|
-
"@stellar-expert/formatter": "^2.5.0",
|
|
24
|
-
"@stellar-expert/navigation": "github:stellar-expert/navigation#v1.0.2",
|
|
25
|
-
"@stellar-expert/tx-meta-effects-parser": "7.0.0-rc.17",
|
|
26
|
-
"classnames": ">=2",
|
|
27
|
-
"prop-types": ">=15",
|
|
28
|
-
"qrcode.react": "^4.2.0",
|
|
29
|
-
"react": ">=17",
|
|
30
|
-
"react-dom": ">=17",
|
|
31
|
-
"react-fast-compare": ">=3",
|
|
32
|
-
"throttle-debounce": ">=5.0.0"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"highlight.js": "^11.8.0",
|
|
36
|
-
"history": "^4.10.1",
|
|
37
|
-
"react-copy-to-clipboard": "^5.1.0",
|
|
38
|
-
"react-timeago": "^7.2.0"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@stellar-expert/ui-framework",
|
|
3
|
+
"version": "1.15.5",
|
|
4
|
+
"description": "StellarExpert shared UI components library",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"*.scss"
|
|
9
|
+
],
|
|
10
|
+
"keywords": [
|
|
11
|
+
"StellarExpert",
|
|
12
|
+
"UI"
|
|
13
|
+
],
|
|
14
|
+
"author": "orbitlens <orbit@stellar.expert>",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@stellar/stellar-base": "^14.0.0",
|
|
18
|
+
"@stellar/stellar-sdk": "^14.0.0",
|
|
19
|
+
"@stellar-expert/asset-descriptor": "^1.4.0",
|
|
20
|
+
"@stellar-expert/claimable-balance-utils": "^1.4.1",
|
|
21
|
+
"@stellar-expert/client-cache": "github:stellar-expert/client-cache",
|
|
22
|
+
"@stellar-expert/contract-wasm-interface-parser": "^3.2.0",
|
|
23
|
+
"@stellar-expert/formatter": "^2.5.0",
|
|
24
|
+
"@stellar-expert/navigation": "github:stellar-expert/navigation#v1.0.2",
|
|
25
|
+
"@stellar-expert/tx-meta-effects-parser": "7.0.0-rc.17",
|
|
26
|
+
"classnames": ">=2",
|
|
27
|
+
"prop-types": ">=15",
|
|
28
|
+
"qrcode.react": "^4.2.0",
|
|
29
|
+
"react": ">=17",
|
|
30
|
+
"react-dom": ">=17",
|
|
31
|
+
"react-fast-compare": ">=3",
|
|
32
|
+
"throttle-debounce": ">=5.0.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"highlight.js": "^11.8.0",
|
|
36
|
+
"history": "^4.10.1",
|
|
37
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
38
|
+
"react-timeago": "^7.2.0"
|
|
39
|
+
}
|
|
40
|
+
}
|