idmission-web-sdk 2.2.121 → 2.2.122
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/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/index.d.ts +10 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +8 -91
- 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 +9 -81
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +12 -94
- 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 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelfieCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAmC,MAAM,OAAO,CAAA;AAW5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"SelfieCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAmC,MAAM,OAAO,CAAA;AAW5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAA;AAqBhF,eAAO,MAAM,kCAAkC,oIAS5C,gCAAgC,KAAG,YAsKrC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,20 @@
|
|
|
1
|
-
import { IdValidation
|
|
2
|
-
import { FaceValidation
|
|
3
|
-
import { IdAndFaceValidation
|
|
4
|
-
import {
|
|
5
|
-
import { CustomerVerification
|
|
6
|
-
import { CustomerIdentification
|
|
7
|
-
import { SignatureKYC
|
|
8
|
-
import { VideoIdValidation
|
|
1
|
+
import { IdValidation } from './components/customer_flows/IdValidation';
|
|
2
|
+
import { FaceValidation } from './components/customer_flows/FaceValidation';
|
|
3
|
+
import { IdAndFaceValidation } from './components/customer_flows/IdAndFaceValidation';
|
|
4
|
+
import { CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
|
|
5
|
+
import { CustomerVerification } from './components/customer_flows/CustomerVerification';
|
|
6
|
+
import { CustomerIdentification } from './components/customer_flows/CustomerIdentification';
|
|
7
|
+
import { SignatureKYC } from './components/customer_flows/SignatureKYC';
|
|
8
|
+
import { VideoIdValidation } from './components/customer_flows/VideoIdValidation';
|
|
9
9
|
import { preloadModels } from './lib/models/preloadModels';
|
|
10
|
-
import { CustomerBiometricsEnrollment
|
|
10
|
+
import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
|
|
11
11
|
import { Theme, themes } from './themes';
|
|
12
|
-
import { DocumentCapture
|
|
12
|
+
import { DocumentCapture } from './components/customer_flows/DocumentCapture';
|
|
13
13
|
import { CapturedDocumentImg } from './components/common/CapturedDocumentImg';
|
|
14
14
|
import { defaultSubmissionUrl, setServerUrl } from './components/submission/SubmissionProvider';
|
|
15
15
|
import { allowedAuthUrls, defaultAuthUrl } from './contexts/AuthStateContext';
|
|
16
16
|
import { SubmissionRequest, SubmissionResponse } from './components/submission/types';
|
|
17
|
-
type TargetElement = Element | DocumentFragment | string | undefined;
|
|
18
|
-
export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => Element | DocumentFragment;
|
|
19
|
-
export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => Element | DocumentFragment;
|
|
20
|
-
export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => Element | DocumentFragment;
|
|
21
|
-
export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
|
|
22
|
-
export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerBiometricsEnrollmentProps, options?: CustomerBiometricsEnrollmentProps) => Element | DocumentFragment;
|
|
23
|
-
export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => Element | DocumentFragment;
|
|
24
|
-
export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => Element | DocumentFragment;
|
|
25
|
-
export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => Element | DocumentFragment;
|
|
26
|
-
export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => Element | DocumentFragment;
|
|
27
|
-
export declare const renderDocumentCapture: (optionsOrTargetElement: TargetElement | DocumentCaptureProps, options?: DocumentCaptureProps) => Element | DocumentFragment;
|
|
28
17
|
export type IDmissionSDK = {
|
|
29
|
-
renderIdValidation: typeof renderIdValidation;
|
|
30
|
-
renderFaceValidation: typeof renderFaceValidation;
|
|
31
|
-
renderIdAndFaceValidation: typeof renderIdAndFaceValidation;
|
|
32
|
-
renderCustomerIdAndBiometricsEnrollment: typeof renderCustomerIdAndBiometricsEnrollment;
|
|
33
|
-
renderCustomerBiometricsEnrollment: typeof renderCustomerBiometricsEnrollment;
|
|
34
|
-
renderCustomerVerification: typeof renderCustomerVerification;
|
|
35
|
-
renderCustomerIdentification: typeof renderCustomerIdentification;
|
|
36
|
-
renderSignatureKYC: typeof renderSignatureKYC;
|
|
37
|
-
renderVideoIdValidation: typeof renderVideoIdValidation;
|
|
38
|
-
renderDocumentCapture: typeof renderDocumentCapture;
|
|
39
18
|
preloadModels: typeof preloadModels;
|
|
40
19
|
themes: typeof themes;
|
|
41
20
|
version: string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAA;AACrF,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAA;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAA;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAA;AAEvG,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EACL,oBAAoB,EACpB,YAAY,EACb,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC7E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,+BAA+B,CAAA;AAItC,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,EAAE,OAAO,aAAa,CAAA;IACnC,MAAM,EAAE,OAAO,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,OAAO,YAAY,CAAA;CAClC,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,YAAY,EAAE,YAAY,CAAA;CAC/B;AAcD,OAAO,EACL,aAAa,EACb,MAAM,EACN,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,CAAA;AACD,YAAY,EAAE,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var ReactDOM = require('react-dom/client');
|
|
5
4
|
var platform = require('platform');
|
|
6
5
|
var styled = require('styled-components');
|
|
7
6
|
var reactI18next = require('react-i18next');
|
|
@@ -38,7 +37,6 @@ function _interopNamespaceCompat(e) {
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
41
|
-
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceCompat(ReactDOM);
|
|
42
40
|
var platform__default = /*#__PURE__*/_interopDefaultCompat(platform);
|
|
43
41
|
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
44
42
|
var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
|
|
@@ -233,7 +231,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
233
231
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
234
232
|
};
|
|
235
233
|
|
|
236
|
-
var webSdkVersion = '2.2.
|
|
234
|
+
var webSdkVersion = '2.2.122';
|
|
237
235
|
|
|
238
236
|
function getPlatform() {
|
|
239
237
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -12062,6 +12060,13 @@ var StyledButtonsRow$6 = styled__default.default(ButtonsRow)(templateObject_2$c
|
|
|
12062
12060
|
var templateObject_1$e, templateObject_2$c;
|
|
12063
12061
|
|
|
12064
12062
|
var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
|
|
12063
|
+
var OverlayInner = styled__default.default.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
12064
|
+
var _a, _b, _c, _d;
|
|
12065
|
+
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
|
|
12066
|
+
}, function (props) {
|
|
12067
|
+
var _a, _b, _c, _d;
|
|
12068
|
+
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
|
|
12069
|
+
});
|
|
12065
12070
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
12066
12071
|
var onDismissed = _a.onDismissed,
|
|
12067
12072
|
onUserCancel = _a.onUserCancel,
|
|
@@ -12190,13 +12195,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12190
12195
|
}
|
|
12191
12196
|
}, verbiage.continueText))))));
|
|
12192
12197
|
};
|
|
12193
|
-
var OverlayInner = styled__default.default.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
12194
|
-
var _a, _b, _c, _d;
|
|
12195
|
-
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
|
|
12196
|
-
}, function (props) {
|
|
12197
|
-
var _a, _b, _c, _d;
|
|
12198
|
-
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
|
|
12199
|
-
});
|
|
12200
12198
|
var OverlayHeader = styled__default.default.div(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"])), function (props) {
|
|
12201
12199
|
var _a;
|
|
12202
12200
|
return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
|
|
@@ -17685,78 +17683,7 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
17685
17683
|
};
|
|
17686
17684
|
|
|
17687
17685
|
initializeI18n();
|
|
17688
|
-
function renderElement(component, targetElement) {
|
|
17689
|
-
if (typeof targetElement === 'string') {
|
|
17690
|
-
var result = document.querySelector(targetElement);
|
|
17691
|
-
if (!result) throw new Error("targetElement ".concat(targetElement, " not found"));
|
|
17692
|
-
targetElement = result;
|
|
17693
|
-
} else if (!targetElement) {
|
|
17694
|
-
targetElement = document.createElement('div');
|
|
17695
|
-
document.body.append(targetElement);
|
|
17696
|
-
}
|
|
17697
|
-
var root = ReactDOM__namespace.createRoot(targetElement);
|
|
17698
|
-
root.render( /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, null, component));
|
|
17699
|
-
if ('remove' in targetElement) {
|
|
17700
|
-
var originalRemove_1 = targetElement.remove;
|
|
17701
|
-
targetElement.remove = function () {
|
|
17702
|
-
try {
|
|
17703
|
-
root.unmount();
|
|
17704
|
-
originalRemove_1();
|
|
17705
|
-
} catch (e) {
|
|
17706
|
-
debug('failed to unmount', e);
|
|
17707
|
-
}
|
|
17708
|
-
};
|
|
17709
|
-
}
|
|
17710
|
-
return targetElement;
|
|
17711
|
-
}
|
|
17712
|
-
function renderComponent(Component, targetElement, options) {
|
|
17713
|
-
if (!options) {
|
|
17714
|
-
options = targetElement;
|
|
17715
|
-
targetElement = undefined;
|
|
17716
|
-
}
|
|
17717
|
-
return renderElement( /*#__PURE__*/React__namespace.default.createElement(Component, _assign({}, options)), targetElement);
|
|
17718
|
-
}
|
|
17719
|
-
var renderIdValidation = function renderIdValidation(optionsOrTargetElement, options) {
|
|
17720
|
-
return renderComponent(IdValidation, optionsOrTargetElement, options);
|
|
17721
|
-
};
|
|
17722
|
-
var renderFaceValidation = function renderFaceValidation(optionsOrTargetElement, options) {
|
|
17723
|
-
return renderComponent(FaceValidation, optionsOrTargetElement, options);
|
|
17724
|
-
};
|
|
17725
|
-
var renderIdAndFaceValidation = function renderIdAndFaceValidation(optionsOrTargetElement, options) {
|
|
17726
|
-
return renderComponent(IdAndFaceValidation, optionsOrTargetElement, options);
|
|
17727
|
-
};
|
|
17728
|
-
var renderCustomerIdAndBiometricsEnrollment = function renderCustomerIdAndBiometricsEnrollment(optionsOrTargetElement, options) {
|
|
17729
|
-
return renderComponent(CustomerIdAndBiometricsEnrollment, optionsOrTargetElement, options);
|
|
17730
|
-
};
|
|
17731
|
-
var renderCustomerBiometricsEnrollment = function renderCustomerBiometricsEnrollment(optionsOrTargetElement, options) {
|
|
17732
|
-
return renderComponent(CustomerBiometricsEnrollment, optionsOrTargetElement, options);
|
|
17733
|
-
};
|
|
17734
|
-
var renderCustomerVerification = function renderCustomerVerification(optionsOrTargetElement, options) {
|
|
17735
|
-
return renderComponent(CustomerVerification, optionsOrTargetElement, options);
|
|
17736
|
-
};
|
|
17737
|
-
var renderCustomerIdentification = function renderCustomerIdentification(optionsOrTargetElement, options) {
|
|
17738
|
-
return renderComponent(CustomerIdentification, optionsOrTargetElement, options);
|
|
17739
|
-
};
|
|
17740
|
-
var renderSignatureKYC = function renderSignatureKYC(optionsOrTargetElement, options) {
|
|
17741
|
-
return renderComponent(SignatureKYC, optionsOrTargetElement, options);
|
|
17742
|
-
};
|
|
17743
|
-
var renderVideoIdValidation = function renderVideoIdValidation(optionsOrTargetElement, options) {
|
|
17744
|
-
return renderComponent(VideoIdValidation, optionsOrTargetElement, options);
|
|
17745
|
-
};
|
|
17746
|
-
var renderDocumentCapture = function renderDocumentCapture(optionsOrTargetElement, options) {
|
|
17747
|
-
return renderComponent(DocumentCapture, optionsOrTargetElement, options);
|
|
17748
|
-
};
|
|
17749
17686
|
globalThis.IDmissionSDK = {
|
|
17750
|
-
renderIdValidation: renderIdValidation,
|
|
17751
|
-
renderFaceValidation: renderFaceValidation,
|
|
17752
|
-
renderIdAndFaceValidation: renderIdAndFaceValidation,
|
|
17753
|
-
renderCustomerIdAndBiometricsEnrollment: renderCustomerIdAndBiometricsEnrollment,
|
|
17754
|
-
renderCustomerBiometricsEnrollment: renderCustomerBiometricsEnrollment,
|
|
17755
|
-
renderCustomerVerification: renderCustomerVerification,
|
|
17756
|
-
renderCustomerIdentification: renderCustomerIdentification,
|
|
17757
|
-
renderSignatureKYC: renderSignatureKYC,
|
|
17758
|
-
renderVideoIdValidation: renderVideoIdValidation,
|
|
17759
|
-
renderDocumentCapture: renderDocumentCapture,
|
|
17760
17687
|
preloadModels: preloadModels,
|
|
17761
17688
|
themes: themes,
|
|
17762
17689
|
version: webSdkVersion,
|
|
@@ -17782,16 +17709,6 @@ exports.VideoIdValidation = VideoIdValidation;
|
|
|
17782
17709
|
exports.allowedAuthUrls = allowedAuthUrls;
|
|
17783
17710
|
exports.isObject = isObject;
|
|
17784
17711
|
exports.preloadModels = preloadModels;
|
|
17785
|
-
exports.renderCustomerBiometricsEnrollment = renderCustomerBiometricsEnrollment;
|
|
17786
|
-
exports.renderCustomerIdAndBiometricsEnrollment = renderCustomerIdAndBiometricsEnrollment;
|
|
17787
|
-
exports.renderCustomerIdentification = renderCustomerIdentification;
|
|
17788
|
-
exports.renderCustomerVerification = renderCustomerVerification;
|
|
17789
|
-
exports.renderDocumentCapture = renderDocumentCapture;
|
|
17790
|
-
exports.renderFaceValidation = renderFaceValidation;
|
|
17791
|
-
exports.renderIdAndFaceValidation = renderIdAndFaceValidation;
|
|
17792
|
-
exports.renderIdValidation = renderIdValidation;
|
|
17793
|
-
exports.renderSignatureKYC = renderSignatureKYC;
|
|
17794
|
-
exports.renderVideoIdValidation = renderVideoIdValidation;
|
|
17795
17712
|
exports.setServerUrl = setServerUrl;
|
|
17796
17713
|
exports.themes = themes;
|
|
17797
17714
|
//# sourceMappingURL=sdk2.cjs.development.js.map
|