@stellar-expert/ui-framework 1.20.0 → 1.21.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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import {StrKey} from '@stellar/stellar-base'
2
+ import {StrKey} from '@stellar/stellar-sdk'
3
3
  import {AccountAddress} from './account-address'
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import cn from 'classnames'
3
- import {xdr, scValToBigInt} from '@stellar/stellar-base'
3
+ import {xdr, scValToBigInt} from '@stellar/stellar-sdk'
4
4
  import {xdrParserUtils} from '@stellar-expert/tx-meta-effects-parser'
5
5
  import {shortenString} from '@stellar-expert/formatter'
6
6
  import {AccountAddress} from '../account/account-address'
@@ -1,5 +1,5 @@
1
1
  import {useEffect, useState} from 'react'
2
- import {StrKey} from '@stellar/stellar-base'
2
+ import {StrKey} from '@stellar/stellar-sdk'
3
3
  import {stringifyQuery} from '@stellar-expert/navigation'
4
4
  import {InMemoryClientCache} from '@stellar-expert/client-cache'
5
5
  import {fetchExplorerApi} from '../api/explorer-api-call'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
- import {AuthRequiredFlag, AuthRevocableFlag, AuthImmutableFlag, AuthClawbackEnabledFlag} from '@stellar/stellar-base'
3
+ import {AuthRequiredFlag, AuthRevocableFlag, AuthImmutableFlag, AuthClawbackEnabledFlag} from '@stellar/stellar-sdk'
4
4
  import {AssetDescriptor} from '@stellar-expert/asset-descriptor'
5
5
  import {shortenString, formatWithAutoPrecision} from '@stellar-expert/formatter'
6
6
  import {CopyToClipboard} from '../interaction/copy-to-clipboard'
@@ -1,5 +1,5 @@
1
1
  import React, {useCallback, useState} from 'react'
2
- import {StrKey} from '@stellar/stellar-base'
2
+ import {StrKey} from '@stellar/stellar-sdk'
3
3
  import {AccountAddress} from '../../account/account-address'
4
4
  import {useAutoFocusRef} from '../../interaction/autofocus'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React, {useCallback, useState} from 'react'
2
- import {StrKey} from '@stellar/stellar-base'
2
+ import {StrKey} from '@stellar/stellar-sdk'
3
3
  import {shortenString} from '@stellar-expert/formatter'
4
4
  import {AssetLink} from '../asset/asset-link'
5
5
  import {useAutoFocusRef} from '../interaction/autofocus'
@@ -1,4 +1,4 @@
1
- import {xdr} from '@stellar/stellar-base'
1
+ import {xdr} from '@stellar/stellar-sdk'
2
2
 
3
3
  /**
4
4
  * @typedef {Object} LedgerInfo
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "StellarExpert shared UI components library",
5
+ "author": "orbitlens <orbit@stellar.expert>",
6
+ "license": "MIT",
7
+ "type": "module",
5
8
  "main": "index.js",
6
9
  "module": "./index.js",
7
10
  "types": "index.d.ts",
@@ -13,18 +16,15 @@
13
16
  "StellarExpert",
14
17
  "UI"
15
18
  ],
16
- "author": "orbitlens <orbit@stellar.expert>",
17
- "license": "MIT",
18
19
  "peerDependencies": {
19
- "@stellar/stellar-base": "^15.0.0",
20
- "@stellar/stellar-sdk": "^15.0.1",
21
- "@stellar-expert/asset-descriptor": "^1.5.0",
22
- "@stellar-expert/claimable-balance-utils": "^1.4.1",
20
+ "@stellar/stellar-sdk": "^16.0.0",
21
+ "@stellar-expert/asset-descriptor": "^2.0.0",
22
+ "@stellar-expert/claimable-balance-utils": "^2.0.0",
23
23
  "@stellar-expert/client-cache": "^1.1.0",
24
- "@stellar-expert/contract-wasm-interface-parser": "^4.0.0",
25
- "@stellar-expert/formatter": "^3.0.0",
24
+ "@stellar-expert/contract-wasm-interface-parser": "^5.0.0",
25
+ "@stellar-expert/formatter": "^3.1.0",
26
26
  "@stellar-expert/navigation": "^1.1.0",
27
- "@stellar-expert/tx-meta-effects-parser": "^8.3.3",
27
+ "@stellar-expert/tx-meta-effects-parser": "^9.3.0",
28
28
  "classnames": ">=2",
29
29
  "deepmerge": "^4.3.1",
30
30
  "prop-types": ">=15",
@@ -1,4 +1,4 @@
1
- import {StrKey} from '@stellar/stellar-base'
1
+ import {StrKey} from '@stellar/stellar-sdk'
2
2
 
3
3
  /**
4
4
  * Decode StrKey-encoded Stellar key and determine its type
@@ -1,4 +1,4 @@
1
- import {Keypair} from '@stellar/stellar-base'
1
+ import {Keypair} from '@stellar/stellar-sdk'
2
2
 
3
3
  /**
4
4
  * Convert the signature hint to the StrKey mask
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import {Networks, AuthRequiredFlag, AuthRevocableFlag, AuthClawbackEnabledFlag, AuthImmutableFlag} from '@stellar/stellar-base'
2
+ import {Networks, AuthRequiredFlag, AuthRevocableFlag, AuthClawbackEnabledFlag, AuthImmutableFlag} from '@stellar/stellar-sdk'
3
3
  import {AssetDescriptor} from '@stellar-expert/asset-descriptor'
4
4
  import {formatPrice, formatWithAutoPrecision, fromStroops, toStroops, shortenString} from '@stellar-expert/formatter'
5
5
  import {xdrParserUtils, contractPreimageEncoder} from '@stellar-expert/tx-meta-effects-parser'
@@ -1,4 +1,4 @@
1
- import {LiquidityPoolAsset} from '@stellar/stellar-base'
1
+ import {LiquidityPoolAsset} from '@stellar/stellar-sdk'
2
2
  import {AssetDescriptor} from '@stellar-expert/asset-descriptor'
3
3
  import {TypeFilterMatcher} from './type-filter-matcher'
4
4