@provex/react 1.2.3 → 1.2.5
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 +13 -19
- package/src/index.ts +0 -115
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provex/react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Portable React buy-flow component and hooks for the Provex protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -8,25 +8,19 @@
|
|
|
8
8
|
"url": "git+https://github.com/provex-tech/monorepo.git",
|
|
9
9
|
"directory": "packages/react"
|
|
10
10
|
},
|
|
11
|
-
"main": "
|
|
12
|
-
"
|
|
11
|
+
"main": "./dist/index.cjs",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
13
14
|
"exports": {
|
|
14
|
-
".":
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
},
|
|
15
20
|
"./styles": "./dist/styles/default.css"
|
|
16
21
|
},
|
|
17
22
|
"publishConfig": {
|
|
18
|
-
"access": "restricted"
|
|
19
|
-
"main": "dist/index.cjs",
|
|
20
|
-
"module": "dist/index.js",
|
|
21
|
-
"types": "dist/index.d.ts",
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"types": "./dist/index.d.ts",
|
|
25
|
-
"import": "./dist/index.js",
|
|
26
|
-
"require": "./dist/index.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./styles": "./dist/styles/default.css"
|
|
29
|
-
}
|
|
23
|
+
"access": "restricted"
|
|
30
24
|
},
|
|
31
25
|
"files": [
|
|
32
26
|
"dist",
|
|
@@ -41,8 +35,8 @@
|
|
|
41
35
|
},
|
|
42
36
|
"dependencies": {
|
|
43
37
|
"@ponder/client": "^0.16.0",
|
|
44
|
-
"@provex/abis": "
|
|
45
|
-
"@provex/utils": "
|
|
38
|
+
"@provex/abis": "1.2.5",
|
|
39
|
+
"@provex/utils": "1.2.5"
|
|
46
40
|
},
|
|
47
41
|
"peerDependencies": {
|
|
48
42
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -60,4 +54,4 @@
|
|
|
60
54
|
"typescript": "^5.9.2",
|
|
61
55
|
"vitest": "^3.0.0"
|
|
62
56
|
}
|
|
63
|
-
}
|
|
57
|
+
}
|
package/src/index.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
// ─── Types ──────────────────────────────────────────────────────────────────
|
|
2
|
-
export type {
|
|
3
|
-
ProvexConfig,
|
|
4
|
-
BuyProps,
|
|
5
|
-
WalletAdapter,
|
|
6
|
-
BuyPhase,
|
|
7
|
-
ProvexTheme,
|
|
8
|
-
UseProvexBuyOptions,
|
|
9
|
-
UseProvexBuyReturn,
|
|
10
|
-
PhaseComponentProps,
|
|
11
|
-
PhaseRenderProps,
|
|
12
|
-
} from './types'
|
|
13
|
-
|
|
14
|
-
// ─── Provider + hook ────────────────────────────────────────────────────────
|
|
15
|
-
export { ProvexProvider, useProvex } from './ProvexProvider'
|
|
16
|
-
export type { ProvexContextValue, ProvexProviderProps } from './ProvexProvider'
|
|
17
|
-
|
|
18
|
-
// ─── Layer 1: useProvexBuy hook ─────────────────────────────────────────────
|
|
19
|
-
export { useProvexBuy } from './useProvexBuy'
|
|
20
|
-
|
|
21
|
-
// ─── Layer 2: Context provider + phase sub-components ───────────────────────
|
|
22
|
-
export { ProvexBuyProvider, useProvexBuyContext } from './ProvexBuyContext'
|
|
23
|
-
export type { ProvexBuyProviderProps } from './ProvexBuyContext'
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
BrowsePhase,
|
|
27
|
-
CommittedPhase,
|
|
28
|
-
ProvingPhase,
|
|
29
|
-
CompletePhase,
|
|
30
|
-
} from './phases'
|
|
31
|
-
|
|
32
|
-
export type {
|
|
33
|
-
BrowsePhaseState,
|
|
34
|
-
CommittedPhaseState,
|
|
35
|
-
ProvingPhaseState,
|
|
36
|
-
CompletePhaseState,
|
|
37
|
-
} from './phases'
|
|
38
|
-
|
|
39
|
-
// ─── Layer 3: Ready-made widget ─────────────────────────────────────────────
|
|
40
|
-
export { ProvexBuy } from './ProvexBuy'
|
|
41
|
-
export { ProvexBuyWagmi } from './ProvexBuyWagmi'
|
|
42
|
-
export type { ProvexBuyWagmiProps } from './ProvexBuyWagmi'
|
|
43
|
-
|
|
44
|
-
// ─── ProveXClient (framework-agnostic core) ────────────────────────────────
|
|
45
|
-
export { ProveXClient, createProveXClient } from './client'
|
|
46
|
-
export {
|
|
47
|
-
ProveXError,
|
|
48
|
-
type ProveXClientConfig,
|
|
49
|
-
type ProveXErrorCode,
|
|
50
|
-
type PreparedTransaction,
|
|
51
|
-
type TransactionResult,
|
|
52
|
-
type WritableMethod,
|
|
53
|
-
type SignalIntentParams,
|
|
54
|
-
type SignalIntentResult,
|
|
55
|
-
type SignalIntentRawParams,
|
|
56
|
-
type CreateDepositParams,
|
|
57
|
-
type CreateDepositRawParams,
|
|
58
|
-
type DepositPaymentMethod,
|
|
59
|
-
type MakerRegistrationParams,
|
|
60
|
-
type PayeeDetails,
|
|
61
|
-
type AttestationParams,
|
|
62
|
-
type AttestationResponse,
|
|
63
|
-
} from './client'
|
|
64
|
-
|
|
65
|
-
// ─── Client factories (for advanced use outside React) ──────────────────────
|
|
66
|
-
export { createApiClient } from './lib/api'
|
|
67
|
-
export type { ApiClient } from './lib/api'
|
|
68
|
-
|
|
69
|
-
// ─── Protocol hooks ─────────────────────────────────────────────────────────
|
|
70
|
-
export {
|
|
71
|
-
useReputationLimits,
|
|
72
|
-
useProtocolFees,
|
|
73
|
-
useProtocolFeePercentage,
|
|
74
|
-
useReputation,
|
|
75
|
-
getTierDisplayInfo,
|
|
76
|
-
useDeposits,
|
|
77
|
-
getRate,
|
|
78
|
-
usePayeeDetails,
|
|
79
|
-
intentStatuses,
|
|
80
|
-
useSignalIntent,
|
|
81
|
-
useNullifierRegistry,
|
|
82
|
-
useAllowance,
|
|
83
|
-
useCancelIntent,
|
|
84
|
-
useReleaseFundsToPayer,
|
|
85
|
-
useV3Escrow,
|
|
86
|
-
useTransactionWithIndexer,
|
|
87
|
-
useProveXClient,
|
|
88
|
-
useWagmiWallet,
|
|
89
|
-
} from './hooks'
|
|
90
|
-
|
|
91
|
-
export type {
|
|
92
|
-
ReputationLimitsParams,
|
|
93
|
-
ReputationLimits,
|
|
94
|
-
ProtocolFeesResult,
|
|
95
|
-
UseProtocolFeesParams,
|
|
96
|
-
DepositInfo,
|
|
97
|
-
IntentStatus,
|
|
98
|
-
PayeeInfo,
|
|
99
|
-
SignalIntentStatus,
|
|
100
|
-
CancelIntentStatus,
|
|
101
|
-
ReleaseFundsStatus,
|
|
102
|
-
V3EscrowStatus,
|
|
103
|
-
V3EscrowCreateDepositParams,
|
|
104
|
-
TransactionPhase,
|
|
105
|
-
UseTransactionWithIndexerOptions,
|
|
106
|
-
TransactionSyncOptions,
|
|
107
|
-
MutationSyncOptions,
|
|
108
|
-
IndexerAdapter,
|
|
109
|
-
IndexedDeposit,
|
|
110
|
-
IndexedVerifier,
|
|
111
|
-
IndexedIntent,
|
|
112
|
-
ReputationData,
|
|
113
|
-
PaginationOptions,
|
|
114
|
-
PaginatedResult,
|
|
115
|
-
} from './hooks'
|