@tap-payments/os-micro-frontend-shared 0.1.90-test.1 → 0.1.90-test.20
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/build/components/ImageWrapper/ImageWrapper.js +0 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCell.js +1 -3
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/build/constants/table/cell/destinationsTableCellWidth.d.ts +55 -5
- package/build/constants/table/cell/destinationsTableCellWidth.js +55 -5
- package/build/constants/table/cell/refundTableCellWidth.d.ts +11 -1
- package/build/constants/table/cell/refundTableCellWidth.js +11 -1
- package/build/utils/url.d.ts +0 -1
- package/build/utils/url.js +0 -10
- package/package.json +2 -2
|
@@ -13,7 +13,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import Tooltip from '../../../Tooltip';
|
|
14
14
|
import { ImageWrapper } from '../../../index.js';
|
|
15
15
|
import { TableCell } from '../../../TableCells';
|
|
16
|
-
import { openUrl } from '../../../../utils/index.js';
|
|
17
16
|
import { ChannelTextLabel, ChannelTextWrapper, salesChannelAnimation, SalesChannelsContainer, StyledSourceCell, StyledSourceImage } from './style';
|
|
18
17
|
function SalesChannelCell(_a) {
|
|
19
18
|
var _b;
|
|
@@ -26,8 +25,7 @@ function SalesChannelCell(_a) {
|
|
|
26
25
|
width: isTextShown ? '70px' : '36px',
|
|
27
26
|
cursor: 'pointer',
|
|
28
27
|
}, onClick: () => {
|
|
29
|
-
|
|
30
|
-
openUrl(channel.address);
|
|
28
|
+
window.open(channel.address, '_blank');
|
|
31
29
|
} }, { children: isTextShown ? (_jsx(ChannelTextWrapper, { children: _jsx(ChannelTextLabel, { children: channelCode }) })) : (_jsx(StyledSourceImage, { src: channel.logo, alt: channelCode })) })) }), `${channel}-${index}`));
|
|
32
30
|
});
|
|
33
31
|
const salesChannelsCount = (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.length) || 0;
|
|
@@ -540,3 +540,5 @@ export declare const blackMobileSignalIcon: string;
|
|
|
540
540
|
export declare const emptyMobileWifiIcon: string;
|
|
541
541
|
export declare const deemaWithLabel: string;
|
|
542
542
|
export declare const blackUnLinkIcon: string;
|
|
543
|
+
export declare const sortDescArrowIcon: string;
|
|
544
|
+
export declare const sortAscArrowIcon: string;
|
|
@@ -544,3 +544,5 @@ export const blackMobileSignalIcon = `${lightUrl}/blackMobileSignalIcon.svg`;
|
|
|
544
544
|
export const emptyMobileWifiIcon = `${lightUrl}/emptyMobileWifiIcon.svg`;
|
|
545
545
|
export const deemaWithLabel = `${lightUrl}/deemaWithLabel.svg`;
|
|
546
546
|
export const blackUnLinkIcon = `${lightUrl}/blackUnLinkIcon.svg`;
|
|
547
|
+
export const sortDescArrowIcon = `${lightUrl}/sortDescArrowIcon.svg`;
|
|
548
|
+
export const sortAscArrowIcon = `${lightUrl}/sortAscArrowIcon.svg`;
|
|
@@ -17,7 +17,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
17
17
|
readonly receipt: {
|
|
18
18
|
readonly default: "85px";
|
|
19
19
|
readonly text: "150px";
|
|
20
|
-
readonly sheet: "
|
|
20
|
+
readonly sheet: "165px";
|
|
21
21
|
};
|
|
22
22
|
readonly reference: {
|
|
23
23
|
readonly default: "95px";
|
|
@@ -47,7 +47,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
47
47
|
readonly device: {
|
|
48
48
|
readonly default: "150px";
|
|
49
49
|
readonly text: "250px";
|
|
50
|
-
readonly sheet: "
|
|
50
|
+
readonly sheet: "235px";
|
|
51
51
|
};
|
|
52
52
|
readonly source: {
|
|
53
53
|
readonly default: "114px";
|
|
@@ -62,7 +62,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
62
62
|
readonly payment_agreement: {
|
|
63
63
|
readonly default: "50px";
|
|
64
64
|
readonly text: "250px";
|
|
65
|
-
readonly sheet: "
|
|
65
|
+
readonly sheet: "165px";
|
|
66
66
|
};
|
|
67
67
|
readonly amount: {
|
|
68
68
|
readonly default: "195px";
|
|
@@ -81,8 +81,8 @@ export declare const destinationsTableCellWidth: {
|
|
|
81
81
|
};
|
|
82
82
|
readonly merchant: {
|
|
83
83
|
readonly default: "100px";
|
|
84
|
-
readonly text: "
|
|
85
|
-
readonly sheet: "
|
|
84
|
+
readonly text: "150px";
|
|
85
|
+
readonly sheet: "215px";
|
|
86
86
|
};
|
|
87
87
|
readonly actions: {
|
|
88
88
|
readonly default: "100px";
|
|
@@ -109,4 +109,54 @@ export declare const destinationsTableCellWidth: {
|
|
|
109
109
|
readonly text: "116px";
|
|
110
110
|
readonly sheet: "116px";
|
|
111
111
|
};
|
|
112
|
+
readonly payment_initiated: {
|
|
113
|
+
readonly default: "150px";
|
|
114
|
+
readonly text: "150px";
|
|
115
|
+
readonly sheet: "150px";
|
|
116
|
+
};
|
|
117
|
+
readonly payment_issuers: {
|
|
118
|
+
readonly default: "150px";
|
|
119
|
+
readonly text: "150px";
|
|
120
|
+
readonly sheet: "350px";
|
|
121
|
+
};
|
|
122
|
+
readonly card_number: {
|
|
123
|
+
readonly default: "120px";
|
|
124
|
+
readonly text: "120px";
|
|
125
|
+
readonly sheet: "155px";
|
|
126
|
+
};
|
|
127
|
+
readonly card_no: {
|
|
128
|
+
readonly default: "120px";
|
|
129
|
+
readonly text: "120px";
|
|
130
|
+
readonly sheet: "200px";
|
|
131
|
+
};
|
|
132
|
+
readonly payment_type: {
|
|
133
|
+
readonly default: "150px";
|
|
134
|
+
readonly text: "150px";
|
|
135
|
+
readonly sheet: "120px";
|
|
136
|
+
};
|
|
137
|
+
readonly payment_method: {
|
|
138
|
+
readonly default: "150px";
|
|
139
|
+
readonly text: "150px";
|
|
140
|
+
readonly sheet: "145px";
|
|
141
|
+
};
|
|
142
|
+
readonly payment_scheme: {
|
|
143
|
+
readonly default: "150px";
|
|
144
|
+
readonly text: "150px";
|
|
145
|
+
readonly sheet: "145px";
|
|
146
|
+
};
|
|
147
|
+
readonly auth_status: {
|
|
148
|
+
readonly default: "150px";
|
|
149
|
+
readonly text: "150px";
|
|
150
|
+
readonly sheet: "165px";
|
|
151
|
+
};
|
|
152
|
+
readonly auth_type: {
|
|
153
|
+
readonly default: "150px";
|
|
154
|
+
readonly text: "150px";
|
|
155
|
+
readonly sheet: "155px";
|
|
156
|
+
};
|
|
157
|
+
readonly eci: {
|
|
158
|
+
readonly default: "150px";
|
|
159
|
+
readonly text: "150px";
|
|
160
|
+
readonly sheet: "100px";
|
|
161
|
+
};
|
|
112
162
|
};
|
|
@@ -17,7 +17,7 @@ export const destinationsTableCellWidth = {
|
|
|
17
17
|
receipt: {
|
|
18
18
|
default: '85px',
|
|
19
19
|
text: '150px',
|
|
20
|
-
sheet: '
|
|
20
|
+
sheet: '165px',
|
|
21
21
|
},
|
|
22
22
|
reference: {
|
|
23
23
|
default: '95px',
|
|
@@ -47,7 +47,7 @@ export const destinationsTableCellWidth = {
|
|
|
47
47
|
device: {
|
|
48
48
|
default: '150px',
|
|
49
49
|
text: '250px',
|
|
50
|
-
sheet: '
|
|
50
|
+
sheet: '235px',
|
|
51
51
|
},
|
|
52
52
|
source: {
|
|
53
53
|
default: '114px',
|
|
@@ -62,7 +62,7 @@ export const destinationsTableCellWidth = {
|
|
|
62
62
|
payment_agreement: {
|
|
63
63
|
default: '50px',
|
|
64
64
|
text: '250px',
|
|
65
|
-
sheet: '
|
|
65
|
+
sheet: '165px',
|
|
66
66
|
},
|
|
67
67
|
amount: {
|
|
68
68
|
default: '195px',
|
|
@@ -81,8 +81,8 @@ export const destinationsTableCellWidth = {
|
|
|
81
81
|
},
|
|
82
82
|
merchant: {
|
|
83
83
|
default: '100px',
|
|
84
|
-
text: '
|
|
85
|
-
sheet: '
|
|
84
|
+
text: '150px',
|
|
85
|
+
sheet: '215px',
|
|
86
86
|
},
|
|
87
87
|
actions: {
|
|
88
88
|
default: '100px',
|
|
@@ -109,4 +109,54 @@ export const destinationsTableCellWidth = {
|
|
|
109
109
|
text: '116px',
|
|
110
110
|
sheet: '116px',
|
|
111
111
|
},
|
|
112
|
+
payment_initiated: {
|
|
113
|
+
default: '150px',
|
|
114
|
+
text: '150px',
|
|
115
|
+
sheet: '150px',
|
|
116
|
+
},
|
|
117
|
+
payment_issuers: {
|
|
118
|
+
default: '150px',
|
|
119
|
+
text: '150px',
|
|
120
|
+
sheet: '350px',
|
|
121
|
+
},
|
|
122
|
+
card_number: {
|
|
123
|
+
default: '120px',
|
|
124
|
+
text: '120px',
|
|
125
|
+
sheet: '155px',
|
|
126
|
+
},
|
|
127
|
+
card_no: {
|
|
128
|
+
default: '120px',
|
|
129
|
+
text: '120px',
|
|
130
|
+
sheet: '200px',
|
|
131
|
+
},
|
|
132
|
+
payment_type: {
|
|
133
|
+
default: '150px',
|
|
134
|
+
text: '150px',
|
|
135
|
+
sheet: '120px',
|
|
136
|
+
},
|
|
137
|
+
payment_method: {
|
|
138
|
+
default: '150px',
|
|
139
|
+
text: '150px',
|
|
140
|
+
sheet: '145px',
|
|
141
|
+
},
|
|
142
|
+
payment_scheme: {
|
|
143
|
+
default: '150px',
|
|
144
|
+
text: '150px',
|
|
145
|
+
sheet: '145px',
|
|
146
|
+
},
|
|
147
|
+
auth_status: {
|
|
148
|
+
default: '150px',
|
|
149
|
+
text: '150px',
|
|
150
|
+
sheet: '165px',
|
|
151
|
+
},
|
|
152
|
+
auth_type: {
|
|
153
|
+
default: '150px',
|
|
154
|
+
text: '150px',
|
|
155
|
+
sheet: '155px',
|
|
156
|
+
},
|
|
157
|
+
eci: {
|
|
158
|
+
default: '150px',
|
|
159
|
+
text: '150px',
|
|
160
|
+
sheet: '100px',
|
|
161
|
+
},
|
|
112
162
|
};
|
|
@@ -94,6 +94,16 @@ export declare const refundTableCellWidth: {
|
|
|
94
94
|
readonly text: "195px";
|
|
95
95
|
readonly sheet: "180px";
|
|
96
96
|
};
|
|
97
|
+
readonly payouts: {
|
|
98
|
+
readonly default: "195px";
|
|
99
|
+
readonly text: "195px";
|
|
100
|
+
readonly sheet: "300px";
|
|
101
|
+
};
|
|
102
|
+
readonly reason: {
|
|
103
|
+
readonly default: "170px";
|
|
104
|
+
readonly text: "240px";
|
|
105
|
+
readonly sheet: "160px";
|
|
106
|
+
};
|
|
97
107
|
readonly destinations: {
|
|
98
108
|
readonly default: "70px";
|
|
99
109
|
readonly text: "240px";
|
|
@@ -182,7 +192,7 @@ export declare const refundTableCellWidth: {
|
|
|
182
192
|
readonly charge_meta: {
|
|
183
193
|
readonly default: "100px";
|
|
184
194
|
readonly text: "100px";
|
|
185
|
-
readonly sheet: "
|
|
195
|
+
readonly sheet: "250px";
|
|
186
196
|
};
|
|
187
197
|
readonly brand: {
|
|
188
198
|
readonly default: "116px";
|
|
@@ -94,6 +94,16 @@ export const refundTableCellWidth = {
|
|
|
94
94
|
text: '195px',
|
|
95
95
|
sheet: '180px',
|
|
96
96
|
},
|
|
97
|
+
payouts: {
|
|
98
|
+
default: '195px',
|
|
99
|
+
text: '195px',
|
|
100
|
+
sheet: '300px',
|
|
101
|
+
},
|
|
102
|
+
reason: {
|
|
103
|
+
default: '170px',
|
|
104
|
+
text: '240px',
|
|
105
|
+
sheet: '160px',
|
|
106
|
+
},
|
|
97
107
|
destinations: {
|
|
98
108
|
default: '70px',
|
|
99
109
|
text: '240px',
|
|
@@ -182,7 +192,7 @@ export const refundTableCellWidth = {
|
|
|
182
192
|
charge_meta: {
|
|
183
193
|
default: '100px',
|
|
184
194
|
text: '100px',
|
|
185
|
-
sheet: '
|
|
195
|
+
sheet: '250px',
|
|
186
196
|
},
|
|
187
197
|
brand: {
|
|
188
198
|
default: '116px',
|
package/build/utils/url.d.ts
CHANGED
package/build/utils/url.js
CHANGED
|
@@ -6,13 +6,3 @@ export const openNewTab = (url, target = '_blank') => {
|
|
|
6
6
|
link.click();
|
|
7
7
|
link.remove();
|
|
8
8
|
};
|
|
9
|
-
export const openUrl = (url) => {
|
|
10
|
-
const isUrl = /^https?:\/\//i.test(url);
|
|
11
|
-
if (isUrl) {
|
|
12
|
-
window.open(url, '_blank', 'noopener,noreferrer');
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
const newUrl = 'about:blank?' + encodeURIComponent(url);
|
|
16
|
-
window.open(newUrl, '_blank', 'noopener,noreferrer');
|
|
17
|
-
}
|
|
18
|
-
};
|
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.90-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.90-test.20",
|
|
5
|
+
"testVersion": 20,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|