@open-social-protocol/osp-plugin-webview-types
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -0,19 +1,18 @@ | ||
// @ts-nocheck | ||
// @ts-ignore | ||
/* eslint-disable */ | ||
// app层自己处理的公开消息 | ||
export enum EPluginEmitKey { | ||
pluginToast = "pluginToast", | ||
pluginAlert = "pluginAlert" | ||
} | ||
// sandbox发送给app的消息 | ||
export enum EPluginPrivateEmitKey { | ||
pluginLoaded = "pluginLoaded", | ||
pluginCreated = "pluginCreated", | ||
pluginClose = "pluginClose", | ||
pluginResize = "pluginResize", | ||
pluginPayResult = "pluginPayResult", | ||
pluginLoaded = "pluginLoaded", | ||
pluginCreated = "pluginCreated", | ||
pluginClose = "pluginClose", | ||
pluginResize = "pluginResize", | ||
pluginPayResult = "pluginPayResult", | ||
pluginTransaction = "pluginTransaction", | ||
pluginOpenURL = "pluginOpenURL", | ||
pluginTransaction = "pluginTransaction", | ||
pluginOpenURL = "pluginOpenURL", | ||
PluginToast = "pluginToast" | ||
} | ||
{ | ||
"name": "@open-social-protocol/osp-plugin-webview-types", | ||
"description": "API types for Open Social Protocol plugins", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -1,2 +0,1 @@ | ||
export interface WebViewSourceUri { | ||
@@ -41,2 +40,1 @@ /** | ||
export type WebViewSource = WebViewSourceUri | WebViewSourceHtml; | ||
@@ -5,2 +5,6 @@ export type TPluginResize = { | ||
export type TToastInfo = { | ||
heightWidthRatio: number; | ||
}; | ||
export type TPayResult = { | ||
@@ -21,1 +25,9 @@ success: boolean; | ||
} & TPluginResize; | ||
export interface IPluginToast { | ||
type: "success" | "warning" | "error"; | ||
text?: string; | ||
autoHide?: boolean; | ||
visibilityTime?: number; | ||
swipeable?: boolean; | ||
} |
7158
222