@signageos/front-applet 6.5.4 → 6.5.6

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,14 @@ 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.6] - 2024-07-29
8
+ ### Fixed
9
+ - Documentation patch: Fill in and correct Browser API description
10
+
11
+ ## [6.5.5] - 2024-05-24
12
+ ### Fixed
13
+ - Documentation patch: Addind Applet Dispatch Throttling information
14
+
7
15
  ## [6.5.4] - 2024-05-15
8
16
  ### Fixed
9
17
  - Better description of the serial port options on BrightSign
@@ -44,37 +44,35 @@ sos.browser.open('https://www.signageos.io'); // Open link in the browser
44
44
  ```
45
45
  <br/>
46
46
 
47
- Method `open()` also supports properties for browser. You can set height, width or CORS domains. All properties are optional.
48
-
49
-
50
- | Property | Type | Description |
51
- | -------- | ------ | -------- |
52
- | `aclDomains` | Array | ? |
53
- | `aclMode` | String | Can be only **blacklist** or **whitelist**. |
54
- | `readOnlyAddressBar` | Boolean | Accessible address bar |
55
- | `coordinates` | Object | Size of browser screen (only Linux) |
56
- | `idleTimeout` | Number | Timeout in milliseconds for loading page |
57
- | `theme` | Object | Setting custom theme for Android |
58
- | `headlessMode` | Boolean | Headless mode hides the entire address bar (default) |
59
- | `canUserClose` | Boolean | Whether the user can manually close the browser. Default:<br/>**Headless:** `false`<br/>**With UI:** `true` |
60
- | `clearData` | Boolean | Clear cache after the browser closes. Default:<br/>**Headless:** `false`<br/>**With UI:** `true`
61
- | `method` | String | Can only be **native** (which opens a new, fully sandboxed fullscreen window) or **iframe** (which opens a configurable-sized window). (only Linux) |
62
- :::
63
-
47
+ Method `open()` also supports properties for browser, all of which are optional.
48
+
49
+ | Property | Type | Description |
50
+ |----------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
+ | `aclDomains` | Array | List of domains to be interpreted according to `aclMode`. Example: `signageos.io`, `www.example.com` |
52
+ | `aclMode` | String | <ul><li>`blacklist` Allow access to all domains _except_ those in `aclDomains` and their subdomains.</li><li>`whitelist` – Allow access _only_ to domains in `aclDomains` and their subdomains.</li></ul>
53
+ | `readOnlyAddressBar` | Boolean | <ul><li>`true` The address bar is read-only.</li><li>`false` The user can navigate away by entering a URL in the address bar.</li></ul> |
54
+ | `coordinates` | Object | Size and position of the browser window. Defaults to fullscreen. (Android, Linux)
55
+ | `idleTimeout` | Number | The browser will automatically close after a specified period of inactivity (in milliseconds). |
56
+ | `theme` | Object | Specify custom UI theme. (Android) |
57
+ | `headlessMode` | Boolean | Headless mode hides the entire address bar (default) |
58
+ | `canUserClose` | Boolean | Whether the user can manually close the browser. Default:<br/>**Headless:** `false`<br/>**With UI:** `true` |
59
+ | `clearData` | Boolean | Clear cache after the browser closes. Default:<br/>**Headless:** `false`<br/>**With UI:** `true` |
60
+ | `method` | String | Can only be **native** (which opens a new, fully sandboxed fullscreen window) or **iframe** (which opens a configurable-sized window). (only Linux) |
64
61
 
65
62
  ```javascript
66
63
  sos.browser.open('https://www.signageos.io', {
67
- aclDomains: ['google.com', 'yahoo.com'],
68
- aclMode: 'blacklist', // or 'whitelist'
69
- readOnlyAddressBar: true,
70
- coordinates: { // Supported only on Linux and Android
71
- x: 0,
72
- y: 0,
73
- height: 500,
74
- width: 500,
75
- },
76
- // theme: { ... } // supported only on Android
77
- headlessMode: false, // supported only on Android
64
+ aclDomains: ['google.com', 'yahoo.com'],
65
+ aclMode: 'blacklist', // or 'whitelist'
66
+ readOnlyAddressBar: true,
67
+ coordinates: { // Supported only on Linux and Android
68
+ x: 0,
69
+ y: 0,
70
+ height: 500,
71
+ width: 500,
72
+ },
73
+ // theme: { ... } // supported only on Android
74
+ headlessMode: false, // supported only on Android
75
+ });
78
76
  ```
79
77
 
80
78
  :::note[GitHub Example]
@@ -28,6 +28,10 @@ All commands will be available in [Applet Command REST API](https://developers.s
28
28
 
29
29
  Dispatch() is used for sending your custom logs or data from device to signageOS.
30
30
 
31
+ :::warning[Throttling in place]
32
+ The maximum allowed frequency for dispatching commands is 30 commands per 30 seconds. Any commands sent that exceed this frequency will be discarded.
33
+ :::
34
+
31
35
  ### Parameters
32
36
 
33
37
  | Parameter | Type | Required | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signageos/front-applet",
3
- "version": "6.5.4",
3
+ "version": "6.5.6",
4
4
  "main": "dist/bundle.js",
5
5
  "types": "es6/bundle.d.ts",
6
6
  "files": [