@sip-protocol/react 0.1.0 → 0.1.1
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/README.md +54 -14
- package/dist/index.d.mts +1224 -6
- package/dist/index.d.ts +1224 -6
- package/dist/index.js +5783 -10
- package/dist/index.mjs +5777 -9
- package/package.json +9 -8
- package/src/components/ethereum/index.ts +55 -0
- package/src/components/ethereum/privacy-toggle.tsx +822 -0
- package/src/components/ethereum/stealth-address-display.tsx +1050 -0
- package/src/components/ethereum/transaction-history.tsx +1187 -0
- package/src/components/ethereum/transaction-tracker.tsx +302 -0
- package/src/components/ethereum/viewing-key-manager.tsx +228 -0
- package/src/components/index.ts +107 -0
- package/src/components/privacy-toggle.tsx +548 -0
- package/src/components/stealth-address-display.tsx +770 -0
- package/src/components/transaction-history.tsx +651 -0
- package/src/components/transaction-tracker.tsx +1079 -0
- package/src/components/viewing-key-manager.tsx +1576 -0
- package/src/hooks/index.ts +61 -0
- package/src/hooks/use-privacy-advisor.ts +371 -0
- package/src/hooks/use-private-swap.ts +5 -5
- package/src/hooks/use-proof-composition.ts +654 -0
- package/src/hooks/use-scan-payments.ts +504 -0
- package/src/hooks/use-stealth-address.ts +23 -7
- package/src/hooks/use-stealth-transfer.ts +284 -0
- package/src/hooks/use-transaction-history.ts +435 -0
- package/src/index.ts +75 -0
package/src/index.ts
CHANGED
|
@@ -8,3 +8,78 @@ export {
|
|
|
8
8
|
usePrivateSwap,
|
|
9
9
|
useViewingKey,
|
|
10
10
|
} from './hooks'
|
|
11
|
+
|
|
12
|
+
// Components
|
|
13
|
+
export {
|
|
14
|
+
// Generic components (NEAR-focused)
|
|
15
|
+
PrivacyToggle,
|
|
16
|
+
usePrivacyToggle,
|
|
17
|
+
type PrivacyLevel,
|
|
18
|
+
type PrivacyToggleProps,
|
|
19
|
+
type GasEstimate,
|
|
20
|
+
type PrivacyLevelInfo,
|
|
21
|
+
StealthAddressDisplay,
|
|
22
|
+
useStealthAddressDisplay,
|
|
23
|
+
isValidStealthAddress,
|
|
24
|
+
truncateAddress,
|
|
25
|
+
NEAR_NETWORKS,
|
|
26
|
+
type StealthAddressDisplayProps,
|
|
27
|
+
type OwnershipStatus,
|
|
28
|
+
type NetworkConfig,
|
|
29
|
+
TransactionTracker,
|
|
30
|
+
useTransactionTracker,
|
|
31
|
+
type TransactionTrackerProps,
|
|
32
|
+
type TransactionStatus,
|
|
33
|
+
type PrivacyVerificationStatus,
|
|
34
|
+
type TransactionActionType,
|
|
35
|
+
type TransactionAction,
|
|
36
|
+
type PrivacyVerification,
|
|
37
|
+
type PrivacyTransaction,
|
|
38
|
+
ViewingKeyManager,
|
|
39
|
+
useViewingKeyManager,
|
|
40
|
+
type ViewingKeyManagerProps,
|
|
41
|
+
type ViewingKey,
|
|
42
|
+
type ViewingKeyStatus,
|
|
43
|
+
type ViewingKeyUsage,
|
|
44
|
+
type KeyExportFormat,
|
|
45
|
+
type KeyImportSource,
|
|
46
|
+
// Ethereum-specific components (M18)
|
|
47
|
+
EthereumPrivacyToggle,
|
|
48
|
+
useEthereumPrivacyToggle,
|
|
49
|
+
type EthereumPrivacyToggleProps,
|
|
50
|
+
type EthereumPrivacyLevel,
|
|
51
|
+
type EthereumNetworkId,
|
|
52
|
+
type EthereumGasEstimate,
|
|
53
|
+
type EthereumPrivacyLevelInfo,
|
|
54
|
+
type NetworkGasConfig,
|
|
55
|
+
EthereumTransactionTracker,
|
|
56
|
+
useEthereumTransactionTracker,
|
|
57
|
+
ETHEREUM_NETWORKS,
|
|
58
|
+
getNetworkByChainId,
|
|
59
|
+
type EthereumTransactionTrackerProps,
|
|
60
|
+
type EthereumNetwork,
|
|
61
|
+
EthereumViewingKeyManager,
|
|
62
|
+
useEthereumViewingKey,
|
|
63
|
+
type EthereumViewingKeyManagerProps,
|
|
64
|
+
type EthereumViewingKey,
|
|
65
|
+
EthereumStealthAddressDisplay,
|
|
66
|
+
useEthereumStealthAddressDisplay,
|
|
67
|
+
ETHEREUM_STEALTH_NETWORKS,
|
|
68
|
+
isValidEthereumAddress,
|
|
69
|
+
isValidEthereumStealthAddress,
|
|
70
|
+
isValidEphemeralPublicKey,
|
|
71
|
+
truncateEthereumAddress,
|
|
72
|
+
type EthereumStealthAddressDisplayProps,
|
|
73
|
+
type EthereumOwnershipStatus,
|
|
74
|
+
type EthereumStealthNetworkId,
|
|
75
|
+
type EthereumStealthNetworkConfig,
|
|
76
|
+
TransactionHistory,
|
|
77
|
+
useEthereumTransactionHistory,
|
|
78
|
+
type TransactionHistoryProps,
|
|
79
|
+
type PrivacyTransactionHistoryItem,
|
|
80
|
+
type TransactionHistoryFilter,
|
|
81
|
+
type TransactionHistorySort,
|
|
82
|
+
// NEAR Transaction History (M17-NEAR-20)
|
|
83
|
+
NEARTransactionHistoryView,
|
|
84
|
+
type NEARTransactionHistoryViewProps,
|
|
85
|
+
} from './components'
|