@lukso/transaction-view-core 0.6.9 → 0.6.10-dev.30530d6
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/.turbo/turbo-build.log +16 -16
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +2 -0
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +29 -1
- package/dist/shared/index.d.ts +29 -1
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/asset-card.ts +8 -5
- package/src/shared/address-view.ts +1 -1
- package/src/shared/index.ts +1 -0
- package/src/shared/safe-custom-element.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukso/transaction-view-core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10-dev.30530d6",
|
|
4
4
|
"description": "Core components and hooks for LUKSO transaction display",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@preact/signals-core": "^1.13.0",
|
|
39
39
|
"ethereum-blockies-base64": "^1.0.2",
|
|
40
40
|
"viem": "^2.46.1",
|
|
41
|
-
"@lukso/transaction-
|
|
42
|
-
"@lukso/transaction-
|
|
41
|
+
"@lukso/transaction-decoder": "1.3.7-dev.30530d6",
|
|
42
|
+
"@lukso/transaction-view-headless": "0.4.8-dev.30530d6"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@lit/task": "^1.0.3",
|
|
@@ -131,6 +131,7 @@ export class AssetCard extends CoreLitElement {
|
|
|
131
131
|
|
|
132
132
|
private _renderContractAddress() {
|
|
133
133
|
const data = this._resolutionTask.value
|
|
134
|
+
if (!data?.address) return ''
|
|
134
135
|
|
|
135
136
|
return html`
|
|
136
137
|
<div class="section">
|
|
@@ -140,7 +141,7 @@ export class AssetCard extends CoreLitElement {
|
|
|
140
141
|
<address-view
|
|
141
142
|
address=${data.address}
|
|
142
143
|
size="medium"
|
|
143
|
-
label=${data.lsp4TokenName}
|
|
144
|
+
label=${data.lsp4TokenName ?? ''}
|
|
144
145
|
max-width=${100}
|
|
145
146
|
.showIdenticon=${false}
|
|
146
147
|
?is-card-view=${true}
|
|
@@ -155,15 +156,16 @@ export class AssetCard extends CoreLitElement {
|
|
|
155
156
|
|
|
156
157
|
private _renderAssetLongName() {
|
|
157
158
|
const data = this._resolutionTask.value
|
|
159
|
+
if (!data) return ''
|
|
158
160
|
|
|
159
161
|
return html`
|
|
160
162
|
${when(
|
|
161
|
-
data
|
|
163
|
+
data.lsp4TokenName,
|
|
162
164
|
() => html`
|
|
163
165
|
<value-view
|
|
164
166
|
?is-card-view=${true}
|
|
165
167
|
?show-copy-button=${true}
|
|
166
|
-
value=${data.lsp4TokenName}
|
|
168
|
+
value=${data.lsp4TokenName ?? ''}
|
|
167
169
|
label="Token Name"
|
|
168
170
|
></value-view>
|
|
169
171
|
`
|
|
@@ -173,15 +175,16 @@ export class AssetCard extends CoreLitElement {
|
|
|
173
175
|
|
|
174
176
|
private _renderAssetSymbol() {
|
|
175
177
|
const data = this._resolutionTask.value
|
|
178
|
+
if (!data) return ''
|
|
176
179
|
|
|
177
180
|
return html`
|
|
178
181
|
${when(
|
|
179
|
-
data
|
|
182
|
+
data.lsp4TokenSymbol,
|
|
180
183
|
() => html`
|
|
181
184
|
<value-view
|
|
182
185
|
?is-card-view=${true}
|
|
183
186
|
?show-copy-button=${true}
|
|
184
|
-
value=${data.lsp4TokenSymbol}
|
|
187
|
+
value=${data.lsp4TokenSymbol ?? ''}
|
|
185
188
|
label="Symbol"
|
|
186
189
|
></value-view>
|
|
187
190
|
`
|
package/src/shared/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export {
|
|
|
15
15
|
} from './image-loader-controller.js'
|
|
16
16
|
export * from './notification-view'
|
|
17
17
|
export * from './progress-view'
|
|
18
|
+
export * from './safe-custom-element'
|
|
18
19
|
export * from './scroll-to-bottom-button'
|
|
19
20
|
// Export signal integration controllers and utilities
|
|
20
21
|
export {
|