Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@open-social-protocol/osp-plugin-webview-types

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-social-protocol/osp-plugin-webview-types - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

25

message/ActionKey.ts

@@ -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;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc