@truedat/df 8.4.7 → 8.4.9

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.7",
3
+ "version": "8.4.9",
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.7",
54
+ "@truedat/test": "8.4.9",
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.7",
61
+ "@truedat/core": "8.4.9",
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": "71fcf487f24eb0b3e5a6962547e0e946c59033ce"
90
+ "gitHead": "9fd4bd2126a33342009194c8ae1829cd3c617a48"
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",