@openreplay/tracker-assist
Advanced tools
Comparing version 3.5.2 to 3.5.3
import type { Properties } from 'csstype'; | ||
import { App } from '@openreplay/tracker/cjs'; | ||
import type { Options as ConfirmOptions } from './ConfirmWindow.js'; | ||
declare type BehinEndCallback = () => ((() => {}) | void); | ||
export interface Options { | ||
onAgentConnect: () => ((() => {}) | void); | ||
onCallStart: () => ((() => {}) | void); | ||
onAgentConnect: BehinEndCallback; | ||
onCallStart: BehinEndCallback; | ||
onRemoteControlStart: BehinEndCallback; | ||
session_calling_peer_key: string; | ||
@@ -18,3 +20,3 @@ session_control_peer_key: string; | ||
private readonly noSecureMode; | ||
readonly version = "3.5.2"; | ||
readonly version = "3.5.3"; | ||
private socket; | ||
@@ -33,1 +35,2 @@ private peer; | ||
} | ||
export {}; |
@@ -22,3 +22,3 @@ "use strict"; | ||
this.noSecureMode = noSecureMode; | ||
this.version = "3.5.2"; | ||
this.version = "3.5.3"; | ||
this.socket = null; | ||
@@ -36,2 +36,3 @@ this.peer = null; | ||
onAgentConnect: () => { }, | ||
onRemoteControlStart: () => { }, | ||
callConfirm: {}, | ||
@@ -127,8 +128,12 @@ controlConfirm: {}, // TODO: clear options passing/merging/overriting | ||
}; | ||
let onRemoteControlStop = null; | ||
const grantControl = (id) => { | ||
controllingAgent = id; | ||
mouse.mount(); | ||
onRemoteControlStop = this.options.onRemoteControlStart() || null; | ||
sessionStorage.setItem(this.options.session_control_peer_key, id); | ||
}; | ||
const releaseControl = () => { | ||
typeof onRemoteControlStop === 'function' && onRemoteControlStop(); | ||
onRemoteControlStop = null; | ||
confirmRC === null || confirmRC === void 0 ? void 0 : confirmRC.remove(); | ||
@@ -135,0 +140,0 @@ mouse.remove(); |
import type { Properties } from 'csstype'; | ||
import { App } from '@openreplay/tracker'; | ||
import type { Options as ConfirmOptions } from './ConfirmWindow.js'; | ||
declare type BehinEndCallback = () => ((() => {}) | void); | ||
export interface Options { | ||
onAgentConnect: () => ((() => {}) | void); | ||
onCallStart: () => ((() => {}) | void); | ||
onAgentConnect: BehinEndCallback; | ||
onCallStart: BehinEndCallback; | ||
onRemoteControlStart: BehinEndCallback; | ||
session_calling_peer_key: string; | ||
@@ -18,3 +20,3 @@ session_control_peer_key: string; | ||
private readonly noSecureMode; | ||
readonly version = "3.5.2"; | ||
readonly version = "3.5.3"; | ||
private socket; | ||
@@ -33,1 +35,2 @@ private peer; | ||
} | ||
export {}; |
@@ -20,3 +20,3 @@ import io from 'socket.io-client'; | ||
this.noSecureMode = noSecureMode; | ||
this.version = "3.5.2"; | ||
this.version = "3.5.3"; | ||
this.socket = null; | ||
@@ -34,2 +34,3 @@ this.peer = null; | ||
onAgentConnect: () => { }, | ||
onRemoteControlStart: () => { }, | ||
callConfirm: {}, | ||
@@ -125,8 +126,12 @@ controlConfirm: {}, // TODO: clear options passing/merging/overriting | ||
}; | ||
let onRemoteControlStop = null; | ||
const grantControl = (id) => { | ||
controllingAgent = id; | ||
mouse.mount(); | ||
onRemoteControlStop = this.options.onRemoteControlStart() || null; | ||
sessionStorage.setItem(this.options.session_control_peer_key, id); | ||
}; | ||
const releaseControl = () => { | ||
typeof onRemoteControlStop === 'function' && onRemoteControlStop(); | ||
onRemoteControlStop = null; | ||
confirmRC === null || confirmRC === void 0 ? void 0 : confirmRC.remove(); | ||
@@ -133,0 +138,0 @@ mouse.remove(); |
{ | ||
"name": "@openreplay/tracker-assist", | ||
"description": "Tracker plugin for screen assistance through the WebRTC", | ||
"version": "3.5.2", | ||
"version": "3.5.3", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "WebRTC", |
86552
1964