@frontapp/plugin-sdk
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -115,15 +115,6 @@ import { ApplicationCancelError, buildApplicationCancelTokenSource } from '@frontapp/ui-bridge'; | ||
}); | ||
console.log("in the function call"); | ||
console.log(name); | ||
console.log(args); | ||
return messages.pipe(filter(isFunctionResultMessage), filter(function (m) { | ||
console.log(m); | ||
return m.id === callId; | ||
}), map(function (m) { | ||
return messages.pipe(filter(isFunctionResultMessage), filter(function (m) { return m.id === callId; }), map(function (m) { | ||
switch (m.type) { | ||
case WebViewMessageTypesEnum.FUNCTION_RESULT: { | ||
console.log("receiving port message"); | ||
console.log(m); | ||
case WebViewMessageTypesEnum.FUNCTION_RESULT: | ||
return m.value; | ||
} | ||
case WebViewMessageTypesEnum.FUNCTION_ERROR: | ||
@@ -130,0 +121,0 @@ default: |
@@ -120,15 +120,6 @@ 'use strict'; | ||
}); | ||
console.log("in the function call"); | ||
console.log(name); | ||
console.log(args); | ||
return messages.pipe(operators.filter(isFunctionResultMessage), operators.filter(function (m) { | ||
console.log(m); | ||
return m.id === callId; | ||
}), operators.map(function (m) { | ||
return messages.pipe(operators.filter(isFunctionResultMessage), operators.filter(function (m) { return m.id === callId; }), operators.map(function (m) { | ||
switch (m.type) { | ||
case WebViewMessageTypesEnum.FUNCTION_RESULT: { | ||
console.log("receiving port message"); | ||
console.log(m); | ||
case WebViewMessageTypesEnum.FUNCTION_RESULT: | ||
return m.value; | ||
} | ||
case WebViewMessageTypesEnum.FUNCTION_ERROR: | ||
@@ -135,0 +126,0 @@ default: |
@@ -1,10 +0,13 @@ | ||
import {ApplicationCancelTokenSource, ApplicationContext, SingleConversationContext, NoConversationContext, MultiConversationsContext, MessageContext} from '@frontapp/ui-bridge'; | ||
import {Observable} from 'rxjs'; | ||
import { ApplicationCancelTokenSource, ApplicationContext, MessageContext, MultiConversationsContext, NoConversationContext, NoConversationPopoverContext, SingleConversationContext, SingleConversationPopoverContext, MessageComposerContext } from '@frontapp/ui-bridge'; | ||
import { Observable } from 'rxjs'; | ||
declare type InternalContextProperties = 'hostId' | 'entryPointId'; | ||
declare type WebViewContextFunctions = Pick<ApplicationContext, FunctionPropertyNames<ApplicationContext>>; | ||
declare type WebViewSingleConversationContext = Omit<SingleConversationContext, InternalContextProperties>; | ||
declare type WebViewSingleConversationPopoverContext = Omit<SingleConversationPopoverContext, InternalContextProperties>; | ||
declare type WebViewNoConversationContext = Omit<NoConversationContext, InternalContextProperties>; | ||
declare type WebViewNoConversationPopoverContext = Omit<NoConversationPopoverContext, InternalContextProperties>; | ||
declare type WebViewMultipleConversationsContext = Omit<MultiConversationsContext, InternalContextProperties>; | ||
declare type WebViewMessageContext = Omit<MessageContext, InternalContextProperties>; | ||
export declare type WebViewContext = WebViewSingleConversationContext | WebViewNoConversationContext | WebViewMultipleConversationsContext | WebViewMessageContext; | ||
declare type WebViewMessageComposerContext = Omit<MessageComposerContext, InternalContextProperties>; | ||
export declare type WebViewContext = WebViewSingleConversationContext | WebViewNoConversationPopoverContext | WebViewSingleConversationPopoverContext | WebViewNoConversationContext | WebViewMultipleConversationsContext | WebViewMessageContext | WebViewMessageComposerContext; | ||
export declare type WebViewBaseBridge = { | ||
@@ -63,2 +66,2 @@ buildCancelTokenSource(): ApplicationCancelTokenSource; | ||
}[keyof T]; | ||
export { }; | ||
export {}; |
{ | ||
"name": "@frontapp/plugin-sdk", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@frontapp/ui-bridge": "^2.0.0-beta11", | ||
"@frontapp/ui-bridge": "^2.0.0-beta13", | ||
"rxjs": "^6.5.4", | ||
@@ -20,6 +20,2 @@ "cuid": "^2.1.8" | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/frontapp/front-ui-sdk" | ||
}, | ||
"keywords": [ | ||
@@ -26,0 +22,0 @@ "frontapp" |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275909
6
1608
1