@capturebridge/sdk 0.20.2 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.html +10 -4
- package/README.md +2 -2
- package/VerifoneControls.js +8 -1
- package/Version.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +171 -0
package/CHANGELOG.html
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
<p>All notable changes to this project will be documented in this file.</p>
|
|
3
3
|
<p>The format is based on <a href="https://keepachangelog.com/en/1.1.0/">Keep a Changelog</a>,
|
|
4
4
|
and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semantic Versioning</a>.</p>
|
|
5
|
-
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.
|
|
5
|
+
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.21.1">0.21.1</a> - 2023-01-06</h2>
|
|
6
|
+
<h3>Added</h3>
|
|
7
|
+
<ul>
|
|
8
|
+
<li>Added <code>escape</code> and <code>style</code> properties to Verifone <code>Text</code> objects and a text
|
|
9
|
+
formatting example.</li>
|
|
10
|
+
</ul>
|
|
11
|
+
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.20.0">0.20.0</a> - 2024-11-20</h2>
|
|
6
12
|
<h3>Fixed</h3>
|
|
7
13
|
<ul>
|
|
8
14
|
<li>Tracks returned from <code>Verifone.readMagstripe()</code> are now in the correct order.</li>
|
|
@@ -13,19 +19,19 @@ and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semant
|
|
|
13
19
|
byte (e.g. the string <code>"AA=="</code>) for empty tracks, it is now returning <code>null</code>
|
|
14
20
|
for empty tracks.</li>
|
|
15
21
|
</ul>
|
|
16
|
-
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.19.2">0.19.2</a> -
|
|
22
|
+
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.19.2">0.19.2</a> - 2024-11-18</h2>
|
|
17
23
|
<h3>Changed</h3>
|
|
18
24
|
<ul>
|
|
19
25
|
<li><code>ICAO.check()</code>, <code>IFace.icao()</code>, and <code>IFace.match()</code> will now throw an
|
|
20
26
|
exception if the response from the server is an error (e.g. if an IFace
|
|
21
27
|
license is not present.)</li>
|
|
22
28
|
</ul>
|
|
23
|
-
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.19.0">0.19.0</a> -
|
|
29
|
+
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.19.0">0.19.0</a> - 2024-11-13</h2>
|
|
24
30
|
<h3>Added</h3>
|
|
25
31
|
<ul>
|
|
26
32
|
<li>Added <code>Verifone.info()</code> method and device info SDK examples.</li>
|
|
27
33
|
</ul>
|
|
28
|
-
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.18.3">0.18.3</a> -
|
|
34
|
+
<h2><a href="https://www.npmjs.com/package/@capturebridge/sdk/v/0.18.3">0.18.3</a> - 2024-10-25</h2>
|
|
29
35
|
<h3>Fixed</h3>
|
|
30
36
|
<ul>
|
|
31
37
|
<li>Fixed some bugs in error handling for the Verifone SDK examples.</li>
|
package/README.md
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
<!--
|
|
4
4
|
Not until: INF-3147
|
|
5
|
-
[SDK Documentation for v0.
|
|
6
|
-
[CHANGELOG](https://docs.capturebridge.net/client/sdk/javascript/0.
|
|
5
|
+
[SDK Documentation for v0.21.1](https://docs.capturebridge.net/client/sdk/javascript/0.21.1)
|
|
6
|
+
[CHANGELOG](https://docs.capturebridge.net/client/sdk/javascript/0.21.1/CHANGELOG.html)
|
|
7
7
|
-->
|
package/VerifoneControls.js
CHANGED
|
@@ -100,6 +100,9 @@ export class Text extends DisplayWidget {
|
|
|
100
100
|
padding
|
|
101
101
|
align = 'left'
|
|
102
102
|
lineHeight
|
|
103
|
+
escape = true
|
|
104
|
+
style
|
|
105
|
+
|
|
103
106
|
/**
|
|
104
107
|
* Instantiate a Text object
|
|
105
108
|
* @constructor
|
|
@@ -117,6 +120,8 @@ export class Text extends DisplayWidget {
|
|
|
117
120
|
* @param {string} [options.align] - Align text `left`, `right`, or `center`
|
|
118
121
|
* @param {object} [options.font] - Font styles
|
|
119
122
|
* @param {number} [options.lineHeight] - Text line height
|
|
123
|
+
* @param {bool} [options.escape=true] - If false allows for raw HTML content
|
|
124
|
+
* @param {string?} [options.style] - If set, will embed inline style
|
|
120
125
|
*/
|
|
121
126
|
constructor (id, text, x, y, options) {
|
|
122
127
|
super(x, y)
|
|
@@ -141,7 +146,9 @@ export class Text extends DisplayWidget {
|
|
|
141
146
|
border: this.border,
|
|
142
147
|
padding: this.padding,
|
|
143
148
|
background: this.background,
|
|
144
|
-
line_height: this.lineHeight
|
|
149
|
+
line_height: this.lineHeight,
|
|
150
|
+
escape: this.escape,
|
|
151
|
+
style: this.style
|
|
145
152
|
}
|
|
146
153
|
}
|
|
147
154
|
}
|
package/Version.js
CHANGED
package/package.json
CHANGED
package/types.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
|
|
2
|
+
declare module '@capturebridge/sdk/Camera' {
|
|
3
|
+
const Camera: any;
|
|
4
|
+
export default Camera;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare module '@capturebridge/sdk/CanonCamera' {
|
|
8
|
+
const CanonCamera: any;
|
|
9
|
+
export default CanonCamera;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '@capturebridge/sdk/CaptureBridge' {
|
|
13
|
+
const CaptureBridge: any;
|
|
14
|
+
export default CaptureBridge;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare module '@capturebridge/sdk/CapturePlugin' {
|
|
18
|
+
const CapturePlugin: any;
|
|
19
|
+
export default CapturePlugin;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module '@capturebridge/sdk/Device' {
|
|
23
|
+
const Device: any;
|
|
24
|
+
export default Device;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare module '@capturebridge/sdk/ICAO' {
|
|
28
|
+
const ICAO: any;
|
|
29
|
+
export default ICAO;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare module '@capturebridge/sdk/Probe' {
|
|
33
|
+
const Probe: any;
|
|
34
|
+
export default Probe;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare module '@capturebridge/sdk/Candidate' {
|
|
38
|
+
const Candidate: any;
|
|
39
|
+
export default Candidate;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module '@capturebridge/sdk/IFace' {
|
|
43
|
+
const IFace: any;
|
|
44
|
+
export default IFace;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare module '@capturebridge/sdk/ImageSource' {
|
|
48
|
+
const ImageSource: any;
|
|
49
|
+
export default ImageSource;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare module '@capturebridge/sdk/Logs' {
|
|
53
|
+
const Logs: any;
|
|
54
|
+
export default Logs;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare module '@capturebridge/sdk/MockCamera' {
|
|
58
|
+
const MockCamera: any;
|
|
59
|
+
export default MockCamera;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare module '@capturebridge/sdk/Plugin' {
|
|
63
|
+
const Plugin: any;
|
|
64
|
+
export default Plugin;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare module '@capturebridge/sdk/Scanner' {
|
|
68
|
+
const Scanner: any;
|
|
69
|
+
export default Scanner;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare module '@capturebridge/sdk/SignatureTablet' {
|
|
73
|
+
const SignatureTablet: any;
|
|
74
|
+
export default SignatureTablet;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare module '@capturebridge/sdk/DisplayWidget' {
|
|
78
|
+
const DisplayWidget: any;
|
|
79
|
+
export default DisplayWidget;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare module '@capturebridge/sdk/TextButton' {
|
|
83
|
+
const TextButton: any;
|
|
84
|
+
export default TextButton;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare module '@capturebridge/sdk/Text' {
|
|
88
|
+
const Text: any;
|
|
89
|
+
export default Text;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare module '@capturebridge/sdk/Image' {
|
|
93
|
+
const Image: any;
|
|
94
|
+
export default Image;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare module '@capturebridge/sdk/StreamingCapturePlugin' {
|
|
98
|
+
const StreamingCapturePlugin: any;
|
|
99
|
+
export default StreamingCapturePlugin;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare module '@capturebridge/sdk/TopazSigGem' {
|
|
103
|
+
const TopazSigGem: any;
|
|
104
|
+
export default TopazSigGem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare module '@capturebridge/sdk/ControlProperty' {
|
|
108
|
+
const ControlProperty: any;
|
|
109
|
+
export default ControlProperty;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare module '@capturebridge/sdk/DeviceForm' {
|
|
113
|
+
const DeviceForm: any;
|
|
114
|
+
export default DeviceForm;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare module '@capturebridge/sdk/Verifone' {
|
|
118
|
+
const Verifone: any;
|
|
119
|
+
export default Verifone;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare module '@capturebridge/sdk/AccessKey' {
|
|
123
|
+
const AccessKey: any;
|
|
124
|
+
export default AccessKey;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare module '@capturebridge/sdk/Button' {
|
|
128
|
+
const Button: any;
|
|
129
|
+
export default Button;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare module '@capturebridge/sdk/Text' {
|
|
133
|
+
const Text: any;
|
|
134
|
+
export default Text;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare module '@capturebridge/sdk/Image' {
|
|
138
|
+
const Image: any;
|
|
139
|
+
export default Image;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare module '@capturebridge/sdk/SignatureBox' {
|
|
143
|
+
const SignatureBox: any;
|
|
144
|
+
export default SignatureBox;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare module '@capturebridge/sdk/Rect' {
|
|
148
|
+
const Rect: any;
|
|
149
|
+
export default Rect;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare module '@capturebridge/sdk/CheckBox' {
|
|
153
|
+
const CheckBox: any;
|
|
154
|
+
export default CheckBox;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare module '@capturebridge/sdk/RadioButton' {
|
|
158
|
+
const RadioButton: any;
|
|
159
|
+
export default RadioButton;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare module '@capturebridge/sdk/TextInput' {
|
|
163
|
+
const TextInput: any;
|
|
164
|
+
export default TextInput;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare module '@capturebridge/sdk/WindowsScanner' {
|
|
168
|
+
const WindowsScanner: any;
|
|
169
|
+
export default WindowsScanner;
|
|
170
|
+
}
|
|
171
|
+
|