idmission-web-sdk 2.2.48 → 2.2.50
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/lib/camera/cameraStore.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +22 -139
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +12 -129
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +51 -42
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -2
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.50';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -9655,7 +9655,9 @@
|
|
|
9655
9655
|
setTimeout(function () {
|
|
9656
9656
|
// iOS 17 has a strange behavior where the video track flickers between muted and unmuted
|
|
9657
9657
|
// when the camera access is being requested. This delay is a workaround for that.
|
|
9658
|
-
videoTrack_1.onmute =
|
|
9658
|
+
videoTrack_1.onmute = function () {
|
|
9659
|
+
if (videoTrack_1.readyState !== 'live') handleStreamEnded_1();
|
|
9660
|
+
};
|
|
9659
9661
|
set({
|
|
9660
9662
|
camera: camera_1,
|
|
9661
9663
|
cameraReady: true,
|
|
@@ -9726,18 +9728,16 @@
|
|
|
9726
9728
|
microphoneReady: true,
|
|
9727
9729
|
microphoneAccessDenied: false
|
|
9728
9730
|
});
|
|
9729
|
-
var
|
|
9730
|
-
|
|
9731
|
-
return set({
|
|
9731
|
+
var handleStreamEnded = function handleStreamEnded() {
|
|
9732
|
+
set({
|
|
9732
9733
|
microphoneReady: false,
|
|
9733
9734
|
microphoneAccessDenied: true
|
|
9734
9735
|
});
|
|
9735
9736
|
};
|
|
9737
|
+
var track = stream_2.getAudioTracks()[0];
|
|
9738
|
+
track.onended = handleStreamEnded;
|
|
9736
9739
|
track.onmute = function () {
|
|
9737
|
-
|
|
9738
|
-
microphoneReady: false,
|
|
9739
|
-
microphoneAccessDenied: true
|
|
9740
|
-
});
|
|
9740
|
+
if (track.readyState !== 'live') handleStreamEnded();
|
|
9741
9741
|
};
|
|
9742
9742
|
}, 500);
|
|
9743
9743
|
return [3 /*break*/, 4];
|
|
@@ -15029,10 +15029,18 @@
|
|
|
15029
15029
|
var isIterable = function isIterable(obj) {
|
|
15030
15030
|
return Symbol.iterator in obj;
|
|
15031
15031
|
};
|
|
15032
|
-
var
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15032
|
+
var hasIterableEntries = function hasIterableEntries(value) {
|
|
15033
|
+
return (
|
|
15034
|
+
// HACK: avoid checking entries type
|
|
15035
|
+
"entries" in value
|
|
15036
|
+
);
|
|
15037
|
+
};
|
|
15038
|
+
var compareEntries = function compareEntries(valueA, valueB) {
|
|
15039
|
+
var mapA = valueA instanceof Map ? valueA : new Map(valueA.entries());
|
|
15040
|
+
var mapB = valueB instanceof Map ? valueB : new Map(valueB.entries());
|
|
15041
|
+
if (mapA.size !== mapB.size) {
|
|
15042
|
+
return false;
|
|
15043
|
+
}
|
|
15036
15044
|
for (var _iterator = _createForOfIteratorHelperLoose(mapA), _step; !(_step = _iterator()).done;) {
|
|
15037
15045
|
var _step$value = _step.value,
|
|
15038
15046
|
key = _step$value[0],
|
|
@@ -15043,41 +15051,42 @@
|
|
|
15043
15051
|
}
|
|
15044
15052
|
return true;
|
|
15045
15053
|
};
|
|
15046
|
-
function
|
|
15047
|
-
|
|
15054
|
+
var compareIterables = function compareIterables(valueA, valueB) {
|
|
15055
|
+
var iteratorA = valueA[Symbol.iterator]();
|
|
15056
|
+
var iteratorB = valueB[Symbol.iterator]();
|
|
15057
|
+
var nextA = iteratorA.next();
|
|
15058
|
+
var nextB = iteratorB.next();
|
|
15059
|
+
while (!nextA.done && !nextB.done) {
|
|
15060
|
+
if (!Object.is(nextA.value, nextB.value)) {
|
|
15061
|
+
return false;
|
|
15062
|
+
}
|
|
15063
|
+
nextA = iteratorA.next();
|
|
15064
|
+
nextB = iteratorB.next();
|
|
15065
|
+
}
|
|
15066
|
+
return !!nextA.done && !!nextB.done;
|
|
15067
|
+
};
|
|
15068
|
+
function shallow(valueA, valueB) {
|
|
15069
|
+
if (Object.is(valueA, valueB)) {
|
|
15048
15070
|
return true;
|
|
15049
15071
|
}
|
|
15050
|
-
if (typeof
|
|
15072
|
+
if (typeof valueA !== "object" || valueA === null || typeof valueB !== "object" || valueB === null) {
|
|
15051
15073
|
return false;
|
|
15052
15074
|
}
|
|
15053
|
-
if (isIterable(
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
var nextB = iteratorB.next();
|
|
15058
|
-
if (Array.isArray(nextA.value) && Array.isArray(nextB.value) && nextA.value.length === 2 && nextB.value.length === 2) {
|
|
15059
|
-
return compareMapLike(objA, objB);
|
|
15060
|
-
}
|
|
15061
|
-
while (!nextA.done && !nextB.done) {
|
|
15062
|
-
if (!Object.is(nextA.value, nextB.value)) {
|
|
15063
|
-
return false;
|
|
15075
|
+
if (!isIterable(valueA) || !isIterable(valueB)) {
|
|
15076
|
+
return compareEntries({
|
|
15077
|
+
entries: function entries() {
|
|
15078
|
+
return Object.entries(valueA);
|
|
15064
15079
|
}
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
var keysA = Object.keys(objA);
|
|
15071
|
-
if (keysA.length !== Object.keys(objB).length) {
|
|
15072
|
-
return false;
|
|
15080
|
+
}, {
|
|
15081
|
+
entries: function entries() {
|
|
15082
|
+
return Object.entries(valueB);
|
|
15083
|
+
}
|
|
15084
|
+
});
|
|
15073
15085
|
}
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
if (!Object.hasOwn(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
|
|
15077
|
-
return false;
|
|
15078
|
-
}
|
|
15086
|
+
if (hasIterableEntries(valueA) && hasIterableEntries(valueB)) {
|
|
15087
|
+
return compareEntries(valueA, valueB);
|
|
15079
15088
|
}
|
|
15080
|
-
return
|
|
15089
|
+
return compareIterables(valueA, valueB);
|
|
15081
15090
|
}
|
|
15082
15091
|
|
|
15083
15092
|
function useShallow(selector) {
|
|
@@ -21907,7 +21916,7 @@
|
|
|
21907
21916
|
top: 20,
|
|
21908
21917
|
left: 20,
|
|
21909
21918
|
right: 20,
|
|
21910
|
-
bottom:
|
|
21919
|
+
bottom: 0
|
|
21911
21920
|
});
|
|
21912
21921
|
}, [setDocumentDetectionBoundaries]);
|
|
21913
21922
|
var _24 = React.useState(0),
|