@tap-payments/os-micro-frontend-shared 0.1.446 → 0.1.447

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,5 +89,9 @@ export const updateColumnSelection = ({ columnsView, columnsIds, selected, }) =>
89
89
  return (Object.assign(Object.assign({}, field), { parameters: (_b = (_a = field.parameters) === null || _a === void 0 ? void 0 : _a.map((p) => (Object.assign(Object.assign({}, p), { selected })))) !== null && _b !== void 0 ? _b : [] }));
90
90
  }) }));
91
91
  };
92
- return columnsView.map((column) => { var _a, _b; return (ids.has((_b = (_a = column.code) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '') ? withSelected(column) : column); });
92
+ return columnsView.map((column) => {
93
+ var _a, _b, _c, _d, _e, _f;
94
+ const isViewMatch = ids.has((_b = (_a = column.code) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '') || ids.has((_f = (_e = (_d = (_c = column.name) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.toLowerCase()) !== null && _f !== void 0 ? _f : '');
95
+ return isViewMatch ? withSelected(column) : column;
96
+ });
93
97
  };
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.446",
4
+ "version": "0.1.447",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",