idmission-web-sdk 0.0.12 → 0.0.13

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/sdk2.esm.js CHANGED
@@ -192,7 +192,7 @@ var templateObject_1$4;
192
192
  var OverlayContainer = styled(PageContainer)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n background: white;\n z-index: 10000;\n"], ["\n background: white;\n z-index: 10000;\n"])));
193
193
  var OverlayInner = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n padding: 25px;\n max-height: var(--app-height);\n height: 100%;\n box-sizing: border-box;\n"], ["\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n padding: 25px;\n max-height: var(--app-height);\n height: 100%;\n box-sizing: border-box;\n"])));
194
194
  var OverlayImageWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
195
- var OverlayImageMultiContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n max-width: 100%;\n max-height: 100%;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n max-width: 100%;\n max-height: 100%;\n }\n }\n"])));
195
+ var OverlayImageMultiContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n }\n }\n"])));
196
196
  var templateObject_1$3, templateObject_2, templateObject_3, templateObject_4;
197
197
 
198
198
  var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
@@ -2015,13 +2015,19 @@ var IdCaptureSuccess = function IdCaptureSuccess(_a) {
2015
2015
  }
2016
2016
  }, idCardFront && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", null, idCardFrontText), /*#__PURE__*/React__default.createElement("img", {
2017
2017
  src: idCardFront.imageData,
2018
- alt: idCardFrontText
2018
+ alt: idCardFrontText,
2019
+ width: idCardFront.width,
2020
+ height: idCardFront.height
2019
2021
  })), idCardBack && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", null, idCardBackText), /*#__PURE__*/React__default.createElement("img", {
2020
2022
  src: idCardBack.imageData,
2021
- alt: idCardBackText
2023
+ alt: idCardBackText,
2024
+ width: idCardBack.width,
2025
+ height: idCardBack.height
2022
2026
  })), passport && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", null, passportText), /*#__PURE__*/React__default.createElement("img", {
2023
2027
  src: passport.imageData,
2024
- alt: passportText
2028
+ alt: passportText,
2029
+ width: passport.width,
2030
+ height: passport.height
2025
2031
  })))), /*#__PURE__*/React__default.createElement("p", {
2026
2032
  style: {
2027
2033
  fontSize: 18