@tap-payments/os-micro-frontend-shared 0.1.90-test.20 → 0.1.90-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.
- package/build/components/ImageWrapper/ImageWrapper.js +3 -0
- package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCell.js +3 -1
- package/build/constants/assets.d.ts +0 -2
- package/build/constants/assets.js +0 -2
- package/build/constants/table/cell/destinationsTableCellWidth.d.ts +5 -55
- package/build/constants/table/cell/destinationsTableCellWidth.js +5 -55
- package/build/constants/table/cell/refundTableCellWidth.d.ts +1 -11
- package/build/constants/table/cell/refundTableCellWidth.js +1 -11
- package/build/utils/url.d.ts +1 -0
- package/build/utils/url.js +10 -0
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ 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';
|
|
16
17
|
import { ChannelTextLabel, ChannelTextWrapper, salesChannelAnimation, SalesChannelsContainer, StyledSourceCell, StyledSourceImage } from './style';
|
|
17
18
|
function SalesChannelCell(_a) {
|
|
18
19
|
var _b;
|
|
@@ -25,7 +26,8 @@ function SalesChannelCell(_a) {
|
|
|
25
26
|
width: isTextShown ? '70px' : '36px',
|
|
26
27
|
cursor: 'pointer',
|
|
27
28
|
}, onClick: () => {
|
|
28
|
-
|
|
29
|
+
if (channel === null || channel === void 0 ? void 0 : channel.address)
|
|
30
|
+
openUrl(channel.address);
|
|
29
31
|
} }, { children: isTextShown ? (_jsx(ChannelTextWrapper, { children: _jsx(ChannelTextLabel, { children: channelCode }) })) : (_jsx(StyledSourceImage, { src: channel.logo, alt: channelCode })) })) }), `${channel}-${index}`));
|
|
30
32
|
});
|
|
31
33
|
const salesChannelsCount = (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.length) || 0;
|
|
@@ -540,5 +540,3 @@ 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,5 +544,3 @@ 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: "150px";
|
|
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: "250px";
|
|
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: "250px";
|
|
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: "180px";
|
|
85
|
+
readonly sheet: "180px";
|
|
86
86
|
};
|
|
87
87
|
readonly actions: {
|
|
88
88
|
readonly default: "100px";
|
|
@@ -109,54 +109,4 @@ 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
|
-
};
|
|
162
112
|
};
|
|
@@ -17,7 +17,7 @@ export const destinationsTableCellWidth = {
|
|
|
17
17
|
receipt: {
|
|
18
18
|
default: '85px',
|
|
19
19
|
text: '150px',
|
|
20
|
-
sheet: '
|
|
20
|
+
sheet: '150px',
|
|
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: '250px',
|
|
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: '250px',
|
|
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: '180px',
|
|
85
|
+
sheet: '180px',
|
|
86
86
|
},
|
|
87
87
|
actions: {
|
|
88
88
|
default: '100px',
|
|
@@ -109,54 +109,4 @@ 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
|
-
},
|
|
162
112
|
};
|
|
@@ -94,16 +94,6 @@ 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
|
-
};
|
|
107
97
|
readonly destinations: {
|
|
108
98
|
readonly default: "70px";
|
|
109
99
|
readonly text: "240px";
|
|
@@ -192,7 +182,7 @@ export declare const refundTableCellWidth: {
|
|
|
192
182
|
readonly charge_meta: {
|
|
193
183
|
readonly default: "100px";
|
|
194
184
|
readonly text: "100px";
|
|
195
|
-
readonly sheet: "
|
|
185
|
+
readonly sheet: "100px";
|
|
196
186
|
};
|
|
197
187
|
readonly brand: {
|
|
198
188
|
readonly default: "116px";
|
|
@@ -94,16 +94,6 @@ 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
|
-
},
|
|
107
97
|
destinations: {
|
|
108
98
|
default: '70px',
|
|
109
99
|
text: '240px',
|
|
@@ -192,7 +182,7 @@ export const refundTableCellWidth = {
|
|
|
192
182
|
charge_meta: {
|
|
193
183
|
default: '100px',
|
|
194
184
|
text: '100px',
|
|
195
|
-
sheet: '
|
|
185
|
+
sheet: '100px',
|
|
196
186
|
},
|
|
197
187
|
brand: {
|
|
198
188
|
default: '116px',
|
package/build/utils/url.d.ts
CHANGED
package/build/utils/url.js
CHANGED
|
@@ -6,3 +6,13 @@ 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.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|