@signageos/front-applet 5.0.1 → 5.1.0

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,13 @@ 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
+ ## [5.1.0] - 2022-01-27
8
+ ### Added
9
+ - Update firmware guide with new methods
10
+
11
+ ### Fixed
12
+ - fix backlinks from old to new Docs
13
+
7
14
  ## [5.0.1] - 2022-01-25
8
15
  ### Fixed
9
16
  - adjusted documentation to better reflect naming of JS SDK
@@ -142,7 +149,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
142
149
  ### Added
143
150
  - File System API supports copyFile, writeFile, readFile
144
151
  - File System moveFile supports optional overwrite destination
145
- - New Management JS API (https://docs.signageos.io/api/js/management/1-js-management)
152
+ - New Management JS API (https://sdk.docs.signageos.io/api/js/management/1-js-management)
146
153
  - Video API supports video playing in the background with HTML content in the foreground
147
154
  - Video API supports 4K video
148
155
  - getTimers and unsetTimer of management power API
@@ -195,7 +202,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
195
202
 
196
203
  ## [2.1.0] - 2018-12-04
197
204
  ### Added
198
- - New API for decompress (extract) ZIP (or other formats) files: https://docs.signageos.io/api/sos-applet-api/#Decompress_file_ZIP
205
+ - New API for decompress (extract) ZIP (or other formats) files: https://sdk.docs.signageos.io/api/sos-applet-api/#Decompress_file_ZIP
199
206
 
200
207
  ### Fixed
201
208
  - import lib in typescript using `import * as sos from '@signageos/front-applet';`
@@ -203,13 +210,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
203
210
 
204
211
  ## [2.0.0] - 2018-09-17
205
212
  ### Added
206
- - List offline files/contents (https://docs.signageos.io/api/sos-applet-api/#List_all_files)
207
- - Delete offline files/contents (https://docs.signageos.io/api/sos-applet-api/#Delete_file)
213
+ - List offline files/contents (https://sdk.docs.signageos.io/api/sos-applet-api/#List_all_files)
214
+ - Delete offline files/contents (https://sdk.docs.signageos.io/api/sos-applet-api/#Delete_file)
208
215
  - Allow use any npm module file imported as ES6 module (ex.: `import Video from '@signageos/front-applet/dist/FrontApplet/Video/Video'`)
209
- - Binding of dispatched commands to REST API (https://docs.signageos.io/api/sos-applet-api/#Command_Receiving)
210
- - New monitoring applet commands dispatching about `timing loaded`, `html snapshot`, `console logs`, `offline cache changes`, `video state changes` when monitoring is enabled by timing configuration `sos.config.sosMonitoring = true` or by dispatching command to device `sos.Monitoring.EnableMonitoring` (https://docs.signageos.io/api/sos-applet-api/#Monitoring_Commands)
211
- - Methods for getting file checksum MD5: https://docs.signageos.io/api/sos-applet-api/#Checksum_file_md5
212
- - Font face generator (https://docs.signageos.io/api/sos-applet-api/#Loading_fonts)
216
+ - Binding of dispatched commands to REST API (https://sdk.docs.signageos.io/api/sos-applet-api/#Command_Receiving)
217
+ - New monitoring applet commands dispatching about `timing loaded`, `html snapshot`, `console logs`, `offline cache changes`, `video state changes` when monitoring is enabled by timing configuration `sos.config.sosMonitoring = true` or by dispatching command to device `sos.Monitoring.EnableMonitoring` (https://sdk.docs.signageos.io/api/sos-applet-api/#Monitoring_Commands)
218
+ - Methods for getting file checksum MD5: https://sdk.docs.signageos.io/api/sos-applet-api/#Checksum_file_md5
219
+ - Font face generator (https://sdk.docs.signageos.io/api/sos-applet-api/#Loading_fonts)
213
220
 
214
221
  ### Fixed
215
222
  - Applet Commands type can has length 100 characters now
@@ -228,9 +235,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
228
235
 
229
236
  ## [1.3.0] - 2018-05-30
230
237
  ### Added
231
- - Remote control Key UP binding (https://docs.signageos.io/api/sos-applet-api/#input)
238
+ - Remote control Key UP binding (https://sdk.docs.signageos.io/api/sos-applet-api/#input)
232
239
 
233
240
  ## [1.2.0] - 2018-05-09
234
241
  ### Added
235
242
  - Changelog file containing all changes in current project
236
- - @signageos/front-applet library is also published to public npm registry registry.npmjs.org https://docs.signageos.io/api/sos-applet-api/
243
+ - @signageos/front-applet library is also published to public npm registry registry.npmjs.org https://sdk.docs.signageos.io/api/sos-applet-api/
@@ -14,7 +14,7 @@ description: "[Content JS API] General introduction to signageOS JS API"
14
14
  Javascript SDK gives you access to device's native features and functionalities. You can use the same functions across all devices with the same result.
15
15
 
16
16
  ::: alert alert--tip
17
- All APIs are standardized and available across all [supported devices](https://signageos.zendesk.com/hc/en-us/sections/4405700629266-Supported-Devices).
17
+ All APIs are standardized and available across all [supported devices](https://docs.signageos.io/hc/en-us/sections/4405700629266-Supported-Devices).
18
18
  :::
19
19
 
20
20
  ## Content-related JS APIs
@@ -192,7 +192,8 @@ console.log(sos.config.imgUrl);
192
192
  ```
193
193
  <div class="row d-flex align-content-stretch force-padding-20">
194
194
  <div class="col-12 d-flex">
195
- <a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="/knowledge-base/applet-custom-config-on-device">
195
+ <a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank"
196
+ href="https://docs.signageos.io/hc/en-us/articles/4405238989458">
196
197
  <div>
197
198
  <div class="wide-box__image d-flex align-items-center">
198
199
  <i class="fas fa-hand-point-right svg-black"></i>
@@ -42,7 +42,7 @@ Every method above, accept single object or array of objects depending by type.
42
42
 
43
43
  ::: alert alert--info
44
44
  * The file URL must point to a file. If your URI leads to a 303 redirect (e.g. from http to http**s**), the API will not work.
45
- * There are some limitations for [Emulator](knowledge-base/box-emulator-limitations).
45
+ * There are some limitations for [Emulator](https://docs.signageos.io/hc/en-us/articles/4405238997138).
46
46
  :::
47
47
 
48
48
  ## addFile()
@@ -128,7 +128,7 @@ sos.offline.addFilesSync(files).then(() => {
128
128
  ```
129
129
 
130
130
  ## Usage with Typescript
131
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
131
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
132
132
 
133
133
  ```typescript
134
134
  interface ISaveFile {
@@ -93,7 +93,7 @@ sos.browser.open('https://www.signageos.io', {
93
93
  </div>
94
94
 
95
95
  ### Browser themes usage with Typescript
96
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
96
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
97
97
 
98
98
  ::: alert alert--info
99
99
  Browser themes are only available on Android devices.
@@ -412,7 +412,7 @@ Returns checksum of existing file in a path.
412
412
  * FAIL: When file path is directory
413
413
 
414
414
  ::: alert alert--info
415
- Does not work on Samsung Tizen display - [read more here](knowledge-base/md5-tizen-not-available)
415
+ Does not work on Samsung Tizen display - [read more here](https://docs.signageos.io/hc/en-us/articles/4416327809810)
416
416
  :::
417
417
 
418
418
  ### Parameters
@@ -53,7 +53,7 @@ await sos.input.onKeyUp((keyUpEvent) => {
53
53
  | ARROW_DOWN | 14 | | |
54
54
 
55
55
  ## Usage with Typescript
56
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
56
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
57
57
 
58
58
  ```typescript
59
59
  interface IKeyUpEvent {
@@ -102,7 +102,7 @@ await sos.offline.addFont({
102
102
  </div>
103
103
 
104
104
  ## Usage with Typescript
105
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
105
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
106
106
 
107
107
  ```typescript
108
108
  addFont(
@@ -69,7 +69,7 @@ export interface ConsoleLogged {
69
69
  }
70
70
  ```
71
71
 
72
- To trigger some monitoring commands to be dispatched from a device. This REST API can be used to send monitoring [commands to the device](https://docs.signageos.io/api/device-monitoring-api/#Send_Device_Applet_Command_to_device). Following commands can be used:
72
+ To trigger some monitoring commands to be dispatched from a device. This REST API can be used to send monitoring [commands to the device](https://sdk.docs.signageos.io/api/device-monitoring-api/#Send_Device_Applet_Command_to_device). Following commands can be used:
73
73
 
74
74
  ### Typescript
75
75
  ```typescript
@@ -30,7 +30,7 @@ File API allows files (video files, media files etc.) to be stored for offline u
30
30
  :::
31
31
 
32
32
  ::: alert alert--warning
33
- Emulator has certain limitations while handling offline files. [Read more here](/knowledge-base/box-emulator-limitations)
33
+ Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
34
34
  :::
35
35
 
36
36
  ## listFiles()
@@ -121,7 +121,7 @@ To get file from internal memory & save it when not yet exists we prepared `load
121
121
 
122
122
  ::: alert alert--info
123
123
  * The file URI has to return the file. If your URI leads to a 303 redirect (e.g. from http to http**s**), the API will not work.
124
- * Emulator has certain limitations while handling offline files. [Read more here](knowledge-base/box-emulator-limitations)
124
+ * Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
125
125
  :::
126
126
 
127
127
  ### Parameters
@@ -294,7 +294,7 @@ await sos.offline.cache.decompressFile(zipUid, destinationDirectoryUid, 'zip')
294
294
 
295
295
  * [Managing files](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/file-system)
296
296
  * [Sample applet from Box](https://github.com/signageos/applet-examples/blob/master/index.html)
297
- * All other examples are available in Knowledge Base under [Applet Examples](/knowledge-base/applet-examples)
297
+ * All other examples are available in Knowledge Base under [Applet Examples](https://github.com/signageos/applet-examples/)
298
298
 
299
299
  ## Errors
300
300
  Although we are doing our best, following errors may occur when working with the offline cache.
@@ -28,7 +28,7 @@ We do not recommend using a different storage type then Offline Cache or full fe
28
28
  :::
29
29
 
30
30
  ::: alert alert--warning
31
- Emulator has certain limitations while handling offline files. [Read more here](/knowledge-base/box-emulator-limitations)
31
+ Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
32
32
  :::
33
33
 
34
34
  ## loadContent()
@@ -108,7 +108,7 @@ sos.offline.cache.saveContent('ApplicationSecret', '123SuperSecretHash')
108
108
  ```
109
109
 
110
110
  ## Usage with Typescript
111
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
111
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
112
112
 
113
113
  ```typescript
114
114
  loadContent(uid: string): Promise<string>;
@@ -56,7 +56,7 @@ interface IRfidAntenna {
56
56
  ## Ready to use integrations
57
57
 
58
58
  We already did the hard work for you and implemented some of the popular hardware. All you have to do is use it in your project.
59
- For more information read [this article](/knowledge-base/sensors-supported-sensors).
59
+ For more information read [this article](https://docs.signageos.io/hc/en-us/articles/4405231196946-Supported-devices-for-Sensors-usage).
60
60
 
61
61
  ## Writing your own implementation
62
62
 
@@ -166,7 +166,7 @@ Since you never know which device is the master at the moment, you should always
166
166
  :::
167
167
 
168
168
  ## Usage with Typescript
169
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
169
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
170
170
 
171
171
  ```typescript
172
172
  connect(syncServerUri?: string): Promise<void>;
@@ -103,7 +103,7 @@ API reacts to events related to changes in internal port status. Events are only
103
103
  :::
104
104
 
105
105
  ## Usage with Typescript
106
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
106
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
107
107
  ```typescript
108
108
  onDisconnected(listener: (event: {
109
109
  type: 'disconnected';
@@ -27,7 +27,7 @@ Methods to play or stop video streams.
27
27
  :::
28
28
 
29
29
  ::: alert alert--warning
30
- Are you using **Samsung Tizen** to play streams? [Read more about limitation and Tizen-specific details](knowledge-base/stream-playback-on-tizen).
30
+ Are you using **Samsung Tizen** to play streams? [Read more about limitation and Tizen-specific details](https://docs.signageos.io/hc/en-us/articles/4405387373458).
31
31
  :::
32
32
 
33
33
  ## prepare()
@@ -185,7 +185,7 @@ Example event:
185
185
  ```
186
186
 
187
187
  ## Usage with Typescript
188
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
188
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
189
189
  ```typescript
190
190
  interface StreamEvent {
191
191
  type: 'connected' | 'disconnected' | 'error',
@@ -222,7 +222,7 @@ await sos.video.onError((event) => { console.log(event); });
222
222
  ```
223
223
 
224
224
  ## Usage with Typescript
225
- You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
225
+ You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
226
226
 
227
227
  ```typescript
228
228
  play(
@@ -55,7 +55,7 @@ await sos.management.app.getVersion(); // Returns ex. 2.0.0
55
55
  ```
56
56
 
57
57
  ## upgrade()
58
- Method `upgrade()` will upgrade the [Core App](knowledge-base/application-version-and-release-policy) on the device.
58
+ Method `upgrade()` will upgrade the [Core App](https://docs.signageos.io/hc/en-us/articles/4405381466898) on the device.
59
59
 
60
60
 
61
61
  ### A) Upgrading signageOS Core App
@@ -92,7 +92,7 @@ await sos.management.app.upgrade('https://example.com/signageos-core-app.zip', '
92
92
  <br>
93
93
 
94
94
  ### B) Upgrading Open Core App with built-in Applet
95
- If you are [building your own Core App](/knowledge-base/open-standalone-signageos-provisioning) with the built-in Applet, use only one parameter `absolutePathUrl`.
95
+ If you are [building your own Core App](https://docs.signageos.io/hc/en-us/articles/4405245195666) with the built-in Applet, use only one parameter `absolutePathUrl`.
96
96
 
97
97
  The `absolutePathUrl` should point to the application file, e.g. `https://cdn.your-cms.com/rpi/linux_202006100815_1.0.1_779c303408.zip`.
98
98
 
@@ -31,21 +31,35 @@ Method `upgrade()` will upgrade current firmware version to a specified one.
31
31
  | -------------- | ----------------------| :-------: | -------------------- |
32
32
  | `baseUrl` | string | <div class="red">Yes</div> | Location of the FW package for specific device |
33
33
  |^^|^^|^^| `https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem` |
34
- | `version` | string | <div class="red">Yes</div> | FW version |
34
+ | `version` | string | <div class="yellow">No</div> | FW version |
35
35
  |^^|^^|^^| `T-HKMLAKUC-2080.4` |
36
+ | `(progress: number)` | callback | <div class="yellow">No</div> | FW progress upgrade |
36
37
  :::
37
38
 
38
39
  ### Javascript example
39
40
  ```javascript
40
41
  await sos.management.firmware.upgrade(
41
- '`https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem`',
42
- '`T-HKMLAKUC-2080.4`',
42
+ 'https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem',
43
+ 'T-HKMLAKUC-2080.4',
43
44
  (progress: number) => {
44
45
  console.log(progress + "%");
45
46
  }
46
47
  );
48
+
49
+ await sos.management.firmware.upgrade('https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem');
47
50
  ```
48
51
 
52
+ ::: alert alert--warning
53
+ Always check if your absolute firmware URL ends with firmware file.
54
+ Example: `https://cnd.your-cms.com/brightsign/fw/brightsign-update.bsfw`
55
+ :::
56
+
57
+ ::: alert alert--info
58
+ For BrightSign firmware upgrade please ensure that you have txt file with SHA1 hash of that firmware file.
59
+ - Firmware file path: `https://cnd.your-cms.com/brightsign/fw/brightsign-update.bsfw`
60
+ - SHA1 txt file: `https://cnd.your-cms.com/brightsign/fw/brightsign-update.bsfw.sha1.txt`
61
+ :::
62
+
49
63
  <div class="row d-flex align-content-stretch force-padding-20">
50
64
  <div class="col-12 d-flex">
51
65
  <a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/firmware/">
@@ -54,7 +54,7 @@ Method `resize()` helps you manipulate with several aspects of your displays scr
54
54
  :::
55
55
 
56
56
  ::: alert alert--info
57
- For Tizen, you have to provide `baseUrl` which points to your server where you uploaded previously built Core App for Tizen with your buiult-in Applet. [Read more how to upload your Core Apps here.](https://docs.signageos.io/knowledge-base/open-standalone-signageos-provisioning#tizen-specific-installation-url).
57
+ For Tizen, you have to provide `baseUrl` which points to your server where you uploaded previously built Core App for Tizen with your buiult-in Applet. [Read more how to upload your Core Apps here.](https://docs.signageos.io/hc/en-us/articles/4405245195666).
58
58
  :::
59
59
 
60
60
  ### Javascript example
@@ -177,6 +177,6 @@ Setting NTP server and timezone has side effects:
177
177
 
178
178
  | Platform | Side effect |
179
179
  | ----------- | -------------------------------------------- |
180
- | Tizen | After calling this API, display **Reboots**!<br/><br/> Tizen has [**limited set of available timezones**. Read more here.](knowledge-base/debugging-guides-tizen-timezones) |
180
+ | Tizen | After calling this API, display **Reboots**!<br/><br/> Tizen has [**limited set of available timezones**. Read more here.](https://docs.signageos.io/hc/en-us/articles/4405381271314) |
181
181
  | RaspberryPi | After calling this API, RPi **Reboots backend server which can take up to 60 seconds**!<br /> During the reboot no JS API is available.<br />Always wait for Promise resolution. |
182
182
  :::
@@ -24,7 +24,7 @@ Management API debug lets you enable and disable debug mode.
24
24
  :::
25
25
 
26
26
  ## enable()
27
- Method `enable()` enable the [Native debug](knowledge-base/using-weinre-for-debuging) on the device.
27
+ Method `enable()` enable the [Native debug](https://docs.signageos.io/hc/en-us/articles/4405238849938) on the device.
28
28
 
29
29
  ```javascript
30
30
  await sos.management.debug.enable();
@@ -47,7 +47,7 @@ await sos.management.debug.enable();
47
47
  </div>
48
48
 
49
49
  ## disable()
50
- Method `disable()` disable the [Native debug](knowledge-base/using-weinre-for-debuging) on the device.
50
+ Method `disable()` disable the [Native debug](https://docs.signageos.io/hc/en-us/articles/4405238849938) on the device.
51
51
 
52
52
  ```javascript
53
53
  await sos.management.debug.disable();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signageos/front-applet",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "main": "dist/bundle.js",
5
5
  "types": "es6/bundle.d.ts",
6
6
  "files": [