@pixelverse/strichjs-sdk 1.8.2 → 1.9.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/dist/strich.d.ts CHANGED
@@ -295,9 +295,15 @@ export declare interface FrameSourceConfiguration {
295
295
  * Remember the camera that was last used to successfully scan a code.
296
296
  *
297
297
  * @remarks
298
- * If this is set to true, the frame source will remember the camera used
299
- * whenever a code was successfully scanned, and attempt to use the same
300
- * camera again when re-initialized.
298
+ * When set to true, the frame source will remember the camera used for the last
299
+ * successful scan and attempt to use the same camera when re-initializing the frame source.
300
+ * The remembered camera is cleared when a device is selected explicitly through the camera selector.
301
+ *
302
+ * The mechanism relies on the browser returning stable device IDs from calls to
303
+ * [enumerateDevices](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices) and
304
+ * related APIs. For privacy reasons, browsers will occasionally rotate these device IDs to make them
305
+ * non-stable to prevent fingerprinting. Some browsers like Samsung Internet even change them
306
+ * on every page load. This is a best-effort mechanism.
301
307
  *
302
308
  * @defaultValue false
303
309
  */
@@ -608,7 +614,7 @@ export declare interface PopupConfiguration {
608
614
  /**
609
615
  * The camera resolution to use.
610
616
  *
611
- * @defaultValue full-hd
617
+ * @defaultValue hd
612
618
  */
613
619
  resolution?: 'hd' | 'full-hd';
614
620
  /**
@@ -659,6 +665,10 @@ export declare interface PopupConfiguration {
659
665
  */
660
666
  cancelButtonColor?: string;
661
667
  };
668
+ /**
669
+ * Optional Frame source configuration, will override {@link PopupConfiguration.resolution} setting.
670
+ */
671
+ frameSource?: FrameSourceConfiguration;
662
672
  /**
663
673
  * Optional Overlay configuration.
664
674
  */
@@ -778,10 +788,6 @@ export declare class SdkError extends Error {
778
788
  */
779
789
  detailMessage?: string;
780
790
  constructor(keyOrMessage: string, cause?: Error);
781
- /**
782
- * Create an SDK error with 'invalid input' semantics.
783
- */
784
- static invalidInputError(cause?: Error): SdkError;
785
791
  }
786
792
 
787
793
  /**