@tap-payments/os-micro-frontend-shared 0.1.426-test.1 → 0.1.426-test.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.
|
@@ -89,6 +89,11 @@ export declare const authenticationsTableCellWidth: {
|
|
|
89
89
|
readonly text: "170px";
|
|
90
90
|
readonly sheet: "130px";
|
|
91
91
|
};
|
|
92
|
+
readonly channel: {
|
|
93
|
+
readonly default: "100px";
|
|
94
|
+
readonly text: "100px";
|
|
95
|
+
readonly sheet: "100px";
|
|
96
|
+
};
|
|
92
97
|
readonly payment_issuers: {
|
|
93
98
|
readonly default: "150px";
|
|
94
99
|
readonly text: "150px";
|
package/build/utils/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getBrowserName(): string;
|
|
1
|
+
export declare function getBrowserName(userAgent?: string): string | undefined;
|
|
2
2
|
export declare const isSafariBrowser: () => boolean;
|
package/build/utils/browser.js
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
export function getBrowserName() {
|
|
1
|
+
export function getBrowserName(userAgent) {
|
|
2
2
|
var _a, _b, _c;
|
|
3
|
-
|
|
3
|
+
if (!userAgent) {
|
|
4
|
+
return ((_c = (_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.match(/(edge|chrome|safari|firefox)/)) === null || _c === void 0 ? void 0 : _c[0]) || 'chrome';
|
|
5
|
+
}
|
|
6
|
+
userAgent = userAgent.toLowerCase();
|
|
7
|
+
if (userAgent.includes('edg'))
|
|
8
|
+
return 'edge';
|
|
9
|
+
if (userAgent.includes('opr') || userAgent.includes('opera'))
|
|
10
|
+
return 'opera';
|
|
11
|
+
if (userAgent.includes('chrome') && !userAgent.includes('edg') && !userAgent.includes('opr'))
|
|
12
|
+
return 'chrome';
|
|
13
|
+
if (userAgent.includes('safari') && !userAgent.includes('chrome'))
|
|
14
|
+
return 'safari';
|
|
15
|
+
if (userAgent.includes('firefox'))
|
|
16
|
+
return 'firefox';
|
|
17
|
+
if (userAgent.includes('msie') || userAgent.includes('trident'))
|
|
18
|
+
return 'ie';
|
|
19
|
+
if (userAgent.includes('tor'))
|
|
20
|
+
return 'tor';
|
|
21
|
+
if (userAgent.includes('uc'))
|
|
22
|
+
return 'uc';
|
|
23
|
+
if (userAgent.includes('yandex'))
|
|
24
|
+
return 'yandex';
|
|
25
|
+
return undefined;
|
|
4
26
|
}
|
|
5
27
|
export const isSafariBrowser = () => {
|
|
6
28
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.426-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.426-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|