@capturebridge/sdk 0.21.0 → 0.21.2

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 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.20.0">0.20.0</a> - 2023-11-20</h2>
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>&quot;AA==&quot;</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> - 2023-11-18</h2>
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> - 2023-11-13</h2>
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> - 2023-10-25</h2>
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.21.0](https://docs.capturebridge.net/client/sdk/javascript/0.21.0)
6
- [CHANGELOG](https://docs.capturebridge.net/client/sdk/javascript/0.21.0/CHANGELOG.html)
5
+ [SDK Documentation for v0.21.2](https://docs.capturebridge.net/client/sdk/javascript/0.21.2)
6
+ [CHANGELOG](https://docs.capturebridge.net/client/sdk/javascript/0.21.2/CHANGELOG.html)
7
7
  -->
@@ -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
@@ -4,5 +4,5 @@
4
4
  * @constant
5
5
  * @type {string}
6
6
  */
7
- const VERSION = '0.21.0'
7
+ const VERSION = '0.21.2'
8
8
  export default VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capturebridge/sdk",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "description": "Capture Bridge JavaScript client SDK",
5
5
  "type": "module",
6
6
  "types": "types.d.ts",