@trackunit/react-table-helpers 0.0.256 → 0.0.257

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/index.cjs.js CHANGED
@@ -112,15 +112,15 @@ const useColumnDefinitionsFromCustomFieldDefinition = ({ customFieldDefinitions,
112
112
  const result = [];
113
113
  customFieldDefinitions === null || customFieldDefinitions === void 0 ? void 0 : customFieldDefinitions.forEach(customFieldDefinition => {
114
114
  if ((customFieldDefinition === null || customFieldDefinition === void 0 ? void 0 : customFieldDefinition.node) &&
115
- customFieldDefinition.node.definitionId &&
115
+ customFieldDefinition.node.id &&
116
116
  customFieldDefinition.node.title &&
117
117
  customFieldDefinition.node.type) {
118
118
  const column = columnHelper.accessor(data => {
119
119
  var _a, _b, _c;
120
- return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => { var _a, _b; return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.definitionId) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.definitionId); })) === null || _c === void 0 ? void 0 : _c.node;
120
+ return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => { var _a, _b; return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.definitionId) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.id); })) === null || _c === void 0 ? void 0 : _c.node;
121
121
  }, {
122
122
  header: customFieldDefinition.node.title,
123
- id: customFieldDefinition.node.definitionId,
123
+ id: customFieldDefinition.node.id,
124
124
  enableSorting: customFieldDefinition.node.type !== "DROPDOWN",
125
125
  meta: {
126
126
  hiddenByDefault: true,
package/index.esm.js CHANGED
@@ -108,15 +108,15 @@ const useColumnDefinitionsFromCustomFieldDefinition = ({ customFieldDefinitions,
108
108
  const result = [];
109
109
  customFieldDefinitions === null || customFieldDefinitions === void 0 ? void 0 : customFieldDefinitions.forEach(customFieldDefinition => {
110
110
  if ((customFieldDefinition === null || customFieldDefinition === void 0 ? void 0 : customFieldDefinition.node) &&
111
- customFieldDefinition.node.definitionId &&
111
+ customFieldDefinition.node.id &&
112
112
  customFieldDefinition.node.title &&
113
113
  customFieldDefinition.node.type) {
114
114
  const column = columnHelper.accessor(data => {
115
115
  var _a, _b, _c;
116
- return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => { var _a, _b; return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.definitionId) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.definitionId); })) === null || _c === void 0 ? void 0 : _c.node;
116
+ return (_c = (_b = (_a = data.customFields) === null || _a === void 0 ? void 0 : _a.edges) === null || _b === void 0 ? void 0 : _b.find(field => { var _a, _b; return ((_a = field === null || field === void 0 ? void 0 : field.node) === null || _a === void 0 ? void 0 : _a.definition.definitionId) === ((_b = customFieldDefinition.node) === null || _b === void 0 ? void 0 : _b.id); })) === null || _c === void 0 ? void 0 : _c.node;
117
117
  }, {
118
118
  header: customFieldDefinition.node.title,
119
- id: customFieldDefinition.node.definitionId,
119
+ id: customFieldDefinition.node.id,
120
120
  enableSorting: customFieldDefinition.node.type !== "DROPDOWN",
121
121
  meta: {
122
122
  hiddenByDefault: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-helpers",
3
- "version": "0.0.256",
3
+ "version": "0.0.257",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,7 +9,7 @@ export type CustomFieldType = "BOOLEAN" | "DATE" | "DROPDOWN" | "EMAIL" | "NUMBE
9
9
  * This is manually created to match the GraphQL API, to keep the lib independent of the API.
10
10
  */
11
11
  export interface CustomFieldDefinition {
12
- definitionId: string;
12
+ id: string;
13
13
  title?: string | null;
14
14
  key?: string | null;
15
15
  type: CustomFieldType | null;