@stellar-expert/ui-framework 1.9.7 → 1.9.8

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.
@@ -227,7 +227,7 @@ class PaginatedListViewModel {
227
227
  */
228
228
  processResponseData(endpointWithQuery, data, queryParams) {
229
229
  if (data.error) {
230
- console.error(e)
230
+ console.error(data.error)
231
231
  this.loaded = true
232
232
  this.loading = false
233
233
  this.error = data
@@ -3,10 +3,15 @@ import {getCurrentStellarNetwork} from '../state/stellar-network-hooks'
3
3
  /**
4
4
  * @param {'account'|'asset'|'ledger'|'tx'|'op'|'offer'} type
5
5
  * @param {String|Number} id
6
- * @param {String} network?
6
+ * @param {String} [network]
7
7
  * @return {String}
8
8
  */
9
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
+ }
10
15
  const segments = [
11
16
  explorerFrontendOrigin !== window.origin ? explorerFrontendOrigin : '',
12
17
  'explorer',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",