@farcaster/frame-sdk 0.0.53 → 0.0.54

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/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, Haptics, 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 {
@@ -47,6 +47,11 @@ export type FrameSDK = {
47
47
  viewToken: ViewToken.ViewToken;
48
48
  sendToken: SendToken.SendToken;
49
49
  swapToken: SwapToken.SwapToken;
50
+ haptics: {
51
+ impactOccurred: Haptics.ImpactOccurred;
52
+ notificationOccurred: Haptics.NotificationOccurred;
53
+ selectionChanged: Haptics.SelectionChanged;
54
+ };
50
55
  };
51
56
  experimental: {
52
57
  getSolanaProvider: () => Promise<SolanaWalletProvider | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farcaster/frame-sdk",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
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.2"
26
+ "@farcaster/frame-core": "0.1.3"
27
27
  },
28
28
  "scripts": {
29
29
  "clean": "rm -rf dist",
package/src/sdk.ts CHANGED
@@ -131,6 +131,11 @@ export const sdk: FrameSDK = {
131
131
  viewToken: frameHost.viewToken.bind(frameHost),
132
132
  sendToken: frameHost.sendToken.bind(frameHost),
133
133
  swapToken: frameHost.swapToken.bind(frameHost),
134
+ haptics: {
135
+ impactOccurred: frameHost.impactOccurred.bind(frameHost),
136
+ notificationOccurred: frameHost.notificationOccurred.bind(frameHost),
137
+ selectionChanged: frameHost.selectionChanged.bind(frameHost),
138
+ },
134
139
  },
135
140
  experimental: {
136
141
  getSolanaProvider,
package/src/types.ts CHANGED
@@ -5,6 +5,7 @@ import type {
5
5
  FrameNotificationDetails,
6
6
  GetCapabilities,
7
7
  GetChains,
8
+ Haptics,
8
9
  Ready,
9
10
  SendToken,
10
11
  SetPrimaryButtonOptions,
@@ -76,6 +77,11 @@ export type FrameSDK = {
76
77
  viewToken: ViewToken.ViewToken
77
78
  sendToken: SendToken.SendToken
78
79
  swapToken: SwapToken.SwapToken
80
+ haptics: {
81
+ impactOccurred: Haptics.ImpactOccurred
82
+ notificationOccurred: Haptics.NotificationOccurred
83
+ selectionChanged: Haptics.SelectionChanged
84
+ }
79
85
  }
80
86
  experimental: {
81
87
  getSolanaProvider: () => Promise<SolanaWalletProvider | undefined>