@farcaster/frame-sdk 0.0.53 → 0.0.55
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 +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +6 -1
- package/package.json +2 -2
- package/src/sdk.ts +5 -0
- package/src/types.ts +8 -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, ViewCast, ViewProfile, ViewToken } from '@farcaster/frame-core';
|
|
1
|
+
import type { AddMiniApp, ComposeCast, Context, FrameNotificationDetails, GetCapabilities, GetChains, ImpactOccurred, NotificationOccurred, Ready, SelectionChanged, 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 {
|
|
@@ -67,5 +67,10 @@ export type FrameSDK = {
|
|
|
67
67
|
getEthereumProvider: () => Promise<Provider.Provider | undefined>;
|
|
68
68
|
getSolanaProvider: () => Promise<SolanaWalletProvider | undefined>;
|
|
69
69
|
};
|
|
70
|
+
haptics: {
|
|
71
|
+
impactOccurred: ImpactOccurred;
|
|
72
|
+
notificationOccurred: NotificationOccurred;
|
|
73
|
+
selectionChanged: SelectionChanged;
|
|
74
|
+
};
|
|
70
75
|
} & Emitter;
|
|
71
76
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farcaster/frame-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
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.1.
|
|
26
|
+
"@farcaster/frame-core": "0.1.4"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"clean": "rm -rf dist",
|
package/src/sdk.ts
CHANGED
|
@@ -173,6 +173,11 @@ export const sdk: FrameSDK = {
|
|
|
173
173
|
getEthereumProvider,
|
|
174
174
|
getSolanaProvider,
|
|
175
175
|
},
|
|
176
|
+
haptics: {
|
|
177
|
+
impactOccurred: frameHost.impactOccurred.bind(frameHost),
|
|
178
|
+
notificationOccurred: frameHost.notificationOccurred.bind(frameHost),
|
|
179
|
+
selectionChanged: frameHost.selectionChanged.bind(frameHost),
|
|
180
|
+
},
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
// Required to pass SSR
|
package/src/types.ts
CHANGED
|
@@ -5,7 +5,10 @@ import type {
|
|
|
5
5
|
FrameNotificationDetails,
|
|
6
6
|
GetCapabilities,
|
|
7
7
|
GetChains,
|
|
8
|
+
ImpactOccurred,
|
|
9
|
+
NotificationOccurred,
|
|
8
10
|
Ready,
|
|
11
|
+
SelectionChanged,
|
|
9
12
|
SendToken,
|
|
10
13
|
SetPrimaryButtonOptions,
|
|
11
14
|
SignIn,
|
|
@@ -97,4 +100,9 @@ export type FrameSDK = {
|
|
|
97
100
|
getEthereumProvider: () => Promise<Provider.Provider | undefined>
|
|
98
101
|
getSolanaProvider: () => Promise<SolanaWalletProvider | undefined>
|
|
99
102
|
}
|
|
103
|
+
haptics: {
|
|
104
|
+
impactOccurred: ImpactOccurred
|
|
105
|
+
notificationOccurred: NotificationOccurred
|
|
106
|
+
selectionChanged: SelectionChanged
|
|
107
|
+
}
|
|
100
108
|
} & Emitter
|