@farcaster/frame-sdk 0.0.51 → 0.0.53
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/ethereumProvider.js +1 -1
- package/dist/frameHost.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.min.js +8 -8
- package/dist/index.min.js.map +4 -4
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +4 -3
- package/dist/solanaProvider.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +3 -3
- package/src/ethereumProvider.ts +1 -1
- package/src/frameHost.ts +1 -1
- package/src/index.ts +3 -3
- package/src/sdk.ts +5 -4
- package/src/solanaProvider.ts +1 -1
- package/src/types.ts +2 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddMiniApp, ComposeCast, Context, FrameNotificationDetails, GetCapabilities, GetChains, Ready, SendToken, SetPrimaryButtonOptions, SignIn, SolanaWalletProvider, SwapToken, ViewProfile, ViewToken } from '@farcaster/frame-core';
|
|
1
|
+
import type { AddMiniApp, ComposeCast, Context, FrameNotificationDetails, GetCapabilities, GetChains, Ready, SendToken, SetPrimaryButtonOptions, SignIn, SolanaWalletProvider, SwapToken, ViewCast, ViewProfile, ViewToken } from '@farcaster/frame-core';
|
|
2
2
|
import type { EventEmitter } from 'eventemitter3';
|
|
3
3
|
import type * as Provider from 'ox/Provider';
|
|
4
4
|
declare global {
|
|
@@ -41,6 +41,7 @@ export type FrameSDK = {
|
|
|
41
41
|
addFrame: AddMiniApp.AddMiniApp;
|
|
42
42
|
addMiniApp: AddMiniApp.AddMiniApp;
|
|
43
43
|
signIn: SignIn.SignIn;
|
|
44
|
+
viewCast: ViewCast.ViewCast;
|
|
44
45
|
viewProfile: ViewProfile.ViewProfile;
|
|
45
46
|
composeCast: <close extends boolean | undefined = undefined>(options?: ComposeCast.Options<close>) => Promise<ComposeCast.Result<close>>;
|
|
46
47
|
viewToken: ViewToken.ViewToken;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farcaster/frame-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"esbuild": "^0.25.0",
|
|
17
17
|
"mipd": "^0.0.7",
|
|
18
18
|
"typescript": "^5.8.3",
|
|
19
|
-
"@farcaster/tsconfig": "0.0.
|
|
19
|
+
"@farcaster/tsconfig": "0.0.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@farcaster/quick-auth": "^0.0.5",
|
|
23
23
|
"comlink": "^4.4.2",
|
|
24
24
|
"eventemitter3": "^5.0.1",
|
|
25
25
|
"ox": "^0.4.4",
|
|
26
|
-
"@farcaster/frame-core": "0.1.
|
|
26
|
+
"@farcaster/frame-core": "0.1.2"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"clean": "rm -rf dist",
|
package/src/ethereumProvider.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
import * as Provider from 'ox/Provider'
|
|
13
13
|
import * as RpcRequest from 'ox/RpcRequest'
|
|
14
14
|
import * as RpcResponse from 'ox/RpcResponse'
|
|
15
|
-
import { frameHost } from './frameHost'
|
|
15
|
+
import { frameHost } from './frameHost.ts'
|
|
16
16
|
|
|
17
17
|
const emitter = Provider.createEmitter()
|
|
18
18
|
const store = RpcRequest.createStore()
|
package/src/frameHost.ts
CHANGED
package/src/index.ts
CHANGED
package/src/sdk.ts
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
import { createLightClient } from '@farcaster/quick-auth/light'
|
|
7
7
|
import { EventEmitter } from 'eventemitter3'
|
|
8
8
|
import * as Siwe from 'ox/Siwe'
|
|
9
|
-
import { ethereumProvider, getEthereumProvider } from './ethereumProvider'
|
|
10
|
-
import { frameHost } from './frameHost'
|
|
11
|
-
import { getSolanaProvider } from './solanaProvider'
|
|
12
|
-
import type { Emitter, EventMap, FrameSDK } from './types'
|
|
9
|
+
import { ethereumProvider, getEthereumProvider } from './ethereumProvider.ts'
|
|
10
|
+
import { frameHost } from './frameHost.ts'
|
|
11
|
+
import { getSolanaProvider } from './solanaProvider.ts'
|
|
12
|
+
import type { Emitter, EventMap, FrameSDK } from './types.ts'
|
|
13
13
|
|
|
14
14
|
export function createEmitter(): Emitter {
|
|
15
15
|
const emitter = new EventEmitter<EventMap>()
|
|
@@ -105,6 +105,7 @@ export const sdk: FrameSDK = {
|
|
|
105
105
|
setPrimaryButton: frameHost.setPrimaryButton.bind(frameHost),
|
|
106
106
|
ready: frameHost.ready.bind(frameHost),
|
|
107
107
|
close: frameHost.close.bind(frameHost),
|
|
108
|
+
viewCast: frameHost.viewCast.bind(frameHost),
|
|
108
109
|
viewProfile: frameHost.viewProfile.bind(frameHost),
|
|
109
110
|
signIn: async (options) => {
|
|
110
111
|
const response = await frameHost.signIn(options)
|
package/src/solanaProvider.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
SignIn,
|
|
12
12
|
SolanaWalletProvider,
|
|
13
13
|
SwapToken,
|
|
14
|
+
ViewCast,
|
|
14
15
|
ViewProfile,
|
|
15
16
|
ViewToken,
|
|
16
17
|
} from '@farcaster/frame-core'
|
|
@@ -67,6 +68,7 @@ export type FrameSDK = {
|
|
|
67
68
|
addFrame: AddMiniApp.AddMiniApp
|
|
68
69
|
addMiniApp: AddMiniApp.AddMiniApp
|
|
69
70
|
signIn: SignIn.SignIn
|
|
71
|
+
viewCast: ViewCast.ViewCast
|
|
70
72
|
viewProfile: ViewProfile.ViewProfile
|
|
71
73
|
composeCast: <close extends boolean | undefined = undefined>(
|
|
72
74
|
options?: ComposeCast.Options<close>,
|