@farcaster/miniapp-sdk 0.1.5 → 0.1.6

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, GetCapabilities, GetChains, ImpactOccurred, MiniAppNotificationDetails, NotificationOccurred, Ready, SelectionChanged, SendToken, SetPrimaryButtonOptions, SignIn, SolanaWalletProvider, SwapToken, ViewCast, ViewProfile, ViewToken } from '@farcaster/miniapp-core';
1
+ import type { AddMiniApp, ComposeCast, Context, GetCapabilities, GetChains, ImpactOccurred, MiniAppNotificationDetails, NotificationOccurred, OpenMiniApp, Ready, SelectionChanged, SendToken, SetPrimaryButtonOptions, SignIn, SolanaWalletProvider, SwapToken, ViewCast, ViewProfile, ViewToken } from '@farcaster/miniapp-core';
2
2
  import type { EventEmitter } from 'eventemitter3';
3
3
  import type * as Provider from 'ox/Provider';
4
4
  import type { Back } from './back.ts';
@@ -52,6 +52,7 @@ export type MiniAppSDK = {
52
52
  viewToken: ViewToken.ViewToken;
53
53
  sendToken: SendToken.SendToken;
54
54
  swapToken: SwapToken.SwapToken;
55
+ openMiniApp: OpenMiniApp.OpenMiniApp;
55
56
  };
56
57
  experimental: {
57
58
  getSolanaProvider: () => Promise<SolanaWalletProvider | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farcaster/miniapp-sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
package/src/sdk.ts CHANGED
@@ -89,6 +89,7 @@ export const sdk: MiniAppSDK = {
89
89
  close: miniAppHost.close.bind(miniAppHost),
90
90
  viewCast: miniAppHost.viewCast.bind(miniAppHost),
91
91
  viewProfile: miniAppHost.viewProfile.bind(miniAppHost),
92
+ openMiniApp: miniAppHost.openMiniApp.bind(miniAppHost),
92
93
  signIn: async (options) => {
93
94
  const response = await miniAppHost.signIn(options)
94
95
  if (response.result) {
package/src/types.ts CHANGED
@@ -7,6 +7,7 @@ import type {
7
7
  ImpactOccurred,
8
8
  MiniAppNotificationDetails,
9
9
  NotificationOccurred,
10
+ OpenMiniApp,
10
11
  Ready,
11
12
  SelectionChanged,
12
13
  SendToken,
@@ -86,6 +87,7 @@ export type MiniAppSDK = {
86
87
  viewToken: ViewToken.ViewToken
87
88
  sendToken: SendToken.SendToken
88
89
  swapToken: SwapToken.SwapToken
90
+ openMiniApp: OpenMiniApp.OpenMiniApp
89
91
  }
90
92
  experimental: {
91
93
  getSolanaProvider: () => Promise<SolanaWalletProvider | undefined>