@truedat/dd 4.42.6 → 4.43.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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.43.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.14.1",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "4.
|
|
37
|
+
"@truedat/test": "4.43.0",
|
|
38
38
|
"babel-jest": "^27.0.6",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@truedat/auth": "4.
|
|
88
|
-
"@truedat/core": "4.
|
|
89
|
-
"@truedat/df": "4.
|
|
87
|
+
"@truedat/auth": "4.43.0",
|
|
88
|
+
"@truedat/core": "4.43.0",
|
|
89
|
+
"@truedat/df": "4.43.0",
|
|
90
90
|
"lodash": "^4.17.21",
|
|
91
91
|
"path-to-regexp": "^1.7.0",
|
|
92
92
|
"prop-types": "^15.7.2",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "ad0f63f2d98ae377883743b839858d9d671d2431"
|
|
111
111
|
}
|
|
@@ -138,12 +138,16 @@ describe("selectors: getTabVisibility", () => {
|
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
it("should include rules iff
|
|
141
|
+
it("should include rules iff structure.implementations is not empty", () => {
|
|
142
142
|
expect(getTabVisibility({})).toMatchObject({ rules: false });
|
|
143
|
-
expect(
|
|
143
|
+
expect(
|
|
144
|
+
getTabVisibility({ structure: { implementations: [] } })
|
|
145
|
+
).toMatchObject({
|
|
144
146
|
rules: false,
|
|
145
147
|
});
|
|
146
|
-
expect(
|
|
148
|
+
expect(
|
|
149
|
+
getTabVisibility({ structure: { implementations: [{}] } })
|
|
150
|
+
).toMatchObject({
|
|
147
151
|
rules: true,
|
|
148
152
|
});
|
|
149
153
|
});
|
|
@@ -36,7 +36,7 @@ const notesTabVisible = ({ templatesLoading, templates, structure }) =>
|
|
|
36
36
|
)(templates);
|
|
37
37
|
|
|
38
38
|
const versionsTabVisible = notEmptyPath("structureVersions");
|
|
39
|
-
const rulesTabVisible = notEmptyPath("
|
|
39
|
+
const rulesTabVisible = notEmptyPath("structure.implementations");
|
|
40
40
|
const lineageTabVisible = _.anyPass([_.path("structure.degree.in")]);
|
|
41
41
|
const impactTabVisible = _.anyPass([_.path("structure.degree.out")]);
|
|
42
42
|
const parentsTabVisible = _.conformsTo({ parentRelations: notEmpty });
|