global-input-react
Advanced tools
Comparing version 4.3.3 to 4.3.4
@@ -263,3 +263,3 @@ "use strict"; | ||
if (mobileData.sender && mobileData.sender.client !== permissionMessage.client) { | ||
deny(" only one sender (mobile app instance) is allowed for each session. You need to restart the session to allow for a new client to connect. If you are the application developer, you can override this behaviour."); | ||
deny(" denied due to the one-app-per-session policy set by the application. "); | ||
notify({ | ||
@@ -266,0 +266,0 @@ type: ACTION_TYPES.CONNECTION_DENIED |
@@ -43,2 +43,3 @@ "use strict"; | ||
isConnected, | ||
isConnectionDenied, | ||
initData, | ||
@@ -181,2 +182,3 @@ senders | ||
isConnected, | ||
isConnectionDenied, | ||
initData, | ||
@@ -183,0 +185,0 @@ senders, |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
type OnchangeFunction = (evt: FieldChanged) => void; | ||
export type OnchangeFunction = (evt: FieldChanged) => void; | ||
@@ -26,3 +26,3 @@ export interface ConfigData { | ||
} | ||
interface FieldChanged { | ||
export interface FieldChanged { | ||
field: FormField; | ||
@@ -34,6 +34,6 @@ initData: InitData; | ||
type SendValueFunction = (fieldId: string, valueToSet: FieldValue, fieldIndex?: number) => void; | ||
type SendInitDataFunction = (initData: InitData, options?: ConnectOptions) => void; | ||
export type SendValueFunction = (fieldId: string, valueToSet: FieldValue, fieldIndex?: number) => void; | ||
export type SendInitDataFunction = (initData: InitData, options?: ConnectOptions) => void; | ||
type ConnectQRProps = { | ||
export type ConnectQRProps = { | ||
size?: number, | ||
@@ -40,0 +40,0 @@ level?: "L" | "M" | "Q" | "H", |
{ | ||
"name": "global-input-react", | ||
"version": "4.3.3", | ||
"version": "4.3.4", | ||
"description": "global input react component", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index", |
@@ -17,3 +17,3 @@ | ||
CLOSE: 10, | ||
CONNECTION_DENIED:11 | ||
CONNECTION_DENIED: 11 | ||
}; | ||
@@ -38,3 +38,3 @@ | ||
isConnected: false, | ||
isConnectionDenied:false, | ||
isConnectionDenied: false, | ||
initData: null, | ||
@@ -67,7 +67,7 @@ connected: [] | ||
mobileData.session = null; | ||
mobileData.senders=[]; | ||
mobileData.sender=null; | ||
mobileData.fields=[]; | ||
mobileData.values=[]; | ||
mobileData.setters=[]; | ||
mobileData.senders = []; | ||
mobileData.sender = null; | ||
mobileData.fields = []; | ||
mobileData.values = []; | ||
mobileData.setters = []; | ||
} | ||
@@ -221,3 +221,3 @@ }; | ||
if (mobileData.sender && mobileData.sender.client !== permissionMessage.client) { | ||
deny(" only one sender (mobile app instance) is allowed for each session. You need to restart the session to allow for a new client to connect. If you are the application developer, you can override this behaviour."); | ||
deny(" denied due to the one-app-per-session policy set by the application. "); | ||
notify({ type: ACTION_TYPES.CONNECTION_DENIED }); | ||
@@ -224,0 +224,0 @@ } |
@@ -15,2 +15,3 @@ | ||
isConnected, | ||
isConnectionDenied, | ||
initData, | ||
@@ -133,2 +134,3 @@ senders | ||
isConnected, | ||
isConnectionDenied, | ||
initData, | ||
@@ -135,0 +137,0 @@ senders, |
Sorry, the diff of this file is too big to display
37440
1252148
10