@truedat/df 8.4.8 → 8.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/df",
3
- "version": "8.4.8",
3
+ "version": "8.5.1",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -51,14 +51,14 @@
51
51
  "@testing-library/jest-dom": "^6.6.3",
52
52
  "@testing-library/react": "^16.3.0",
53
53
  "@testing-library/user-event": "^14.6.1",
54
- "@truedat/test": "8.4.8",
54
+ "@truedat/test": "8.5.1",
55
55
  "identity-obj-proxy": "^3.0.0",
56
56
  "jest": "^29.7.0",
57
57
  "redux-saga-test-plan": "^4.0.6"
58
58
  },
59
59
  "dependencies": {
60
60
  "@apollo/client": "^3.13.8",
61
- "@truedat/core": "8.4.8",
61
+ "@truedat/core": "8.5.1",
62
62
  "axios": "^1.15.0",
63
63
  "graphql": "^16.11.0",
64
64
  "is-hotkey": "^0.2.0",
@@ -87,5 +87,5 @@
87
87
  "semantic-ui-react": "^3.0.0-beta.2",
88
88
  "swr": "^2.3.3"
89
89
  },
90
- "gitHead": "7829e377f78c3cfc66e449f5dc31a8b03c0f5f00"
90
+ "gitHead": "d29d6cba24bb1c464650348851cfaf1911bbedfd"
91
91
  }
@@ -128,7 +128,7 @@ export const TableValuesForm = ({ name, onChange, type, values, scope, field, fi
128
128
  };
129
129
 
130
130
  const handleRemove = (key) => {
131
- const updatedValues = values.toSpliced(key, 1);
131
+ const updatedValues = values.filter((_, i) => i !== key);
132
132
  onChange(null, { name, value: { [type]: updatedValues } });
133
133
  if (_.size(updatedValues) > 0) {
134
134
  setActiveField(key - 1);
@@ -136,11 +136,11 @@ describe("TableValuesForm", () => {
136
136
 
137
137
  const activePanel = rendered.getByText("colA").closest(".title")?.nextElementSibling;
138
138
  const buttons = within(activePanel).getAllByRole("button");
139
- const deleteButton = buttons[2]; // third button
139
+ const deleteButton = buttons[buttons.length - 1];
140
140
 
141
141
  await user.click(deleteButton);
142
142
 
143
- expect(baseProps.onChange).toHaveBeenCalledWith(
143
+ expect(baseProps.onChange).toHaveBeenLastCalledWith(
144
144
  null,
145
145
  expect.objectContaining({
146
146
  name: "myField",
@@ -186,6 +186,14 @@ exports[`<ActiveGroupForm /> matches the latest snapshot 1`] = `
186
186
  class="italic icon"
187
187
  />
188
188
  </div>
189
+ <div
190
+ class="item"
191
+ >
192
+ <i
193
+ aria-hidden="true"
194
+ class="underline icon"
195
+ />
196
+ </div>
189
197
  <div
190
198
  class="item"
191
199
  >
@@ -107,6 +107,14 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
107
107
  class="italic icon"
108
108
  />
109
109
  </div>
110
+ <div
111
+ class="item"
112
+ >
113
+ <i
114
+ aria-hidden="true"
115
+ class="underline icon"
116
+ />
117
+ </div>
110
118
  <div
111
119
  class="item"
112
120
  >
@@ -826,6 +834,14 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
826
834
  class="italic icon"
827
835
  />
828
836
  </div>
837
+ <div
838
+ class="item"
839
+ >
840
+ <i
841
+ aria-hidden="true"
842
+ class="underline icon"
843
+ />
844
+ </div>
829
845
  <div
830
846
  class="item"
831
847
  >
@@ -1687,6 +1703,14 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1687
1703
  class="italic icon"
1688
1704
  />
1689
1705
  </div>
1706
+ <div
1707
+ class="item"
1708
+ >
1709
+ <i
1710
+ aria-hidden="true"
1711
+ class="underline icon"
1712
+ />
1713
+ </div>
1690
1714
  <div
1691
1715
  class="item"
1692
1716
  >
@@ -457,6 +457,14 @@ exports[`<TemplateForm /> matches snapshot when scope has no relations 1`] = `
457
457
  class="italic icon"
458
458
  />
459
459
  </div>
460
+ <div
461
+ class="item"
462
+ >
463
+ <i
464
+ aria-hidden="true"
465
+ class="underline icon"
466
+ />
467
+ </div>
460
468
  <div
461
469
  class="item"
462
470
  >
@@ -1569,6 +1577,14 @@ exports[`<TemplateForm /> matches snapshot when scope has relations 1`] = `
1569
1577
  class="italic icon"
1570
1578
  />
1571
1579
  </div>
1580
+ <div
1581
+ class="item"
1582
+ >
1583
+ <i
1584
+ aria-hidden="true"
1585
+ class="underline icon"
1586
+ />
1587
+ </div>
1572
1588
  <div
1573
1589
  class="item"
1574
1590
  >