@lukso/transaction-view-core 0.6.8 → 0.6.10-dev.2df3eae

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/transaction-view-core",
3
- "version": "0.6.8",
3
+ "version": "0.6.10-dev.2df3eae",
4
4
  "description": "Core components and hooks for LUKSO transaction display",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -34,23 +34,23 @@
34
34
  "url": "https://github.com/lukso-network/service-auth-simple.git"
35
35
  },
36
36
  "dependencies": {
37
- "@lukso/web-components": "^1.173.3",
38
- "@preact/signals-core": "^1.12.1",
37
+ "@lukso/web-components": "^1.179.0",
38
+ "@preact/signals-core": "^1.13.0",
39
39
  "ethereum-blockies-base64": "^1.0.2",
40
- "viem": "^2.43.5",
41
- "@lukso/transaction-decoder": "1.3.6",
42
- "@lukso/transaction-view-headless": "0.4.7"
40
+ "viem": "^2.46.1",
41
+ "@lukso/transaction-decoder": "1.3.7-dev.2df3eae",
42
+ "@lukso/transaction-view-headless": "0.4.8-dev.2df3eae"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@lit/task": "^1.0.3",
46
- "lit": "3.3.1"
46
+ "lit": "^3.3.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@lit/task": "^1.0.3",
50
50
  "@tailwindcss/typography": "^0.5.19",
51
51
  "@types/postcss-import": "^14.0.3",
52
- "autoprefixer": "^10.4.23",
53
- "lit": "3.3.1",
52
+ "autoprefixer": "^10.4.24",
53
+ "lit": "3.3.2",
54
54
  "postcss": "^8.5.6",
55
55
  "postcss-import": "^16.1.1",
56
56
  "tailwindcss": "^3.4.19",
@@ -8,7 +8,7 @@ import '../shared/address-view.js'
8
8
  import '../shared/value-view.js'
9
9
  import '../shared/image-list.js'
10
10
  // Import LUKSO web components
11
- import '@lukso/web-components'
11
+ import '@lukso/web-components/components'
12
12
  import { Task } from '@lit/task'
13
13
  import {
14
14
  type ResolvedAddress,
@@ -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?.lsp4TokenName,
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?.lsp4TokenSymbol,
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
  `
@@ -105,7 +105,7 @@ export class AddressView extends CoreLitElement {
105
105
  this.isLoadingAddress = false
106
106
  }
107
107
  },
108
- args: () => [this.address],
108
+ args: () => [this.address] as const,
109
109
  })
110
110
 
111
111
  /**
@@ -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 {
@@ -30,6 +30,7 @@ export function safeCustomElement(tagName: string) {
30
30
  if (typeof customElements !== 'undefined' && !customElements.get(tagName)) {
31
31
  customElements.define(tagName, classOrDescriptor)
32
32
  }
33
+
33
34
  return classOrDescriptor
34
35
  }
35
36
  }