@signageos/front-applet 6.5.3 → 6.5.4

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.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [6.5.4] - 2024-05-15
8
+ ### Fixed
9
+ - Better description of the serial port options on BrightSign
10
+ - Documentation patch: New section in Applet Basics for the sos.authHash used as unique device identification from Applet
11
+
7
12
  ## [6.5.3] - 2024-04-30
8
13
  ### Fixed
9
14
  - Documentation patch: Browser.open() is supported on BrightSign
@@ -26,6 +26,7 @@ This thread contains basic methods of every Applet used to load necessary config
26
26
  | `appletVersion` | Returns current Applet version | JS API `4.5.0`, Front-display `7.8.0`|
27
27
  | `config` object | Returns object with key-values set via Timing or as a bundled config| JS API `1.5.0`, Front-display `6.8.0`|
28
28
  | `config` object | Returns object with key-values set via Timing or as a bundled config| `1.0.0`|
29
+ | `authHash` token | Returns string with unique device identifier | `1.0.0`|
29
30
  | `capabilities` | Enum of device-specific capabilities and features | `1.0.0`
30
31
 
31
32
  ## Starting Applet
@@ -176,9 +177,33 @@ console.log(sos.config.imgUrl);
176
177
  ```
177
178
 
178
179
  :::note[Guide]
179
- [Custom variables in Applet](https://docs.signageos.io/hc/en-us/articles/4405238989458)
180
+ [Custom variables in Applet](https://developers.signageos.io/docs/devspace-extras/env-variables-configuration)
180
181
 
181
- How to pass custom variables and cofiguration to your Applet
182
+ How to pass custom variables and configuration to your Applet.
183
+ :::
184
+
185
+ ## The authHash for unique device identification
186
+
187
+ The `sos.authHash` is an alternative device identifier designed for secure pairing and locating devices through the REST API.
188
+
189
+ 1. The `authHash` is commonly used as a link between the Applet deployed on the device and the device in device management.
190
+ 1. The `authHash` is unique and can be revoked upon request.
191
+ 1. The `authHash` can be used as a universal identifier for your Applet application.
192
+
193
+ The `authHash` can be retrieved from the JS SDK API - it's available as `sos.authHash`.
194
+
195
+ ```javascript
196
+ async function startApplet() {
197
+ await sos.onReady();
198
+ console.log(sos.authHash);
199
+ }
200
+ window.addEventListener('sos.loaded', startApplet);
201
+ ```
202
+
203
+ :::note[Guide]
204
+ [Using authHash for device identification](https://developers.signageos.io/docs/devspace-extras/sos-authhash-device-pairing.md)
205
+
206
+ How to get `authHash` and use it in the REST API for device identification.
182
207
  :::
183
208
 
184
209
  ## Applet JS API version
@@ -89,7 +89,7 @@ Device address is different per platform (at least for now). Kindly find the res
89
89
  | Windows | `COM3` | `COM3` (typically, but check your Win machine if this does not work) |
90
90
  | Samsung Kiosk | `PORT1` |`PORT1`, `PORT2`, `PORT3` |
91
91
  | Android | `/dev/ttyusb0` | `/dev/ttyusb0` |
92
- | BrightSign | `0` | `0`, `1`, `USB:A/0`
92
+ | BrightSign | `0` | `0` (Serial jack /dev/ttyS0), `1` (GPIO port /dev/ttyS1), `USB:A/0` (USB-to-serial /dev/ttyUSB0) |
93
93
 
94
94
  ## Serial port methods
95
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signageos/front-applet",
3
- "version": "6.5.3",
3
+ "version": "6.5.4",
4
4
  "main": "dist/bundle.js",
5
5
  "types": "es6/bundle.d.ts",
6
6
  "files": [