@switchlabs/verify-ai-react-native 2.4.1 → 2.4.3
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/lib/components/VerifyAIScanner.js +10 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/components/VerifyAIScanner.tsx +10 -0
- package/src/version.ts +1 -1
|
@@ -98,6 +98,13 @@ export function VerifyAIScanner({ onCapture, onResult, onError, overlay, style,
|
|
|
98
98
|
prevDimensionsRef.current = { width: windowWidth, height: windowHeight };
|
|
99
99
|
if (orientationChanged && !terminated) {
|
|
100
100
|
// Force camera remount to fix preview distortion on iOS
|
|
101
|
+
telemetry?.track('camera_orientation_remount', {
|
|
102
|
+
component: 'scanner',
|
|
103
|
+
metadata: {
|
|
104
|
+
from: prev.width > prev.height ? 'landscape' : 'portrait',
|
|
105
|
+
to: windowWidth > windowHeight ? 'landscape' : 'portrait',
|
|
106
|
+
},
|
|
107
|
+
});
|
|
101
108
|
setCameraReady(false);
|
|
102
109
|
cameraReadyRef.current = false;
|
|
103
110
|
setCameraKey((k) => k + 1);
|
|
@@ -111,6 +118,9 @@ export function VerifyAIScanner({ onCapture, onResult, onError, overlay, style,
|
|
|
111
118
|
if (nextState === 'active') {
|
|
112
119
|
// Force camera remount — on iOS, AVCaptureSession often fails to resume
|
|
113
120
|
// its preview layer after returning from the notification bar or control center.
|
|
121
|
+
telemetry?.track('camera_appstate_remount', {
|
|
122
|
+
component: 'scanner',
|
|
123
|
+
});
|
|
114
124
|
setCameraReady(false);
|
|
115
125
|
cameraReadyRef.current = false;
|
|
116
126
|
setCameraKey((k) => k + 1);
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.4.
|
|
1
|
+
export declare const SDK_VERSION = "2.4.3";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.4.
|
|
1
|
+
export const SDK_VERSION = '2.4.3';
|
package/package.json
CHANGED
|
@@ -166,6 +166,13 @@ export function VerifyAIScanner({
|
|
|
166
166
|
|
|
167
167
|
if (orientationChanged && !terminated) {
|
|
168
168
|
// Force camera remount to fix preview distortion on iOS
|
|
169
|
+
telemetry?.track('camera_orientation_remount', {
|
|
170
|
+
component: 'scanner',
|
|
171
|
+
metadata: {
|
|
172
|
+
from: prev.width > prev.height ? 'landscape' : 'portrait',
|
|
173
|
+
to: windowWidth > windowHeight ? 'landscape' : 'portrait',
|
|
174
|
+
},
|
|
175
|
+
});
|
|
169
176
|
setCameraReady(false);
|
|
170
177
|
cameraReadyRef.current = false;
|
|
171
178
|
setCameraKey((k) => k + 1);
|
|
@@ -180,6 +187,9 @@ export function VerifyAIScanner({
|
|
|
180
187
|
if (nextState === 'active') {
|
|
181
188
|
// Force camera remount — on iOS, AVCaptureSession often fails to resume
|
|
182
189
|
// its preview layer after returning from the notification bar or control center.
|
|
190
|
+
telemetry?.track('camera_appstate_remount', {
|
|
191
|
+
component: 'scanner',
|
|
192
|
+
});
|
|
183
193
|
setCameraReady(false);
|
|
184
194
|
cameraReadyRef.current = false;
|
|
185
195
|
setCameraKey((k) => k + 1);
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.4.
|
|
1
|
+
export const SDK_VERSION = '2.4.3';
|