@pixelverse/strichjs-sdk 1.2.2 → 1.3.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.md +21 -0
- package/NOTICE +28 -26
- package/README.md +2 -1
- package/dist/strich.d.ts +15 -1
- package/dist/strich.js +1 -1
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.1] - 2023-10-14
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added configuration option `focusOnTap` (default: `true`) to overlay configuration: this toggles the autofocus that occurs when tapping on the overlay. Previously focusing on tap was always enabled.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Adapted license service calls in order to re-enable detailed usage stats in Customer Portal using Client Hints. No changes to existing Content Security Policies are necessary.
|
|
12
|
+
|
|
13
|
+
## [1.3.0] - 2023-09-20
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- New configuration option `rememberCameraDeviceId` in frame source configuration: if set to `true`, the SDK will remember the selected camera device after a successful scan, and attempt to re-acquire it when re-initialized. Default value is `false`.
|
|
18
|
+
- Support for PDF417 and Compact PDF417 symbologies is now available, the new symbology can be activated by specifying `pdf417` in the `symbologies` array of the engine configuration. PDF417 barcodes can only be read in horizontal direction at the moment.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Under the hood improvements and removal of legacy code.
|
|
23
|
+
|
|
3
24
|
## [1.2.2] - 2023-08-16
|
|
4
25
|
|
|
5
26
|
### Added
|
package/NOTICE
CHANGED
|
@@ -2,32 +2,6 @@ This project uses code from the following projects.
|
|
|
2
2
|
|
|
3
3
|
================================================================================
|
|
4
4
|
|
|
5
|
-
noble-ed25519: https://github.com/paulmillr/noble-ed25519
|
|
6
|
-
|
|
7
|
-
The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2019 Paul Miller (https://paulmillr.com)
|
|
10
|
-
|
|
11
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the “Software”), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions:
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in
|
|
19
|
-
all copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
|
-
THE SOFTWARE.
|
|
28
|
-
|
|
29
|
-
================================================================================
|
|
30
|
-
|
|
31
5
|
ZXing: https://github.com/zxing/zxing
|
|
32
6
|
|
|
33
7
|
Apache License
|
|
@@ -301,3 +275,31 @@ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
|
301
275
|
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
302
276
|
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
303
277
|
PERFORMANCE OF THIS SOFTWARE.
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
================================================================================
|
|
281
|
+
|
|
282
|
+
c25519: https://github.com/ncme/c25519
|
|
283
|
+
|
|
284
|
+
MIT License
|
|
285
|
+
===========
|
|
286
|
+
|
|
287
|
+
Original work Copyright (c) 2017 Daniel Beer
|
|
288
|
+
Modified work Copyright (c) 2018 Nikolas Rösener
|
|
289
|
+
|
|
290
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
291
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
292
|
+
the Software without restriction, including without limitation the rights to
|
|
293
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
294
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
295
|
+
so, subject to the following conditions:
|
|
296
|
+
|
|
297
|
+
The above copyright notice and this permission notice shall be included in all
|
|
298
|
+
copies or substantial portions of the Software.
|
|
299
|
+
|
|
300
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
301
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
302
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
303
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
304
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
305
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
To get started with the STRICH SDK, check out the [Getting Started](https://strich.io/getting-started.html) guide.
|
|
4
4
|
|
|
5
5
|
For detailed information on the API, refer to the [Reference Documentation](https://docs.strich.io/).
|
|
6
|
-
|
|
7
6
|
For a list of recent changes, please refer to the [Changelog](https://docs.strich.io/CHANGELOG.md).
|
|
8
7
|
|
|
8
|
+
Sample code showing how to integrate into popular web frameworks such as Angular, React and Vue is available on [Github][https://github.com/topics/strich-sdk].
|
|
9
|
+
|
|
9
10
|
STRICH is commercial software, its use is governed by the terms of the
|
|
10
11
|
Subscription License Agreement available in the Customer Portal.
|
package/dist/strich.d.ts
CHANGED
|
@@ -34,6 +34,16 @@ export interface FrameSourceConfiguration {
|
|
|
34
34
|
* @default hd
|
|
35
35
|
*/
|
|
36
36
|
resolution?: 'hd' | 'full-hd' | 'auto';
|
|
37
|
+
/**
|
|
38
|
+
* Remember the camera that was last used to successfully scan a code.
|
|
39
|
+
*
|
|
40
|
+
* If this is set to true, the frame source will remember the camera used
|
|
41
|
+
* whenever a code was successfully scanned, and attempt to use the same
|
|
42
|
+
* camera again when re-initialized.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
rememberCameraDeviceId?: boolean;
|
|
37
47
|
}
|
|
38
48
|
export function defaultFrameSourceConfiguration(): FrameSourceConfiguration;
|
|
39
49
|
/**
|
|
@@ -107,7 +117,7 @@ export interface LocatorConfiguration {
|
|
|
107
117
|
/**
|
|
108
118
|
* The supported symbologies.
|
|
109
119
|
*/
|
|
110
|
-
export type SymbologyName = 'ean13' | 'ean8' | 'ean5' | 'ean2' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar' | 'qr' | 'aztec' | 'datamatrix';
|
|
120
|
+
export type SymbologyName = 'ean13' | 'ean8' | 'ean5' | 'ean2' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar' | 'qr' | 'aztec' | 'datamatrix' | 'pdf417';
|
|
111
121
|
/**
|
|
112
122
|
* For variable-length symbologies, min/max length can be specified in addition to the symbology.
|
|
113
123
|
*/
|
|
@@ -222,6 +232,10 @@ export interface OverlayConfiguration {
|
|
|
222
232
|
* @default true
|
|
223
233
|
*/
|
|
224
234
|
showFlashlight?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* @default true (where supported)
|
|
237
|
+
*/
|
|
238
|
+
focusOnTap?: boolean;
|
|
225
239
|
/**
|
|
226
240
|
* Override the STRICH logo displayed in the bottom-right corner with a custom image.
|
|
227
241
|
*
|