@pixelverse/strichjs-sdk 1.1.3 → 1.1.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 +11 -0
- package/dist/strich.d.ts +18 -1
- package/dist/strich.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.4] - 2023-06-26
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- User-facing error messages (e.g. "Access to camera not permitted") are now localized. English, Spanish, German, French and Italian are the currently supported languages, with more to come.
|
|
8
|
+
- Prepared support for iOS 17 Safari OffscreenCanvas+WebGL support. STRICH will utilize a GPU-accelerated OffscreenCanvas if the browser supports it.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Improved performance when scanning EAN/UPC codes with hysteresis enabled.
|
|
13
|
+
|
|
3
14
|
## [1.1.3] - 2023-06-07
|
|
4
15
|
|
|
5
16
|
### Added
|
package/dist/strich.d.ts
CHANGED
|
@@ -6,8 +6,19 @@ export class SdkError extends Error {
|
|
|
6
6
|
* Flag indicating if this error is related to camera access.
|
|
7
7
|
*/
|
|
8
8
|
duringCameraAccess: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* A localized error message, if available, otherwise this will contain the non-localized message.
|
|
11
|
+
*/
|
|
12
|
+
localizedMessage: string;
|
|
13
|
+
/**
|
|
14
|
+
* An optional underlying error that caused this error.
|
|
15
|
+
*/
|
|
9
16
|
cause?: Error;
|
|
10
|
-
|
|
17
|
+
/**
|
|
18
|
+
* An optional detail message to display to disambiguate multiple errors (not-translated)
|
|
19
|
+
*/
|
|
20
|
+
detailMessage?: string;
|
|
21
|
+
constructor(keyOrMessage: string, cause?: Error);
|
|
11
22
|
}
|
|
12
23
|
/**
|
|
13
24
|
* Configuration for the frame source (camera).
|
|
@@ -324,6 +335,12 @@ export class StrichSDK {
|
|
|
324
335
|
* @default No custom ID is set by default
|
|
325
336
|
*/
|
|
326
337
|
static setCustomId(customId: string | null): void;
|
|
338
|
+
/**
|
|
339
|
+
* Override the language that was detected from the browser's language (navigator.language)
|
|
340
|
+
*
|
|
341
|
+
* @param lang ISO language code, e.g. 'en'
|
|
342
|
+
*/
|
|
343
|
+
static setLanguage(lang: string): void;
|
|
327
344
|
}
|
|
328
345
|
/**
|
|
329
346
|
* A code detection reported by the STRICH SDK.
|