@farcaster/frame-sdk 0.0.50 → 0.0.52
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/index.min.js +8 -8
- package/dist/index.min.js.map +4 -4
- package/dist/sdk.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
- package/src/sdk.ts +1 -0
- 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.52",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"comlink": "^4.4.2",
|
|
24
24
|
"eventemitter3": "^5.0.1",
|
|
25
25
|
"ox": "^0.4.4",
|
|
26
|
-
"@farcaster/frame-core": "0.
|
|
26
|
+
"@farcaster/frame-core": "0.1.1"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"clean": "rm -rf dist",
|
package/src/sdk.ts
CHANGED
|
@@ -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/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>,
|