@tap-payments/os-micro-frontend-shared 0.1.73-test.1 → 0.1.74-test.1

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.
@@ -17,20 +17,15 @@ import { ChannelTextLabel, ChannelTextWrapper, salesChannelAnimation, SalesChann
17
17
  function SalesChannelCell(_a) {
18
18
  var _b;
19
19
  var { channels, isTextShown } = _a, props = __rest(_a, ["channels", "isTextShown"]);
20
- const salesChannels = (_b = channels === null || channels === void 0 ? void 0 : channels.filter((item) => !!item.address)) === null || _b === void 0 ? void 0 : _b.map((channel, index) => {
20
+ const salesChannels = (_b = channels === null || channels === void 0 ? void 0 : channels.filter((s) => !!s.address)) === null || _b === void 0 ? void 0 : _b.map((channel, index) => {
21
21
  var _a;
22
22
  const sourceTooltip = channel.address;
23
23
  const channelCode = (_a = channel.code) === null || _a === void 0 ? void 0 : _a.replace(/_/g, '');
24
- let channelAddressUrl = channel.address || '';
25
- if (!/^https?:\/\//i.test(channelAddressUrl)) {
26
- channelAddressUrl = 'https://' + channelAddressUrl;
27
- }
28
24
  return (_jsx(Tooltip, Object.assign({ title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: salesChannelAnimation(index, isTextShown ? 74 : 0), sx: {
29
25
  width: isTextShown ? '70px' : '36px',
30
26
  cursor: 'pointer',
31
- boxShadow: '7px 0px 8px 0px #F2F2F2',
32
27
  }, onClick: () => {
33
- window.open(channelAddressUrl, '_blank');
28
+ window.open(channel.address, '_blank');
34
29
  } }, { children: isTextShown ? (_jsx(ChannelTextWrapper, { children: _jsx(ChannelTextLabel, { children: channelCode }) })) : (_jsx(StyledSourceImage, { src: channel.logo, alt: channelCode })) })) }), `${channel}-${index}`));
35
30
  });
36
31
  const salesChannelsCount = (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.length) || 0;
@@ -43,6 +43,7 @@ export interface SegmentType {
43
43
  }
44
44
  export interface Segment {
45
45
  id: string;
46
+ code: string;
46
47
  organization_id: string;
47
48
  name: TextAndLang[];
48
49
  logo: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.73-test.1",
4
+ "version": "0.1.74-test.1",
5
5
  "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",