@tap-payments/os-micro-frontend-shared 0.1.438-test.1 → 0.1.438-test.1-test.2

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.
@@ -91,10 +91,7 @@ export function useCustomTableViews({ templates, setTemplates, createTemplate, u
91
91
  const currentSelectedView = selectedView;
92
92
  let templateColumnsView = [];
93
93
  if (currentSelectedView) {
94
- const freshTemplate = templates === null || templates === void 0 ? void 0 : templates.find((t) => isTemplateMatchingId(t, currentSelectedView.id) ||
95
- (currentSelectedView.default && t.default));
96
- const source = freshTemplate !== null && freshTemplate !== void 0 ? freshTemplate : currentSelectedView;
97
- const viewWithLayout = source;
94
+ const viewWithLayout = currentSelectedView;
98
95
  const hasLayout = !!viewWithLayout.layout;
99
96
  templateColumnsView = convertTemplateToColumnsView(viewWithLayout, tableMode);
100
97
  if (templateColumnsView.length === 0 && !hasLayout && (templates === null || templates === void 0 ? void 0 : templates.length) > 0) {
@@ -17,6 +17,7 @@ export declare const REPORT_FILTER_TYPES: {
17
17
  PAYOUT: string;
18
18
  MERCHANT_PAYOUT: string;
19
19
  RETAILER_PAYOUT: string;
20
+ AUTHENTICATION: string;
20
21
  };
21
22
  /**
22
23
  * Maps report **source codes** (app or service)
@@ -1,5 +1,5 @@
1
1
  import { APP_CODES } from './apps';
2
- import { acceptanceAppIcon, billingAppIcon, payoutsAppIcon, walletAppIcon } from './assets';
2
+ import { acceptanceAppIcon, authenticationAppIcon, billingAppIcon, payoutsAppIcon, walletAppIcon } from './assets';
3
3
  /**
4
4
  * Backend report filter types (used by reports APIs)
5
5
  *
@@ -23,6 +23,8 @@ export const REPORT_FILTER_TYPES = {
23
23
  PAYOUT: 'PAYOUT',
24
24
  MERCHANT_PAYOUT: 'MERCHANT_PAYOUT',
25
25
  RETAILER_PAYOUT: 'RETAILER_PAYOUT',
26
+ // Authentication
27
+ AUTHENTICATION: 'AUTHENTICATION',
26
28
  };
27
29
  /**
28
30
  * Maps report **source codes** (app or service)
@@ -61,6 +63,8 @@ export const reportFilterTypesMap = {
61
63
  [APP_CODES.payouts.services.merchantPayout.code]: [REPORT_FILTER_TYPES.MERCHANT_PAYOUT],
62
64
  [APP_CODES.payouts.services.retailerPayout.code]: [REPORT_FILTER_TYPES.RETAILER_PAYOUT],
63
65
  [APP_CODES.payouts.code]: [REPORT_FILTER_TYPES.PAYOUT, REPORT_FILTER_TYPES.MERCHANT_PAYOUT, REPORT_FILTER_TYPES.RETAILER_PAYOUT],
66
+ // Authentication
67
+ [APP_CODES.authentication.code]: [REPORT_FILTER_TYPES.AUTHENTICATION],
64
68
  };
65
69
  /**
66
70
  * Reports apps
@@ -106,4 +110,10 @@ export const REPORTS_APPS = [
106
110
  { name: 'Retailer Payouts', code: APP_CODES.payouts.services.retailerPayout.code },
107
111
  ],
108
112
  },
113
+ {
114
+ code: APP_CODES.authentication.code,
115
+ name: 'Authentication',
116
+ icon: authenticationAppIcon,
117
+ services: [{ name: 'Authentication', code: APP_CODES.authentication.services.authentication.code }],
118
+ },
109
119
  ];
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.438-test.1",
5
- "testVersion": 1,
4
+ "version": "0.1.438-test.1-test.2",
5
+ "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",