@frak-labs/nexus-sdk 0.0.15 → 0.0.17
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/dist/{NexusContext-CSlCNW-G.d.cts → FrakContext-LbQht1ep.d.cts} +2 -2
- package/dist/{NexusContext-CSlCNW-G.d.ts → FrakContext-LbQht1ep.d.ts} +2 -2
- package/dist/bundle/bundle.js +3 -3
- package/dist/{chunk-KEATMEOW.cjs → chunk-6GPWXPN4.cjs} +26 -23
- package/dist/{chunk-C25NTD45.cjs → chunk-A3XYA7S7.cjs} +28 -14
- package/dist/{chunk-2LAGZ6S5.js → chunk-B75G6TB3.js} +38 -30
- package/dist/{chunk-VMNURFPI.js → chunk-BP7RT2HB.js} +19 -16
- package/dist/{chunk-4ADWI2GG.cjs → chunk-ES3EBWJ6.cjs} +18 -18
- package/dist/{chunk-4LT3U3H4.cjs → chunk-H7YKYMTC.cjs} +41 -33
- package/dist/{chunk-K4FOGADW.js → chunk-HY6YATLS.js} +3 -1
- package/dist/{chunk-I47XQDS3.js → chunk-TIKEZMSD.js} +16 -2
- package/dist/{chunk-DILTMQBI.cjs → chunk-UFJ7W6CQ.cjs} +3 -1
- package/dist/{chunk-ARQTOP44.js → chunk-VXVUPIW7.js} +1 -1
- package/dist/{client-B3Guoe3I.d.ts → client-ALy_TEwJ.d.ts} +28 -8
- package/dist/{client-Of9uIxuI.d.cts → client-DaEox5q4.d.cts} +28 -8
- package/dist/core/actions/index.cjs +5 -5
- package/dist/core/actions/index.d.cts +6 -7
- package/dist/core/actions/index.d.ts +6 -7
- package/dist/core/actions/index.js +4 -4
- package/dist/core/index.cjs +10 -4
- package/dist/core/index.d.cts +41 -9
- package/dist/core/index.d.ts +41 -9
- package/dist/core/index.js +11 -5
- package/dist/core/interactions/index.cjs +5 -3
- package/dist/core/interactions/index.d.cts +9 -1
- package/dist/core/interactions/index.d.ts +9 -1
- package/dist/core/interactions/index.js +6 -4
- package/dist/react/index.cjs +34 -34
- package/dist/react/index.d.cts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +16 -16
- package/dist/{sendTransaction-3d8jO9CJ.d.ts → sendTransaction-BOd-pvXr.d.ts} +2 -2
- package/dist/{sendTransaction-Cz6FoB9_.d.cts → sendTransaction-MhdJPTWd.d.cts} +2 -2
- package/package.json +3 -3
package/dist/react/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkES3EBWJ6cjs = require('../chunk-ES3EBWJ6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -9,16 +9,16 @@ var _chunk4ADWI2GGcjs = require('../chunk-4ADWI2GG.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6GPWXPN4cjs = require('../chunk-6GPWXPN4.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('../chunk-
|
|
21
|
-
require('../chunk-
|
|
19
|
+
var _chunkH7YKYMTCcjs = require('../chunk-H7YKYMTC.cjs');
|
|
20
|
+
require('../chunk-A3XYA7S7.cjs');
|
|
21
|
+
require('../chunk-UFJ7W6CQ.cjs');
|
|
22
22
|
|
|
23
23
|
// src/react/provider/NexusConfigProvider.ts
|
|
24
24
|
var _react = require('react');
|
|
@@ -50,8 +50,8 @@ function NexusConfigProvider(parameters) {
|
|
|
50
50
|
function useNexusConfig() {
|
|
51
51
|
const config = _react.useContext.call(void 0, NexusConfigContext);
|
|
52
52
|
if (!config) {
|
|
53
|
-
throw new (0,
|
|
54
|
-
|
|
53
|
+
throw new (0, _chunkH7YKYMTCcjs.FrakRpcError)(
|
|
54
|
+
_chunkH7YKYMTCcjs.RpcErrorCodes.configError,
|
|
55
55
|
"Nexus config not found"
|
|
56
56
|
);
|
|
57
57
|
}
|
|
@@ -84,9 +84,9 @@ function useWalletStatus() {
|
|
|
84
84
|
queryKey: ["nexus-sdk", "wallet-status-listener"],
|
|
85
85
|
queryFn: async () => {
|
|
86
86
|
if (!client) {
|
|
87
|
-
throw new (0,
|
|
87
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return _chunk6GPWXPN4cjs.walletStatus.call(void 0, client, newStatusUpdated);
|
|
90
90
|
},
|
|
91
91
|
enabled: !!client
|
|
92
92
|
});
|
|
@@ -103,9 +103,9 @@ function useSendTransactionAction({
|
|
|
103
103
|
mutationKey: ["nexus-sdk", "send-transaction"],
|
|
104
104
|
mutationFn: async (params) => {
|
|
105
105
|
if (!client) {
|
|
106
|
-
throw new (0,
|
|
106
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return _chunk6GPWXPN4cjs.sendTransaction.call(void 0, client, params);
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -125,9 +125,9 @@ function useSiweAuthenticate({
|
|
|
125
125
|
],
|
|
126
126
|
mutationFn: async (params) => {
|
|
127
127
|
if (!client) {
|
|
128
|
-
throw new (0,
|
|
128
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return _chunk6GPWXPN4cjs.siweAuthenticate.call(void 0, client, params);
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -136,7 +136,7 @@ function useSiweAuthenticate({
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
// src/react/hook/utils/
|
|
139
|
+
// src/react/hook/utils/useFrakContext.ts
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
// src/react/hook/utils/useWindowLocation.ts
|
|
@@ -175,14 +175,14 @@ function useWindowLocation() {
|
|
|
175
175
|
return { location, href };
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// src/react/hook/utils/
|
|
179
|
-
function
|
|
178
|
+
// src/react/hook/utils/useFrakContext.ts
|
|
179
|
+
function useFrakContext() {
|
|
180
180
|
const { location } = useWindowLocation();
|
|
181
|
-
const { data:
|
|
181
|
+
const { data: frakContext } = _reactquery.useQuery.call(void 0, {
|
|
182
182
|
queryKey: ["nexus-sdk", "context", _nullishCoalesce(_optionalChain([location, 'optionalAccess', _7 => _7.href]), () => ( "no-href"))],
|
|
183
183
|
queryFn: async () => {
|
|
184
184
|
if (!_optionalChain([location, 'optionalAccess', _8 => _8.href])) return null;
|
|
185
|
-
return
|
|
185
|
+
return _chunkH7YKYMTCcjs.FrakContextManager.parse({ url: location.href });
|
|
186
186
|
},
|
|
187
187
|
enabled: !!_optionalChain([location, 'optionalAccess', _9 => _9.href])
|
|
188
188
|
});
|
|
@@ -190,14 +190,14 @@ function useNexusContext() {
|
|
|
190
190
|
mutationKey: ["nexus-sdk", "update-context"],
|
|
191
191
|
mutationFn: async (newContext) => {
|
|
192
192
|
console.log("Updating context", { newContext });
|
|
193
|
-
await
|
|
193
|
+
await _chunkH7YKYMTCcjs.FrakContextManager.replaceUrl({
|
|
194
194
|
url: _optionalChain([location, 'optionalAccess', _10 => _10.href]),
|
|
195
195
|
context: newContext
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
return {
|
|
200
|
-
|
|
200
|
+
frakContext,
|
|
201
201
|
updateContext,
|
|
202
202
|
updateContextAsync
|
|
203
203
|
};
|
|
@@ -209,7 +209,7 @@ function useReferralInteraction({
|
|
|
209
209
|
modalConfig
|
|
210
210
|
} = {}) {
|
|
211
211
|
const client = useNexusClient();
|
|
212
|
-
const {
|
|
212
|
+
const { frakContext } = useFrakContext();
|
|
213
213
|
const { data: walletStatus2 } = useWalletStatus();
|
|
214
214
|
const {
|
|
215
215
|
data: referralState,
|
|
@@ -221,17 +221,17 @@ function useReferralInteraction({
|
|
|
221
221
|
queryKey: [
|
|
222
222
|
"nexus-sdk",
|
|
223
223
|
"auto-referral-interaction",
|
|
224
|
-
_nullishCoalesce(_optionalChain([
|
|
224
|
+
_nullishCoalesce(_optionalChain([frakContext, 'optionalAccess', _11 => _11.r]), () => ( "no-referrer")),
|
|
225
225
|
_nullishCoalesce(_optionalChain([walletStatus2, 'optionalAccess', _12 => _12.key]), () => ( "no-wallet-status")),
|
|
226
226
|
_nullishCoalesce(productId, () => ( "no-product-id"))
|
|
227
227
|
],
|
|
228
228
|
queryFn: () => {
|
|
229
229
|
if (!client) {
|
|
230
|
-
throw new (0,
|
|
230
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
231
231
|
}
|
|
232
|
-
return
|
|
232
|
+
return _chunk6GPWXPN4cjs.processReferral.call(void 0, client, {
|
|
233
233
|
walletStatus: walletStatus2,
|
|
234
|
-
|
|
234
|
+
frakContext,
|
|
235
235
|
modalConfig,
|
|
236
236
|
productId
|
|
237
237
|
});
|
|
@@ -256,9 +256,9 @@ function useSendInteraction({
|
|
|
256
256
|
mutationKey: ["nexus-sdk", "send-interaction"],
|
|
257
257
|
mutationFn: async (params) => {
|
|
258
258
|
if (!client) {
|
|
259
|
-
throw new (0,
|
|
259
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
260
260
|
}
|
|
261
|
-
return
|
|
261
|
+
return _chunk6GPWXPN4cjs.sendInteraction.call(void 0, client, params);
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
}
|
|
@@ -274,9 +274,9 @@ function useDisplayModal({
|
|
|
274
274
|
mutationKey: ["nexus-sdk", "display-modal"],
|
|
275
275
|
mutationFn: async (args) => {
|
|
276
276
|
if (!client) {
|
|
277
|
-
throw new (0,
|
|
277
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
278
278
|
}
|
|
279
|
-
return
|
|
279
|
+
return _chunk6GPWXPN4cjs.displayModal.call(void 0, client, args);
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
282
|
}
|
|
@@ -290,9 +290,9 @@ function useOpenSso({ mutations } = {}) {
|
|
|
290
290
|
mutationKey: ["nexus-sdk", "open-sso"],
|
|
291
291
|
mutationFn: async (params) => {
|
|
292
292
|
if (!client) {
|
|
293
|
-
throw new (0,
|
|
293
|
+
throw new (0, _chunkH7YKYMTCcjs.ClientNotFound)();
|
|
294
294
|
}
|
|
295
|
-
return
|
|
295
|
+
return _chunk6GPWXPN4cjs.openSso.call(void 0, client, params);
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
}
|
|
@@ -308,15 +308,15 @@ function NexusIFrameClientProvider({
|
|
|
308
308
|
const config = useNexusConfig();
|
|
309
309
|
const [client, setClient] = _react.useState.call(void 0, void 0);
|
|
310
310
|
const iFrame = _react.createElement.call(void 0, "iframe", {
|
|
311
|
-
...
|
|
311
|
+
..._chunkH7YKYMTCcjs.baseIframeProps,
|
|
312
312
|
src: `${config.walletUrl}/listener`,
|
|
313
|
-
style: _nullishCoalesce(style, () => (
|
|
313
|
+
style: _nullishCoalesce(style, () => ( _chunkH7YKYMTCcjs.baseIframeProps.style)),
|
|
314
314
|
ref: (iframe) => {
|
|
315
315
|
if (!iframe || client) {
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
setClient(
|
|
319
|
-
|
|
319
|
+
_chunkES3EBWJ6cjs.createIFrameNexusClient.call(void 0, {
|
|
320
320
|
iframe,
|
|
321
321
|
config
|
|
322
322
|
})
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { PropsWithChildren, CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { N as NexusWalletSdkConfig, a as NexusClient, W as WalletStatusReturnType,
|
|
3
|
+
import { N as NexusWalletSdkConfig, a as NexusClient, W as WalletStatusReturnType, k as SendTransactionReturnType, h as SiweAuthenticateReturnType, D as DisplayModalParamsType, M as ModalStepTypes, d as ModalRpcStepsResultType, O as OpenSsoParamsType } from '../client-DaEox5q4.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
6
6
|
import * as viem from 'viem';
|
|
7
7
|
import { Hex } from 'viem';
|
|
8
8
|
import { F as FrakRpcError } from '../error-Dflr3G5x.cjs';
|
|
9
|
-
import {
|
|
9
|
+
import { S as SendTransactionParams, a as SiweAuthenticateModalParams } from '../sendTransaction-MhdJPTWd.cjs';
|
|
10
10
|
import { S as SendInteractionParamsType, a as SendInteractionReturnType } from '../interaction-BngPoHA0.cjs';
|
|
11
11
|
import 'viem/chains';
|
|
12
12
|
import 'viem/siwe';
|
|
@@ -121,7 +121,7 @@ declare function useSiweAuthenticate({ mutations, }?: UseSiweAuthenticateParams)
|
|
|
121
121
|
declare function useReferralInteraction({ productId, modalConfig, }?: {
|
|
122
122
|
productId?: Hex;
|
|
123
123
|
modalConfig?: DisplayModalParamsType<ModalStepTypes[]>;
|
|
124
|
-
}): Error | ("
|
|
124
|
+
}): Error | ("error" | "idle" | "processing" | "success" | "no-wallet" | "no-session" | "no-referrer" | "self-referral");
|
|
125
125
|
|
|
126
126
|
type MutationOptions$2 = Omit<UseMutationOptions<SendInteractionReturnType, FrakRpcError, SendInteractionParamsType>, "mutationFn" | "mutationKey">;
|
|
127
127
|
interface UseSendInteractionParams$1 {
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { PropsWithChildren, CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { N as NexusWalletSdkConfig, a as NexusClient, W as WalletStatusReturnType,
|
|
3
|
+
import { N as NexusWalletSdkConfig, a as NexusClient, W as WalletStatusReturnType, k as SendTransactionReturnType, h as SiweAuthenticateReturnType, D as DisplayModalParamsType, M as ModalStepTypes, d as ModalRpcStepsResultType, O as OpenSsoParamsType } from '../client-ALy_TEwJ.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
6
6
|
import * as viem from 'viem';
|
|
7
7
|
import { Hex } from 'viem';
|
|
8
8
|
import { F as FrakRpcError } from '../error-Dflr3G5x.js';
|
|
9
|
-
import {
|
|
9
|
+
import { S as SendTransactionParams, a as SiweAuthenticateModalParams } from '../sendTransaction-BOd-pvXr.js';
|
|
10
10
|
import { S as SendInteractionParamsType, a as SendInteractionReturnType } from '../interaction-BngPoHA0.js';
|
|
11
11
|
import 'viem/chains';
|
|
12
12
|
import 'viem/siwe';
|
|
@@ -121,7 +121,7 @@ declare function useSiweAuthenticate({ mutations, }?: UseSiweAuthenticateParams)
|
|
|
121
121
|
declare function useReferralInteraction({ productId, modalConfig, }?: {
|
|
122
122
|
productId?: Hex;
|
|
123
123
|
modalConfig?: DisplayModalParamsType<ModalStepTypes[]>;
|
|
124
|
-
}): Error | ("
|
|
124
|
+
}): Error | ("error" | "idle" | "processing" | "success" | "no-wallet" | "no-session" | "no-referrer" | "self-referral");
|
|
125
125
|
|
|
126
126
|
type MutationOptions$2 = Omit<UseMutationOptions<SendInteractionReturnType, FrakRpcError, SendInteractionParamsType>, "mutationFn" | "mutationKey">;
|
|
127
127
|
interface UseSendInteractionParams$1 {
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createIFrameNexusClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VXVUPIW7.js";
|
|
4
4
|
import {
|
|
5
5
|
displayModal,
|
|
6
6
|
openSso,
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
sendTransaction,
|
|
10
10
|
siweAuthenticate,
|
|
11
11
|
walletStatus
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-BP7RT2HB.js";
|
|
13
13
|
import {
|
|
14
14
|
ClientNotFound,
|
|
15
|
+
FrakContextManager,
|
|
15
16
|
FrakRpcError,
|
|
16
|
-
NexusContextManager,
|
|
17
17
|
RpcErrorCodes,
|
|
18
18
|
baseIframeProps
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-B75G6TB3.js";
|
|
20
|
+
import "../chunk-TIKEZMSD.js";
|
|
21
|
+
import "../chunk-HY6YATLS.js";
|
|
22
22
|
|
|
23
23
|
// src/react/provider/NexusConfigProvider.ts
|
|
24
24
|
import { createContext, createElement } from "react";
|
|
@@ -136,7 +136,7 @@ function useSiweAuthenticate({
|
|
|
136
136
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
137
137
|
import { useMemo as useMemo2 } from "react";
|
|
138
138
|
|
|
139
|
-
// src/react/hook/utils/
|
|
139
|
+
// src/react/hook/utils/useFrakContext.ts
|
|
140
140
|
import { useMutation as useMutation3, useQuery as useQuery2 } from "@tanstack/react-query";
|
|
141
141
|
|
|
142
142
|
// src/react/hook/utils/useWindowLocation.ts
|
|
@@ -175,14 +175,14 @@ function useWindowLocation() {
|
|
|
175
175
|
return { location, href };
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// src/react/hook/utils/
|
|
179
|
-
function
|
|
178
|
+
// src/react/hook/utils/useFrakContext.ts
|
|
179
|
+
function useFrakContext() {
|
|
180
180
|
const { location } = useWindowLocation();
|
|
181
|
-
const { data:
|
|
181
|
+
const { data: frakContext } = useQuery2({
|
|
182
182
|
queryKey: ["nexus-sdk", "context", location?.href ?? "no-href"],
|
|
183
183
|
queryFn: async () => {
|
|
184
184
|
if (!location?.href) return null;
|
|
185
|
-
return
|
|
185
|
+
return FrakContextManager.parse({ url: location.href });
|
|
186
186
|
},
|
|
187
187
|
enabled: !!location?.href
|
|
188
188
|
});
|
|
@@ -190,14 +190,14 @@ function useNexusContext() {
|
|
|
190
190
|
mutationKey: ["nexus-sdk", "update-context"],
|
|
191
191
|
mutationFn: async (newContext) => {
|
|
192
192
|
console.log("Updating context", { newContext });
|
|
193
|
-
await
|
|
193
|
+
await FrakContextManager.replaceUrl({
|
|
194
194
|
url: location?.href,
|
|
195
195
|
context: newContext
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
return {
|
|
200
|
-
|
|
200
|
+
frakContext,
|
|
201
201
|
updateContext,
|
|
202
202
|
updateContextAsync
|
|
203
203
|
};
|
|
@@ -209,7 +209,7 @@ function useReferralInteraction({
|
|
|
209
209
|
modalConfig
|
|
210
210
|
} = {}) {
|
|
211
211
|
const client = useNexusClient();
|
|
212
|
-
const {
|
|
212
|
+
const { frakContext } = useFrakContext();
|
|
213
213
|
const { data: walletStatus2 } = useWalletStatus();
|
|
214
214
|
const {
|
|
215
215
|
data: referralState,
|
|
@@ -221,7 +221,7 @@ function useReferralInteraction({
|
|
|
221
221
|
queryKey: [
|
|
222
222
|
"nexus-sdk",
|
|
223
223
|
"auto-referral-interaction",
|
|
224
|
-
|
|
224
|
+
frakContext?.r ?? "no-referrer",
|
|
225
225
|
walletStatus2?.key ?? "no-wallet-status",
|
|
226
226
|
productId ?? "no-product-id"
|
|
227
227
|
],
|
|
@@ -231,7 +231,7 @@ function useReferralInteraction({
|
|
|
231
231
|
}
|
|
232
232
|
return processReferral(client, {
|
|
233
233
|
walletStatus: walletStatus2,
|
|
234
|
-
|
|
234
|
+
frakContext,
|
|
235
235
|
modalConfig,
|
|
236
236
|
productId
|
|
237
237
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as SiweAuthenticationParams, b as ModalRpcMetadata, a as NexusClient, h as SiweAuthenticateReturnType, j as SendTransactionModalStepType, k as SendTransactionReturnType } from './client-ALy_TEwJ.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Partial SIWE params, since we can rebuild them from the SDK if they are empty
|
|
@@ -27,4 +27,4 @@ type SendTransactionParams = {
|
|
|
27
27
|
*/
|
|
28
28
|
declare function sendTransaction(client: NexusClient, { tx, metadata }: SendTransactionParams): Promise<SendTransactionReturnType>;
|
|
29
29
|
|
|
30
|
-
export { type
|
|
30
|
+
export { type SendTransactionParams as S, type SiweAuthenticateModalParams as a, sendTransaction as b, siweAuthenticate as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as SiweAuthenticationParams, b as ModalRpcMetadata, a as NexusClient, h as SiweAuthenticateReturnType, j as SendTransactionModalStepType, k as SendTransactionReturnType } from './client-DaEox5q4.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Partial SIWE params, since we can rebuild them from the SDK if they are empty
|
|
@@ -27,4 +27,4 @@ type SendTransactionParams = {
|
|
|
27
27
|
*/
|
|
28
28
|
declare function sendTransaction(client: NexusClient, { tx, metadata }: SendTransactionParams): Promise<SendTransactionReturnType>;
|
|
29
29
|
|
|
30
|
-
export { type
|
|
30
|
+
export { type SendTransactionParams as S, type SiweAuthenticateModalParams as a, sendTransaction as b, siweAuthenticate as s };
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "https://twitter.com/QNivelais"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.
|
|
14
|
+
"version": "0.0.17",
|
|
15
15
|
"description": "Frak Wallet client SDK, helping any person to interact with the Frak wallet, and require the unlock of a premium article within the Frak ecosystem.",
|
|
16
16
|
"repository": {
|
|
17
17
|
"url": "https://github.com/frak-id/wallet",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"js-sha256": "^0.11.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@tanstack/react-query": ">=5.
|
|
84
|
+
"@tanstack/react-query": ">=5.59.15",
|
|
85
85
|
"@types/node": "^22",
|
|
86
|
-
"tsup": "^8.
|
|
86
|
+
"tsup": "^8.3.0",
|
|
87
87
|
"typescript": "^5"
|
|
88
88
|
}
|
|
89
89
|
}
|