@authme/util 2.8.4 → 2.8.6
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/index.cjs +23 -2
- package/index.js +24 -3
- package/package.json +1 -1
- package/src/lib/enum/deviceType.enum.d.ts +5 -0
- package/src/lib/enum/index.d.ts +1 -0
package/index.cjs
CHANGED
|
@@ -901,6 +901,13 @@ exports.TIME_UNIT = void 0;
|
|
|
901
901
|
TIME_UNIT[TIME_UNIT["HOUR"] = 3600000] = "HOUR";
|
|
902
902
|
})(exports.TIME_UNIT || (exports.TIME_UNIT = {}));
|
|
903
903
|
|
|
904
|
+
exports.DEVICE_TYPE = void 0;
|
|
905
|
+
(function (DEVICE_TYPE) {
|
|
906
|
+
DEVICE_TYPE["web"] = "web";
|
|
907
|
+
DEVICE_TYPE["mobile"] = "mobile";
|
|
908
|
+
DEVICE_TYPE["pad"] = "pad";
|
|
909
|
+
})(exports.DEVICE_TYPE || (exports.DEVICE_TYPE = {}));
|
|
910
|
+
|
|
904
911
|
function getImageData(canvas, ctx, video, sizeInfo, base64 = false, imageType = 'jpg') {
|
|
905
912
|
canvas.width = sizeInfo.canvasWidth;
|
|
906
913
|
canvas.height = sizeInfo.canvasHeight;
|
|
@@ -3050,12 +3057,26 @@ const themeConfigDefault = {
|
|
|
3050
3057
|
textColor: '#FF3B30',
|
|
3051
3058
|
textWeight: 'medium',
|
|
3052
3059
|
fontSize: 16
|
|
3060
|
+
},
|
|
3061
|
+
fraudInfoButton: {
|
|
3062
|
+
cornerRadius: 24,
|
|
3063
|
+
backgroundColor: '#00c1b6',
|
|
3064
|
+
backgroundOpacity: 1,
|
|
3065
|
+
borderColor: '#000000',
|
|
3066
|
+
borderOpacity: 1,
|
|
3067
|
+
borderWidth: 0,
|
|
3068
|
+
textColor: '#ffffff',
|
|
3069
|
+
textWeight: 'medium',
|
|
3070
|
+
fontSize: 16,
|
|
3071
|
+
disabledBackgroundColor: '#E0E0E0',
|
|
3072
|
+
disabledBorderColor: '#E0E0E0',
|
|
3073
|
+
disabledTextColor: '#FFFFFF'
|
|
3053
3074
|
}
|
|
3054
3075
|
};
|
|
3055
3076
|
|
|
3056
3077
|
var name = "authme/sdk";
|
|
3057
|
-
var version$1 = "2.8.
|
|
3058
|
-
var date = "2025-03-
|
|
3078
|
+
var version$1 = "2.8.6";
|
|
3079
|
+
var date = "2025-03-17T08:17:58+0000";
|
|
3059
3080
|
var packageInfo = {
|
|
3060
3081
|
name: name,
|
|
3061
3082
|
version: version$1,
|
package/index.js
CHANGED
|
@@ -891,6 +891,13 @@ var TIME_UNIT;
|
|
|
891
891
|
TIME_UNIT[TIME_UNIT["HOUR"] = 3600000] = "HOUR";
|
|
892
892
|
})(TIME_UNIT || (TIME_UNIT = {}));
|
|
893
893
|
|
|
894
|
+
var DEVICE_TYPE;
|
|
895
|
+
(function (DEVICE_TYPE) {
|
|
896
|
+
DEVICE_TYPE["web"] = "web";
|
|
897
|
+
DEVICE_TYPE["mobile"] = "mobile";
|
|
898
|
+
DEVICE_TYPE["pad"] = "pad";
|
|
899
|
+
})(DEVICE_TYPE || (DEVICE_TYPE = {}));
|
|
900
|
+
|
|
894
901
|
function getImageData(canvas, ctx, video, sizeInfo, base64 = false, imageType = 'jpg') {
|
|
895
902
|
canvas.width = sizeInfo.canvasWidth;
|
|
896
903
|
canvas.height = sizeInfo.canvasHeight;
|
|
@@ -3040,12 +3047,26 @@ const themeConfigDefault = {
|
|
|
3040
3047
|
textColor: '#FF3B30',
|
|
3041
3048
|
textWeight: 'medium',
|
|
3042
3049
|
fontSize: 16
|
|
3050
|
+
},
|
|
3051
|
+
fraudInfoButton: {
|
|
3052
|
+
cornerRadius: 24,
|
|
3053
|
+
backgroundColor: '#00c1b6',
|
|
3054
|
+
backgroundOpacity: 1,
|
|
3055
|
+
borderColor: '#000000',
|
|
3056
|
+
borderOpacity: 1,
|
|
3057
|
+
borderWidth: 0,
|
|
3058
|
+
textColor: '#ffffff',
|
|
3059
|
+
textWeight: 'medium',
|
|
3060
|
+
fontSize: 16,
|
|
3061
|
+
disabledBackgroundColor: '#E0E0E0',
|
|
3062
|
+
disabledBorderColor: '#E0E0E0',
|
|
3063
|
+
disabledTextColor: '#FFFFFF'
|
|
3043
3064
|
}
|
|
3044
3065
|
};
|
|
3045
3066
|
|
|
3046
3067
|
var name = "authme/sdk";
|
|
3047
|
-
var version$1 = "2.8.
|
|
3048
|
-
var date = "2025-03-
|
|
3068
|
+
var version$1 = "2.8.6";
|
|
3069
|
+
var date = "2025-03-17T08:17:58+0000";
|
|
3049
3070
|
var packageInfo = {
|
|
3050
3071
|
name: name,
|
|
3051
3072
|
version: version$1,
|
|
@@ -3058,4 +3079,4 @@ const version = packageInfo.version;
|
|
|
3058
3079
|
(_a = (_b = window)[_c = Symbol.for('authme-sdk')]) !== null && _a !== void 0 ? _a : _b[_c] = {};
|
|
3059
3080
|
window[Symbol.for('authme-sdk')][packageInfo.name] = version;
|
|
3060
3081
|
|
|
3061
|
-
export { AuthmeError, ErrorCode, Icon, RGBToLottieColor, RUN_FUNCTION_NAME, STORAGE_KEY, Storage, TIME_UNIT, UintArrayToBlob, asyncOnLineShowErrorMessage, asyncShowErrorMessage, asyncShowPopup, backgroundRequest, checkOnlineStatus, clearCanvas, colorStringToRGB, colorToRGB, combineResult, cropByRatio, dataURItoBlob, debugLog, debugTools, decodeToken, dropMenu, fontWeight, getCanvasSize, getCssVariable, getDeviceInfo, getImageData, getSystemInfo, hexToRGB, hideElement, hideErrorMessage, hidePopup, isIphone14proOrProMax, isMobile, isMobileOrTablet, osVersion, requestCamera, resize, retryPromiseWithCondition, showElement, showErrorMessage, showErrorMessageEventName, showPopup, splitResult, startLoadingSDK, startSpinner, stopLoadingSDK, stopSpinner, switchCamera, themeConfigDefault, uiThemeButton, uiThemeHint, uiThemeSmallButton, uiThemeText, uploadModal, useState, verificationErrorMessages, version, videoConstraintsFactory, waitTime };
|
|
3082
|
+
export { AuthmeError, DEVICE_TYPE, ErrorCode, Icon, RGBToLottieColor, RUN_FUNCTION_NAME, STORAGE_KEY, Storage, TIME_UNIT, UintArrayToBlob, asyncOnLineShowErrorMessage, asyncShowErrorMessage, asyncShowPopup, backgroundRequest, checkOnlineStatus, clearCanvas, colorStringToRGB, colorToRGB, combineResult, cropByRatio, dataURItoBlob, debugLog, debugTools, decodeToken, dropMenu, fontWeight, getCanvasSize, getCssVariable, getDeviceInfo, getImageData, getSystemInfo, hexToRGB, hideElement, hideErrorMessage, hidePopup, isIphone14proOrProMax, isMobile, isMobileOrTablet, osVersion, requestCamera, resize, retryPromiseWithCondition, showElement, showErrorMessage, showErrorMessageEventName, showPopup, splitResult, startLoadingSDK, startSpinner, stopLoadingSDK, stopSpinner, switchCamera, themeConfigDefault, uiThemeButton, uiThemeHint, uiThemeSmallButton, uiThemeText, uploadModal, useState, verificationErrorMessages, version, videoConstraintsFactory, waitTime };
|
package/package.json
CHANGED
package/src/lib/enum/index.d.ts
CHANGED