@lukso/transaction-view-headless 0.4.7 → 0.4.8-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/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +16 -0
- package/README.md +123 -25
- package/dist/composables/index.d.cts +3 -3
- package/dist/composables/index.d.ts +3 -3
- package/dist/{index-CNUHqRdk.d.ts → index-BLG7pD2a.d.ts} +3 -3
- package/dist/{index-BqL7xdDl.d.cts → index-TdG8zXTG.d.cts} +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/registry/index.d.cts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/{view-loader-D7ApWfdN.d.cts → view-loader-CXhggWeq.d.cts} +1 -1
- package/dist/{view-loader--mEEI8YY.d.ts → view-loader-CxOEQYt0.d.ts} +1 -1
- package/dist/{view-matching-C9G3z8lQ.d.cts → view-matching-B-IBOyWO.d.cts} +1 -1
- package/dist/{view-matching-C9G3z8lQ.d.ts → view-matching-B-IBOyWO.d.ts} +1 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/work/service-auth-simple/service-auth-simple/.npmrc". Failed to replace env in config: ${LUKSO_NPM_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @lukso/transaction-view-headless@0.4.
|
|
3
|
+
> @lukso/transaction-view-headless@0.4.8 build /home/runner/work/service-auth-simple/service-auth-simple/packages/transaction-view-headless
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: {"index":"src/index.ts","types/index":"src/types/index.ts","composables/index":"src/composables/index.ts","registry/index":"src/registry/index.ts","utils/index":"src/utils/index.ts"}
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
[34mCJS[39m Build start
|
|
14
14
|
[32mESM[39m [1mdist/index.js [22m[32m44.39 KB[39m
|
|
15
15
|
[32mESM[39m [1mdist/types/index.js [22m[32m1.72 KB[39m
|
|
16
|
-
[32mESM[39m [1mdist/composables/index.js [22m[32m37.78 KB[39m
|
|
17
16
|
[32mESM[39m [1mdist/registry/index.js [22m[32m13.51 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/composables/index.js [22m[32m37.78 KB[39m
|
|
18
18
|
[32mESM[39m [1mdist/utils/index.js [22m[32m5.68 KB[39m
|
|
19
19
|
[32mESM[39m [1mdist/index.js.map [22m[32m108.22 KB[39m
|
|
20
20
|
[32mESM[39m [1mdist/types/index.js.map [22m[32m9.19 KB[39m
|
|
21
21
|
[32mESM[39m [1mdist/composables/index.js.map [22m[32m91.99 KB[39m
|
|
22
22
|
[32mESM[39m [1mdist/registry/index.js.map [22m[32m29.88 KB[39m
|
|
23
23
|
[32mESM[39m [1mdist/utils/index.js.map [22m[32m13.75 KB[39m
|
|
24
|
-
[32mESM[39m ⚡️ Build success in
|
|
24
|
+
[32mESM[39m ⚡️ Build success in 163ms
|
|
25
25
|
[32mCJS[39m [1mdist/index.cjs [22m[32m48.25 KB[39m
|
|
26
26
|
[32mCJS[39m [1mdist/types/index.cjs [22m[32m2.98 KB[39m
|
|
27
27
|
[32mCJS[39m [1mdist/composables/index.cjs [22m[32m40.25 KB[39m
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
[32mCJS[39m [1mdist/composables/index.cjs.map [22m[32m92.12 KB[39m
|
|
33
33
|
[32mCJS[39m [1mdist/registry/index.cjs.map [22m[32m30.27 KB[39m
|
|
34
34
|
[32mCJS[39m [1mdist/utils/index.cjs.map [22m[32m13.93 KB[39m
|
|
35
|
-
[32mCJS[39m ⚡️ Build success in
|
|
35
|
+
[32mCJS[39m ⚡️ Build success in 189ms
|
|
36
36
|
📦 Build complete (build mode)
|
|
37
37
|
[34mDTS[39m Build start
|
|
38
|
-
[32mDTS[39m ⚡️ Build success in
|
|
38
|
+
[32mDTS[39m ⚡️ Build success in 36587ms
|
|
39
39
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.51 KB[39m
|
|
40
40
|
[32mDTS[39m [1mdist/types/index.d.ts [22m[32m8.36 KB[39m
|
|
41
41
|
[32mDTS[39m [1mdist/registry/index.d.ts [22m[32m1.65 KB[39m
|
|
42
42
|
[32mDTS[39m [1mdist/utils/index.d.ts [22m[32m1.97 KB[39m
|
|
43
43
|
[32mDTS[39m [1mdist/composables/index.d.ts [22m[32m1.09 KB[39m
|
|
44
|
-
[32mDTS[39m [1mdist/view-loader
|
|
45
|
-
[32mDTS[39m [1mdist/view-matching-
|
|
46
|
-
[32mDTS[39m [1mdist/index-
|
|
44
|
+
[32mDTS[39m [1mdist/view-loader-CxOEQYt0.d.ts [22m[32m3.76 KB[39m
|
|
45
|
+
[32mDTS[39m [1mdist/view-matching-B-IBOyWO.d.ts [22m[32m7.13 KB[39m
|
|
46
|
+
[32mDTS[39m [1mdist/index-BLG7pD2a.d.ts [22m[32m13.86 KB[39m
|
|
47
47
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m4.52 KB[39m
|
|
48
48
|
[32mDTS[39m [1mdist/types/index.d.cts [22m[32m8.36 KB[39m
|
|
49
49
|
[32mDTS[39m [1mdist/registry/index.d.cts [22m[32m1.65 KB[39m
|
|
50
50
|
[32mDTS[39m [1mdist/utils/index.d.cts [22m[32m1.97 KB[39m
|
|
51
51
|
[32mDTS[39m [1mdist/composables/index.d.cts [22m[32m1.09 KB[39m
|
|
52
|
-
[32mDTS[39m [1mdist/view-loader-
|
|
53
|
-
[32mDTS[39m [1mdist/view-matching-
|
|
54
|
-
[32mDTS[39m [1mdist/index-
|
|
52
|
+
[32mDTS[39m [1mdist/view-loader-CXhggWeq.d.cts [22m[32m3.76 KB[39m
|
|
53
|
+
[32mDTS[39m [1mdist/view-matching-B-IBOyWO.d.cts [22m[32m7.13 KB[39m
|
|
54
|
+
[32mDTS[39m [1mdist/index-TdG8zXTG.d.cts [22m[32m13.86 KB[39m
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/work/service-auth-simple/service-auth-simple/.npmrc". Failed to replace env in config: ${LUKSO_NPM_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @lukso/transaction-view-headless@0.4.
|
|
3
|
+
> @lukso/transaction-view-headless@0.4.8 typecheck /home/runner/work/service-auth-simple/service-auth-simple/packages/transaction-view-headless
|
|
4
4
|
> tsc --noEmit
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.8](https://github.com/lukso-network/service-auth-simple/compare/transaction-view-headless-v0.4.7...transaction-view-headless-v0.4.8) (2026-02-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Repair setup some more docs and move things into activity-sdk ([#115](https://github.com/lukso-network/service-auth-simple/issues/115)) ([0a1e0b9](https://github.com/lukso-network/service-auth-simple/commit/0a1e0b961d0134985d44ff2f18069384263bc3cd))
|
|
9
|
+
* Repair treeshaking problem. ([#110](https://github.com/lukso-network/service-auth-simple/issues/110)) ([336ac0b](https://github.com/lukso-network/service-auth-simple/commit/336ac0b8126a3b1b3df8e6bd4c3d465d7142d193))
|
|
10
|
+
* Some minor upgrades ([#114](https://github.com/lukso-network/service-auth-simple/issues/114)) ([637d4ef](https://github.com/lukso-network/service-auth-simple/commit/637d4efc9c53ab21ef57a999899829dc4533d62d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* The following workspace dependencies were updated
|
|
16
|
+
* dependencies
|
|
17
|
+
* @lukso/transaction-decoder bumped to 1.3.7
|
|
18
|
+
|
|
3
19
|
## [0.4.7](https://github.com/lukso-network/service-auth-simple/compare/transaction-view-headless-v0.4.6...transaction-view-headless-v0.4.7) (2026-01-14)
|
|
4
20
|
|
|
5
21
|
|
package/README.md
CHANGED
|
@@ -1,43 +1,141 @@
|
|
|
1
1
|
# @lukso/transaction-view-headless
|
|
2
2
|
|
|
3
|
-
Framework-agnostic
|
|
3
|
+
Framework-agnostic transaction decoder and view selection system. Maps decoded transactions (`DecoderResult`) to the best available display component, with support for multiple frameworks, lazy loading, and custom matchers.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- **Contract-Level Caching** - Metadata fetched once per contract, shared across batch operations
|
|
11
|
-
- **Extensible Metadata** - `transaction.custom` field for enhancer-populated view-matching data
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @lukso/transaction-view-headless
|
|
9
|
+
```
|
|
12
10
|
|
|
13
|
-
##
|
|
11
|
+
## Key Features
|
|
14
12
|
|
|
15
|
-
**
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
- **[CONTEXT_VARIANT_GUIDE.md](./CONTEXT_VARIANT_GUIDE.md)** - Context-aware view matching
|
|
13
|
+
- **Framework Priority** — Native Vue/React views preferred over Lit fallbacks. If a Vue wrapper exists, it's used in Vue apps; otherwise falls back to the Lit web component.
|
|
14
|
+
- **Numeric Custom Matchers** — Fine-grained view selection based on contract metadata (e.g., different views for LSP7 vs ERC20 tokens).
|
|
15
|
+
- **Index-Based Playback** — Flexible batch transaction display with summary, pagination, and expansion modes.
|
|
16
|
+
- **Contract-Level Caching** — Metadata fetched once per contract, shared across all operations in a batch.
|
|
17
|
+
- **Lazy Loading** — Views can be registered with callbacks (`() => import('./component')`) to reduce initial bundle size.
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
- **[Architecture Summary](../../docs/ARCHITECTURE_SUMMARY.md)** - Understanding the system
|
|
24
|
-
- **[Vue to Lit Conversion Guide](../../docs/VUE_TO_LIT_CONVERSION_GUIDE.md)** - Component conversion
|
|
25
|
-
- **[Optimization Strategies](../../docs/OPTIMIZATION_STRATEGIES.md)** - Performance patterns
|
|
19
|
+
## Usage
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
### View Selection
|
|
28
22
|
|
|
29
23
|
```typescript
|
|
30
|
-
import { useTransactionView } from '@lukso/transaction-view-headless'
|
|
24
|
+
import { useTransactionView, findBestTransactionView } from '@lukso/transaction-view-headless'
|
|
31
25
|
|
|
26
|
+
// Hook-based (with address resolution)
|
|
32
27
|
const { bestMatch, component, resolvedAddresses } = useTransactionView(transaction, {
|
|
33
28
|
framework: 'lit',
|
|
34
29
|
resolve: true,
|
|
35
|
-
chain: lukso
|
|
30
|
+
chain: lukso,
|
|
36
31
|
})
|
|
32
|
+
|
|
33
|
+
// Function-based (simple lookup)
|
|
34
|
+
const match = findBestTransactionView(decoderResult)
|
|
35
|
+
if (match) {
|
|
36
|
+
console.log(match.component) // The component class/element to render
|
|
37
|
+
}
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
### View Registration
|
|
41
|
+
|
|
42
|
+
Register views for specific transaction types:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import { getGlobalRegistry } from '@lukso/transaction-view-headless'
|
|
46
|
+
|
|
47
|
+
const registry = getGlobalRegistry()
|
|
48
|
+
|
|
49
|
+
registry.register({
|
|
50
|
+
type: 'LSP7Transfer',
|
|
51
|
+
framework: 'lit',
|
|
52
|
+
component: () => import('@lukso/transaction-view-components'),
|
|
53
|
+
priority: 10,
|
|
54
|
+
})
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Address Resolution
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import { useAddressResolution, useAddressQuery } from '@lukso/transaction-view-headless'
|
|
61
|
+
|
|
62
|
+
// Resolve an address to profile metadata
|
|
63
|
+
const { data, isLoading } = useAddressQuery(address, { chainId: 42 })
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Exports
|
|
67
|
+
|
|
68
|
+
| Import path | Contents |
|
|
69
|
+
|-------------|----------|
|
|
70
|
+
| `@lukso/transaction-view-headless` | Main entry — `useTransactionView`, `findBestTransactionView`, types |
|
|
71
|
+
| `@lukso/transaction-view-headless/composables` | All composable hooks |
|
|
72
|
+
| `@lukso/transaction-view-headless/types` | TypeScript type definitions |
|
|
73
|
+
| `@lukso/transaction-view-headless/registry` | `getGlobalRegistry()`, `getGlobalLoader()` |
|
|
74
|
+
| `@lukso/transaction-view-headless/utils` | Utility functions |
|
|
75
|
+
|
|
76
|
+
### Key Types
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
interface ViewDefinition {
|
|
80
|
+
type: string // Transaction type to match (e.g., 'LSP7Transfer')
|
|
81
|
+
framework: string // 'lit' | 'vue' | 'react'
|
|
82
|
+
component: any // Component class or lazy import callback
|
|
83
|
+
priority?: number // Higher = preferred (default: 0)
|
|
84
|
+
matcher?: (tx: DecoderResult) => number // Custom match scoring
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface ViewMatch {
|
|
88
|
+
definition: ViewDefinition
|
|
89
|
+
score: number
|
|
90
|
+
component: any
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface UseTransactionViewOptions {
|
|
94
|
+
framework?: string
|
|
95
|
+
resolve?: boolean // Enable address resolution
|
|
96
|
+
chain?: any // Viem chain object
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## How It Works
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
DecoderResult.type (e.g., "LSP7Transfer")
|
|
104
|
+
│
|
|
105
|
+
▼
|
|
106
|
+
Registry.findAll(type, framework)
|
|
107
|
+
│ Returns all matching ViewDefinitions
|
|
108
|
+
▼
|
|
109
|
+
Score & Sort
|
|
110
|
+
│ Custom matchers run, highest score wins
|
|
111
|
+
│ Framework priority: native > lit fallback
|
|
112
|
+
▼
|
|
113
|
+
Best Match
|
|
114
|
+
│ Lazy-loads component if needed
|
|
115
|
+
▼
|
|
116
|
+
Render Component
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Documentation
|
|
120
|
+
|
|
121
|
+
In-package guides for advanced usage:
|
|
122
|
+
|
|
123
|
+
- [REGISTRY_SUMMARY.md](./REGISTRY_SUMMARY.md) — Complete system overview
|
|
124
|
+
- [VIEW_REGISTRATION_GUIDE.md](./VIEW_REGISTRATION_GUIDE.md) — How to register views and create custom packages
|
|
125
|
+
- [PLAYBACK_GUIDE.md](./PLAYBACK_GUIDE.md) — Playback system and API reference
|
|
126
|
+
- [PLAYBACK_EXAMPLES.md](./PLAYBACK_EXAMPLES.md) — Real-world usage examples
|
|
127
|
+
- [CONTEXT_VARIANT_GUIDE.md](./CONTEXT_VARIANT_GUIDE.md) — Context-aware view matching
|
|
128
|
+
|
|
129
|
+
## Related Packages
|
|
130
|
+
|
|
131
|
+
| Package | Relationship |
|
|
132
|
+
|---------|-------------|
|
|
133
|
+
| `@lukso/transaction-decoder` | Provides `DecoderResult` data that this package routes to views |
|
|
134
|
+
| `@lukso/transaction-view-core` | Lit core views (AddressView, IconView, ValueView) |
|
|
135
|
+
| `@lukso/transaction-view-components` | Lit transaction components that register with this system |
|
|
136
|
+
| `@lukso/transaction-view-components-vue` | Vue wrappers registered as higher-priority alternatives |
|
|
137
|
+
| `@lukso/transaction-view-components-react` | React wrappers registered as higher-priority alternatives |
|
|
138
|
+
|
|
139
|
+
## License
|
|
40
140
|
|
|
41
|
-
-
|
|
42
|
-
- `src/registry/` - View matching and loading
|
|
43
|
-
- `src/types/` - TypeScript interfaces
|
|
141
|
+
Apache-2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, R as ResolvedAddress, T as TransactionPlaybackOptions,
|
|
2
|
-
export { V as ViewContext,
|
|
1
|
+
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, R as ResolvedAddress, T as TransactionPlaybackOptions, c as TransactionPlaybackState, U as UseTransactionViewOptions, d as UseTransactionViewResult, e as cacheAddress, f as clearAddressCache, g as createAddressResolutionState, h as createTransactionPlayback, j as findAllTransactionViews, k as findBestTransactionView, l as getCachedAddress, n as getLuksoConfig, o as getValidPlaybackIndices, q as isAddressResolutionEnabled, r as isValidPlaybackIndex, s as resolveAddress, t as resolveAddressWithState, u as resolveAddresses, w as setLuksoConfig, x as useAddressResolver, y as useImageLoader, z as useLuksoMainnet, B as useLuksoTestnet, C as useTransactionPlayback, D as useTransactionView } from '../index-TdG8zXTG.cjs';
|
|
2
|
+
export { V as ViewContext, b as ViewContextRequirements, e as ViewMatch, i as ViewVariant } from '../view-matching-B-IBOyWO.cjs';
|
|
3
3
|
import '@preact/signals-core';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '@lukso/transaction-decoder';
|
|
6
|
-
import '../view-loader-
|
|
6
|
+
import '../view-loader-CXhggWeq.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, R as ResolvedAddress, T as TransactionPlaybackOptions,
|
|
2
|
-
export { V as ViewContext,
|
|
1
|
+
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, R as ResolvedAddress, T as TransactionPlaybackOptions, c as TransactionPlaybackState, U as UseTransactionViewOptions, d as UseTransactionViewResult, e as cacheAddress, f as clearAddressCache, g as createAddressResolutionState, h as createTransactionPlayback, j as findAllTransactionViews, k as findBestTransactionView, l as getCachedAddress, n as getLuksoConfig, o as getValidPlaybackIndices, q as isAddressResolutionEnabled, r as isValidPlaybackIndex, s as resolveAddress, t as resolveAddressWithState, u as resolveAddresses, w as setLuksoConfig, x as useAddressResolver, y as useImageLoader, z as useLuksoMainnet, B as useLuksoTestnet, C as useTransactionPlayback, D as useTransactionView } from '../index-BLG7pD2a.js';
|
|
2
|
+
export { V as ViewContext, b as ViewContextRequirements, e as ViewMatch, i as ViewVariant } from '../view-matching-B-IBOyWO.js';
|
|
3
3
|
import '@preact/signals-core';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '@lukso/transaction-decoder';
|
|
6
|
-
import '../view-loader
|
|
6
|
+
import '../view-loader-CxOEQYt0.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _preact_signals_core from '@preact/signals-core';
|
|
2
2
|
import { Chain } from 'viem';
|
|
3
3
|
import { ProfileData, AssetData, TokenData, ImageData, DecoderResult, AddressIdentityCache, EnhancedInfo } from '@lukso/transaction-decoder';
|
|
4
|
-
import {
|
|
5
|
-
import { V as ViewLoadingError } from './view-loader
|
|
4
|
+
import { e as ViewMatch, g as ViewMatchOptions, h as ViewRegistry } from './view-matching-B-IBOyWO.js';
|
|
5
|
+
import { V as ViewLoadingError } from './view-loader-CxOEQYt0.js';
|
|
6
6
|
|
|
7
7
|
interface LuksoConfig {
|
|
8
8
|
/** Chain ID for LUKSO network (42 for mainnet, 4201 for testnet) */
|
|
@@ -371,4 +371,4 @@ declare function findBestTransactionView(transaction: DecoderResult, framework:
|
|
|
371
371
|
*/
|
|
372
372
|
declare function findAllTransactionViews(transaction: DecoderResult, framework: 'lit' | 'rn', registry?: ViewRegistry): ViewMatch[];
|
|
373
373
|
|
|
374
|
-
export { type AddressImageData as A,
|
|
374
|
+
export { type AddressImageData as A, useLuksoTestnet as B, useTransactionPlayback as C, useTransactionView as D, type ImageLoadOptions as I, type LuksoConfig as L, type PlaybackIndexResult as P, type ResolvedAddress as R, type TransactionPlaybackOptions as T, type UseTransactionViewOptions as U, type AddressResolutionState as a, type ImageResult as b, type TransactionPlaybackState as c, type UseTransactionViewResult as d, cacheAddress as e, clearAddressCache as f, createAddressResolutionState as g, createTransactionPlayback as h, currentChainSignal as i, findAllTransactionViews as j, findBestTransactionView as k, getCachedAddress as l, getCurrentChain as m, getLuksoConfig as n, getValidPlaybackIndices as o, initializeChainSignal as p, isAddressResolutionEnabled as q, isValidPlaybackIndex as r, resolveAddress as s, resolveAddressWithState as t, resolveAddresses as u, setCurrentChain as v, setLuksoConfig as w, useAddressResolver as x, useImageLoader as y, useLuksoMainnet as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _preact_signals_core from '@preact/signals-core';
|
|
2
2
|
import { Chain } from 'viem';
|
|
3
3
|
import { ProfileData, AssetData, TokenData, ImageData, DecoderResult, AddressIdentityCache, EnhancedInfo } from '@lukso/transaction-decoder';
|
|
4
|
-
import {
|
|
5
|
-
import { V as ViewLoadingError } from './view-loader-
|
|
4
|
+
import { e as ViewMatch, g as ViewMatchOptions, h as ViewRegistry } from './view-matching-B-IBOyWO.cjs';
|
|
5
|
+
import { V as ViewLoadingError } from './view-loader-CXhggWeq.cjs';
|
|
6
6
|
|
|
7
7
|
interface LuksoConfig {
|
|
8
8
|
/** Chain ID for LUKSO network (42 for mainnet, 4201 for testnet) */
|
|
@@ -371,4 +371,4 @@ declare function findBestTransactionView(transaction: DecoderResult, framework:
|
|
|
371
371
|
*/
|
|
372
372
|
declare function findAllTransactionViews(transaction: DecoderResult, framework: 'lit' | 'rn', registry?: ViewRegistry): ViewMatch[];
|
|
373
373
|
|
|
374
|
-
export { type AddressImageData as A,
|
|
374
|
+
export { type AddressImageData as A, useLuksoTestnet as B, useTransactionPlayback as C, useTransactionView as D, type ImageLoadOptions as I, type LuksoConfig as L, type PlaybackIndexResult as P, type ResolvedAddress as R, type TransactionPlaybackOptions as T, type UseTransactionViewOptions as U, type AddressResolutionState as a, type ImageResult as b, type TransactionPlaybackState as c, type UseTransactionViewResult as d, cacheAddress as e, clearAddressCache as f, createAddressResolutionState as g, createTransactionPlayback as h, currentChainSignal as i, findAllTransactionViews as j, findBestTransactionView as k, getCachedAddress as l, getCurrentChain as m, getLuksoConfig as n, getValidPlaybackIndices as o, initializeChainSignal as p, isAddressResolutionEnabled as q, isValidPlaybackIndex as r, resolveAddress as s, resolveAddressWithState as t, resolveAddresses as u, setCurrentChain as v, setLuksoConfig as w, useAddressResolver as x, useImageLoader as y, useLuksoMainnet as z };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as ResolvedAddress } from './index-
|
|
2
|
-
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, T as TransactionPlaybackOptions,
|
|
3
|
-
export { D as DecoderRecordForSelection, F as FrameworkSupport,
|
|
4
|
-
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from './view-loader-
|
|
1
|
+
import { R as ResolvedAddress } from './index-TdG8zXTG.cjs';
|
|
2
|
+
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, T as TransactionPlaybackOptions, c as TransactionPlaybackState, U as UseTransactionViewOptions, d as UseTransactionViewResult, e as cacheAddress, f as clearAddressCache, g as createAddressResolutionState, h as createTransactionPlayback, i as currentChainSignal, j as findAllTransactionViews, k as findBestTransactionView, l as getCachedAddress, m as getCurrentChain, n as getLuksoConfig, o as getValidPlaybackIndices, p as initializeChainSignal, q as isAddressResolutionEnabled, r as isValidPlaybackIndex, s as resolveAddress, t as resolveAddressWithState, u as resolveAddresses, v as setCurrentChain, w as setLuksoConfig, x as useAddressResolver, y as useImageLoader, z as useLuksoMainnet, B as useLuksoTestnet, C as useTransactionPlayback, D as useTransactionView } from './index-TdG8zXTG.cjs';
|
|
3
|
+
export { D as DecoderRecordForSelection, F as FrameworkSupport, a as FrameworkViewConfig, V as ViewContext, b as ViewContextRequirements, c as ViewDefinition, d as ViewLoader, e as ViewMatch, f as ViewMatchCriteria, g as ViewMatchOptions, h as ViewRegistry, i as ViewVariant } from './view-matching-B-IBOyWO.cjs';
|
|
4
|
+
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from './view-loader-CXhggWeq.cjs';
|
|
5
5
|
export { DefaultViewRegistry, getGlobalRegistry, resetGlobalRegistry, setGlobalRegistry } from './registry/index.cjs';
|
|
6
6
|
export { HeaderInfoEvent, TransactionHeaderInfo, TransactionModification, TransactionModificationEvent, TransactionModificationWithContext, TransactionViewEvents, dispatchHeaderInfo, dispatchTransactionModification, isHeaderInfoEvent, isTransactionModificationEvent } from './types/index.cjs';
|
|
7
7
|
export { CRITERIA_WEIGHTS, calculateMatchScore, findMatchingViews } from './utils/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as ResolvedAddress } from './index-
|
|
2
|
-
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, T as TransactionPlaybackOptions,
|
|
3
|
-
export { D as DecoderRecordForSelection, F as FrameworkSupport,
|
|
4
|
-
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from './view-loader
|
|
1
|
+
import { R as ResolvedAddress } from './index-BLG7pD2a.js';
|
|
2
|
+
export { A as AddressImageData, a as AddressResolutionState, I as ImageLoadOptions, b as ImageResult, L as LuksoConfig, P as PlaybackIndexResult, T as TransactionPlaybackOptions, c as TransactionPlaybackState, U as UseTransactionViewOptions, d as UseTransactionViewResult, e as cacheAddress, f as clearAddressCache, g as createAddressResolutionState, h as createTransactionPlayback, i as currentChainSignal, j as findAllTransactionViews, k as findBestTransactionView, l as getCachedAddress, m as getCurrentChain, n as getLuksoConfig, o as getValidPlaybackIndices, p as initializeChainSignal, q as isAddressResolutionEnabled, r as isValidPlaybackIndex, s as resolveAddress, t as resolveAddressWithState, u as resolveAddresses, v as setCurrentChain, w as setLuksoConfig, x as useAddressResolver, y as useImageLoader, z as useLuksoMainnet, B as useLuksoTestnet, C as useTransactionPlayback, D as useTransactionView } from './index-BLG7pD2a.js';
|
|
3
|
+
export { D as DecoderRecordForSelection, F as FrameworkSupport, a as FrameworkViewConfig, V as ViewContext, b as ViewContextRequirements, c as ViewDefinition, d as ViewLoader, e as ViewMatch, f as ViewMatchCriteria, g as ViewMatchOptions, h as ViewRegistry, i as ViewVariant } from './view-matching-B-IBOyWO.js';
|
|
4
|
+
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from './view-loader-CxOEQYt0.js';
|
|
5
5
|
export { DefaultViewRegistry, getGlobalRegistry, resetGlobalRegistry, setGlobalRegistry } from './registry/index.js';
|
|
6
6
|
export { HeaderInfoEvent, TransactionHeaderInfo, TransactionModification, TransactionModificationEvent, TransactionModificationWithContext, TransactionViewEvents, dispatchHeaderInfo, dispatchTransactionModification, isHeaderInfoEvent, isTransactionModificationEvent } from './types/index.js';
|
|
7
7
|
export { CRITERIA_WEIGHTS, calculateMatchScore, findMatchingViews } from './utils/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from '../view-loader-
|
|
1
|
+
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from '../view-loader-CXhggWeq.cjs';
|
|
2
2
|
import { DecoderResult } from '@lukso/transaction-decoder';
|
|
3
|
-
import {
|
|
3
|
+
import { h as ViewRegistry, c as ViewDefinition, g as ViewMatchOptions, e as ViewMatch } from '../view-matching-B-IBOyWO.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Default view registry implementation
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from '../view-loader
|
|
1
|
+
export { L as LoaderHelpers, U as UniversalViewLoader, V as ViewLoadingError, g as getGlobalLoader, s as setGlobalLoader } from '../view-loader-CxOEQYt0.js';
|
|
2
2
|
import { DecoderResult } from '@lukso/transaction-decoder';
|
|
3
|
-
import {
|
|
3
|
+
import { h as ViewRegistry, c as ViewDefinition, g as ViewMatchOptions, e as ViewMatch } from '../view-matching-B-IBOyWO.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Default view registry implementation
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DecoderRecordForSelection, F as FrameworkSupport,
|
|
1
|
+
export { D as DecoderRecordForSelection, F as FrameworkSupport, a as FrameworkViewConfig, V as ViewContext, b as ViewContextRequirements, c as ViewDefinition, d as ViewLoader, e as ViewMatch, f as ViewMatchCriteria, g as ViewMatchOptions, h as ViewRegistry, i as ViewVariant } from '../view-matching-B-IBOyWO.cjs';
|
|
2
2
|
import '@lukso/transaction-decoder';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DecoderRecordForSelection, F as FrameworkSupport,
|
|
1
|
+
export { D as DecoderRecordForSelection, F as FrameworkSupport, a as FrameworkViewConfig, V as ViewContext, b as ViewContextRequirements, c as ViewDefinition, d as ViewLoader, e as ViewMatch, f as ViewMatchCriteria, g as ViewMatchOptions, h as ViewRegistry, i as ViewVariant } from '../view-matching-B-IBOyWO.js';
|
|
2
2
|
import '@lukso/transaction-decoder';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DecoderResult } from '@lukso/transaction-decoder';
|
|
2
|
-
import {
|
|
2
|
+
import { c as ViewDefinition, g as ViewMatchOptions, f as ViewMatchCriteria, e as ViewMatch } from '../view-matching-B-IBOyWO.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Weights for different matching criteria (higher = more important)
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DecoderResult } from '@lukso/transaction-decoder';
|
|
2
|
-
import {
|
|
2
|
+
import { c as ViewDefinition, g as ViewMatchOptions, f as ViewMatchCriteria, e as ViewMatch } from '../view-matching-B-IBOyWO.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Weights for different matching criteria (higher = more important)
|
|
@@ -200,4 +200,4 @@ interface ViewRegistry {
|
|
|
200
200
|
clear(): void;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
export type { DecoderRecordForSelection as D, FrameworkSupport as F, ViewContext as V,
|
|
203
|
+
export type { DecoderRecordForSelection as D, FrameworkSupport as F, ViewContext as V, FrameworkViewConfig as a, ViewContextRequirements as b, ViewDefinition as c, ViewLoader as d, ViewMatch as e, ViewMatchCriteria as f, ViewMatchOptions as g, ViewRegistry as h, ViewVariant as i };
|
|
@@ -200,4 +200,4 @@ interface ViewRegistry {
|
|
|
200
200
|
clear(): void;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
export type { DecoderRecordForSelection as D, FrameworkSupport as F, ViewContext as V,
|
|
203
|
+
export type { DecoderRecordForSelection as D, FrameworkSupport as F, ViewContext as V, FrameworkViewConfig as a, ViewContextRequirements as b, ViewDefinition as c, ViewLoader as d, ViewMatch as e, ViewMatchCriteria as f, ViewMatchOptions as g, ViewRegistry as h, ViewVariant as i };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukso/transaction-view-headless",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8-dev.2df3eae",
|
|
4
4
|
"description": "Framework-agnostic transaction decoder and view selection system",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@preact/signals-core": "^1.
|
|
37
|
-
"@tanstack/query-core": "^5.90.
|
|
38
|
-
"viem": "^2.
|
|
39
|
-
"@lukso/transaction-decoder": "1.3.
|
|
36
|
+
"@preact/signals-core": "^1.13.0",
|
|
37
|
+
"@tanstack/query-core": "^5.90.20",
|
|
38
|
+
"viem": "^2.46.1",
|
|
39
|
+
"@lukso/transaction-decoder": "1.3.7-dev.2df3eae"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^25.
|
|
42
|
+
"@types/node": "^25.2.3",
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
44
|
"typescript": "^5.9.3"
|
|
45
45
|
},
|