@open-social-protocol/osp-plugin-webview-types
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@open-social-protocol/osp-plugin-webview-types", | ||
"description": "API types for Open Social Protocol plugins", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -1,3 +0,1 @@ | ||
import { WebViewSource } from "./context"; | ||
import { EIP1193Provider } from "eip1193-provider"; | ||
import { | ||
@@ -7,2 +5,6 @@ TPluginInfo, | ||
} from "@open-social-protocol/osp-plugin-api-types"; | ||
import { EIP1193Provider } from "eip1193-provider"; | ||
import { WebViewSource } from "./context"; | ||
import { TPayResult } from "./lifecycle"; | ||
import { IPluginTransactionProps } from "../message"; | ||
@@ -31,2 +33,3 @@ | ||
}) => void; | ||
onPayResult: (data: TPayResult) => void; | ||
} |
@@ -1,23 +0,19 @@ | ||
export type TPluginResize = { | ||
heightWidthRatio: number | ||
} | ||
heightWidthRatio: number; | ||
}; | ||
export type TPayResult = { | ||
success: boolean; | ||
}; | ||
export type TOpenURL = { | ||
url?: string, target?: string, features?: string | ||
} | ||
url?: string; | ||
target?: string; | ||
features?: string; | ||
}; | ||
//pluginUI.resize: 加载plugin -> loaded | ||
export type TPluginLoaded = { | ||
id: string; | ||
name: string; | ||
id: string; | ||
name: string; | ||
} & TPluginResize; | ||
6962
212