@pixelverse/strichjs-sdk 1.3.2 → 1.3.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
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.4] - 2023-11-28
4
+
5
+ ### Fixed
6
+
7
+ - Significantly improved Aztec Code recognition rates for full-range codes.
8
+ - Removed transmission of unnecessary URL parts in license verification and usage tracking.
9
+
10
+ ## [1.3.3] - 2023-11-07
11
+
12
+ ### Fixed
13
+
14
+ - Fixed an issue on iOS where camera access failed with a _camera device is not compatible_ error message `rememberCameraDeviceId` was set to `true` and the user's device changed, leading to the remembered camera device id no longer being valid.
15
+
16
+ ### Changed
17
+
18
+ - Expose detail message when license check fails, providing potentially useful information on how to resolve the issue (e.g. URL not in scope)
19
+
20
+ ### Added
21
+
22
+ - Throw a dedicated error if the SDK is initialized in an insecure context (non-HTTPS, non-localhost). Previously this was reported in a confusing fashion (invalid license).
23
+
3
24
  ## [1.3.2] - 2023-10-26
4
25
 
5
26
  ### Fixed
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # STRICH JavaScript SDK
2
2
 
3
- To get started with the STRICH SDK, check out the [Getting Started](https://strich.io/getting-started.html) guide.
3
+ To get started with the STRICH SDK, check out the [Getting Started](https://docs.strich.io/getting-started.html) guide.
4
4
 
5
- For detailed information on the API, refer to the [Reference Documentation](https://docs.strich.io/).
6
- For a list of recent changes, please refer to the [Changelog](https://docs.strich.io/CHANGELOG.md).
5
+ For detailed information on the API, refer to the [Reference Documentation](https://docs.strich.io/reference/index.html).
6
+ For a list of recent changes, please refer to the [Changelog](https://docs.strich.io/release-notes.html).
7
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].
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
10
  STRICH is commercial software, its use is governed by the terms of the
11
11
  Subscription License Agreement available in the Customer Portal.
package/dist/strich.d.ts CHANGED
@@ -19,6 +19,16 @@ export class SdkError extends Error {
19
19
  */
20
20
  detailMessage?: string;
21
21
  constructor(keyOrMessage: string, cause?: Error);
22
+ /**
23
+ * Create an SDK error for a license checking error including detail.
24
+ *
25
+ * This sets the detailMessage member but also adds the detail message to
26
+ * message itself, as it contains valuable hints as to why the license
27
+ * check failed.
28
+ *
29
+ * @param detailMessage
30
+ */
31
+ static invalidLicenseErrorWithDetail(detailMessage: string): SdkError;
22
32
  }
23
33
  /**
24
34
  * Configuration for the frame source (camera).
@@ -308,14 +318,26 @@ export interface Configuration {
308
318
  * The y coordinate origin starts at the top.
309
319
  */
310
320
  export interface Point {
321
+ /**
322
+ * The x-coordinate in pixels.
323
+ */
311
324
  x: number;
325
+ /**
326
+ * The y-coordinate in pixels.
327
+ */
312
328
  y: number;
313
329
  }
314
330
  /**
315
331
  * The size of a bounding box, represented by its width and height.
316
332
  */
317
333
  export interface Size {
334
+ /**
335
+ * The width in pixels.
336
+ */
318
337
  width: number;
338
+ /**
339
+ * The height in pixels.
340
+ */
319
341
  height: number;
320
342
  }
321
343
  /**