@truedat/bg 4.46.13 → 4.47.3

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.47.1] 2022-06-22
4
+
5
+ ### Fixed
6
+
7
+ - [TD-4720] Missing upload concepts button, remove new concept from /concepts.
8
+
3
9
  ## [4.46.13] 2022-06-21
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "4.46.13",
3
+ "version": "4.47.3",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.46.12",
37
+ "@truedat/test": "4.47.3",
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",
@@ -86,8 +86,8 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "4.46.13",
90
- "@truedat/df": "4.46.13",
89
+ "@truedat/core": "4.47.3",
90
+ "@truedat/df": "4.47.3",
91
91
  "file-saver": "^2.0.5",
92
92
  "moment": "^2.24.0",
93
93
  "path-to-regexp": "^1.7.0",
@@ -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": "89cd539e47e64a3e4a6f8bc30ea4d3b66fb0b666"
110
+ "gitHead": "f96f532d27f7104fbc50b6b0539593cec0d2039d"
111
111
  }
@@ -5,7 +5,7 @@ import { FormattedMessage } from "react-intl";
5
5
  import ConceptCrumbs from "./ConceptCrumbs";
6
6
  import ConceptsPanel from "./ConceptsPanel";
7
7
 
8
- export const Concepts = ({ header, subheader, icon }) => (
8
+ export const Concepts = ({ header, subheader, icon, ...actions }) => (
9
9
  <>
10
10
  <ConceptCrumbs />
11
11
  <Segment>
@@ -19,7 +19,7 @@ export const Concepts = ({ header, subheader, icon }) => (
19
19
  </Header.Content>
20
20
  </Header>
21
21
  <Segment attached="bottom">
22
- <ConceptsPanel />
22
+ <ConceptsPanel {...actions} />
23
23
  </Segment>
24
24
  </Segment>
25
25
  </>
@@ -20,6 +20,7 @@ const staticLabels = [
20
20
  ];
21
21
 
22
22
  export const ConceptsActions = ({
23
+ create,
23
24
  createUrl,
24
25
  conceptsDownloading,
25
26
  downloadConcepts,
@@ -33,7 +34,7 @@ export const ConceptsActions = ({
33
34
  )(staticLabels);
34
35
  return hidden ? null : (
35
36
  <div>
36
- {createUrl ? (
37
+ {create && createUrl && (
37
38
  <Button
38
39
  floated="right"
39
40
  primary
@@ -41,7 +42,7 @@ export const ConceptsActions = ({
41
42
  to={createUrl}
42
43
  content={formatMessage({ id: "concepts.actions.create" })}
43
44
  />
44
- ) : null}
45
+ )}
45
46
  <Button
46
47
  floated="right"
47
48
  secondary
@@ -61,6 +62,7 @@ export const ConceptsActions = ({
61
62
  ConceptsActions.propTypes = {
62
63
  conceptsDownloading: PropTypes.bool,
63
64
  hidden: PropTypes.bool,
65
+ create: PropTypes.bool,
64
66
  createUrl: PropTypes.string,
65
67
  downloadConcepts: PropTypes.func,
66
68
  upload: PropTypes.bool,
@@ -26,7 +26,22 @@ exports[`<Concepts /> matches the latest snapshot 1`] = `
26
26
  <Segment
27
27
  attached="bottom"
28
28
  >
29
- <Connect(ConceptsPanel) />
29
+ <Connect(ConceptsPanel)
30
+ concepts={
31
+ Array [
32
+ Object {
33
+ "description": "dd",
34
+ "id": 1,
35
+ "name": "s1",
36
+ "status": "st",
37
+ "version": "vs",
38
+ },
39
+ ]
40
+ }
41
+ create={true}
42
+ loading={false}
43
+ update={true}
44
+ />
30
45
  </Segment>
31
46
  </Segment>
32
47
  </Fragment>