@truedat/dd 7.2.10 → 7.3.0
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 +6 -6
- package/src/components/StructuresDownloadOption.js +1 -3
- package/src/components/StructuresEditableDownloadOption.js +1 -3
- package/src/components/__tests__/StructuresDownloadOption.spec.js +2 -1
- package/src/components/__tests__/__snapshots__/StructuresDownloadOption.spec.js.snap +2 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
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.
|
|
37
|
+
"@truedat/test": "7.3.0",
|
|
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.
|
|
92
|
-
"@truedat/core": "7.
|
|
93
|
-
"@truedat/df": "7.
|
|
91
|
+
"@truedat/auth": "7.3.0",
|
|
92
|
+
"@truedat/core": "7.3.0",
|
|
93
|
+
"@truedat/df": "7.3.0",
|
|
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": "
|
|
118
|
+
"gitHead": "cbf85fe17b535953689418b85658cc804d095dfb"
|
|
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
|
-
|
|
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="
|
|
25
|
-
class="
|
|
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
|
`;
|