@truedat/dd 7.2.10 → 7.2.11

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/dd",
3
- "version": "7.2.10",
3
+ "version": "7.2.11",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "7.2.10",
37
+ "@truedat/test": "7.2.11",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -88,9 +88,9 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.7.1",
91
- "@truedat/auth": "7.2.10",
92
- "@truedat/core": "7.2.10",
93
- "@truedat/df": "7.2.10",
91
+ "@truedat/auth": "7.2.11",
92
+ "@truedat/core": "7.2.11",
93
+ "@truedat/df": "7.2.11",
94
94
  "lodash": "^4.17.21",
95
95
  "moment": "^2.29.4",
96
96
  "path-to-regexp": "^1.7.0",
@@ -115,5 +115,5 @@
115
115
  "react-dom": ">= 16.8.6 < 17",
116
116
  "semantic-ui-react": ">= 2.0.3 < 2.2"
117
117
  },
118
- "gitHead": "425c9b112aaab0b8a0b43160f818b21a3b32b926"
118
+ "gitHead": "74eb04f81dd49275229cf3050b56b897ff78410e"
119
119
  }
@@ -30,7 +30,6 @@ export const StructuresDownloadOption = ({ setDownloading }) => {
30
30
  searchData,
31
31
  loading: structuresLoading,
32
32
  filterParams: searchParams,
33
- allActiveFilters: allActiveFilters,
34
33
  } = useSearchContext();
35
34
  const { trigger: triggerDownload, isMutating: structuresDownloading } =
36
35
  useDataStructureDownload();
@@ -46,8 +45,7 @@ export const StructuresDownloadOption = ({ setDownloading }) => {
46
45
  _.fromPairs
47
46
  )(staticLabels);
48
47
 
49
- const isDisabled =
50
- _.isEmpty(structures) || _.isEmpty(_.path("type.raw")(allActiveFilters));
48
+ const isDisabled = _.isEmpty(structures);
51
49
 
52
50
  return !structuresLoading ? (
53
51
  <Dropdown.Item
@@ -13,7 +13,6 @@ export const StructuresEditableDownloadOption = ({ setDownloading }) => {
13
13
  searchData,
14
14
  loading: structuresLoading,
15
15
  filterParams: searchParams,
16
- allActiveFilters: allActiveFilters,
17
16
  } = useSearchContext();
18
17
  const { trigger: triggerDownload, isMutating: structuresDownloading } =
19
18
  useDataStructureDownload();
@@ -24,8 +23,7 @@ export const StructuresEditableDownloadOption = ({ setDownloading }) => {
24
23
 
25
24
  const structures = searchData?.data;
26
25
 
27
- const isDisabled =
28
- _.isEmpty(structures) || _.isEmpty(_.path("type.raw")(allActiveFilters));
26
+ const isDisabled = _.isEmpty(structures);
29
27
 
30
28
  return (
31
29
  !structuresLoading && (
@@ -30,7 +30,8 @@ describe("<StructuresDownloadOption />", () => {
30
30
  </SearchContextWrapper>,
31
31
  renderOpts
32
32
  );
33
- expect(getByRole("option")).toHaveAttribute("aria-disabled", "true");
33
+
34
+ expect(getByRole("option")).toHaveAttribute("aria-disabled", "false");
34
35
  expect(container).toMatchSnapshot();
35
36
  });
36
37
 
@@ -21,8 +21,8 @@ exports[`<StructuresDownloadOption /> has type filter applied 1`] = `
21
21
  exports[`<StructuresDownloadOption /> matches the latest snapshot 1`] = `
22
22
  <div>
23
23
  <div
24
- aria-disabled="true"
25
- class="disabled item"
24
+ aria-disabled="false"
25
+ class="item"
26
26
  role="option"
27
27
  >
28
28
  <i
@@ -32,11 +32,6 @@ exports[`<StructuresDownloadOption /> matches the latest snapshot 1`] = `
32
32
  <span>
33
33
  tooltip
34
34
  </span>
35
- <p
36
- class="menu-item-description"
37
- >
38
- popup
39
- </p>
40
35
  </div>
41
36
  </div>
42
37
  `;