@truedat/bg 4.58.0 → 4.58.2

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,12 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## [4.58.0] 2022-11-15
3
+ ## [4.58.0] 2022-12-15
4
4
 
5
5
  ### Added
6
6
 
7
7
  - [TD-3919] Add concept subscopes routes and defaultFilters
8
8
 
9
- ## [4.56.9] 2022-11-12
9
+ ## [4.56.9] 2022-12-12
10
10
 
11
11
  ### Added
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "4.58.0",
3
+ "version": "4.58.2",
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.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.58.0",
37
+ "@truedat/test": "4.58.2",
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.58.0",
90
- "@truedat/df": "4.58.0",
89
+ "@truedat/core": "4.58.2",
90
+ "@truedat/df": "4.58.2",
91
91
  "file-saver": "^2.0.5",
92
92
  "moment": "^2.29.4",
93
93
  "path-to-regexp": "^1.7.0",
@@ -108,5 +108,5 @@
108
108
  "react-dom": ">= 16.8.6 < 17",
109
109
  "semantic-ui-react": ">= 2.0.3 < 2.2"
110
110
  },
111
- "gitHead": "3987557a127b4e999021e0d7179ad7a6375bfe01"
111
+ "gitHead": "2e7042f380612d48784dc5641085fbe6dba7c7d1"
112
112
  }
@@ -14,6 +14,7 @@ import {
14
14
  CONCEPT_EDIT,
15
15
  CONCEPT_VERSION,
16
16
  } from "@truedat/core/routes";
17
+ import { useIntl } from "react-intl";
17
18
  import Concept from "./Concept";
18
19
  import ConceptCrumbs from "./ConceptCrumbs";
19
20
  import ConceptEdit from "./ConceptEdit";
@@ -39,6 +40,7 @@ const RelationsGraphLoader = React.lazy(() =>
39
40
  );
40
41
 
41
42
  export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
43
+ const { formatMessage } = useIntl();
42
44
  const authorized = useAuthorized([
43
45
  "business_glossary_view",
44
46
  "business_glossary_management",
@@ -60,8 +62,8 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
60
62
  <ConceptsLoader defaultFilters={pendingConceptsDefaultFilters} />
61
63
  <ConceptUserFiltersLoader />
62
64
  <Concepts
63
- header="concepts.header.manage"
64
- subheader="concepts.subheader.manage"
65
+ header={formatMessage({ id: "concepts.header.manage" })}
66
+ subheader={formatMessage({ id: "concepts.subheader.manage" })}
65
67
  icon="edit"
66
68
  create
67
69
  upload
@@ -88,11 +90,7 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
88
90
  <ConceptFiltersLoader defaultFilters={defaultFilters} />
89
91
  <ConceptsLoader defaultFilters={defaultFilters} />
90
92
  <ConceptUserFiltersLoader />
91
- <Concepts
92
- header="concepts.header.manage"
93
- subheader="concepts.subheader.manage"
94
- icon="tags"
95
- />
93
+ <Concepts header={subscope} icon="tags" />
96
94
  </>
97
95
  ) : (
98
96
  <Unauthorized />
@@ -129,8 +127,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
129
127
  />
130
128
  <ConceptUserFiltersLoader />
131
129
  <Concepts
132
- header="concepts.header"
133
- subheader="concepts.subheader.view"
130
+ header={formatMessage({ id: "concepts.header" })}
131
+ subheader={formatMessage({
132
+ id: "concepts.subheader.view",
133
+ })}
134
134
  icon="tags"
135
135
  />
136
136
  </>
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
  import { Header, Icon, Segment } from "semantic-ui-react";
4
- import { FormattedMessage } from "react-intl";
5
4
  import ConceptCrumbs from "./ConceptCrumbs";
6
5
  import ConceptsPanel from "./ConceptsPanel";
7
6
 
@@ -12,10 +11,8 @@ export const Concepts = ({ header, subheader, icon, ...actions }) => (
12
11
  <Header as="h2">
13
12
  <Icon circular name={icon} />
14
13
  <Header.Content>
15
- <FormattedMessage id={header} />
16
- <Header.Subheader>
17
- <FormattedMessage id={subheader} />
18
- </Header.Subheader>
14
+ {header}
15
+ <Header.Subheader>{subheader}</Header.Subheader>
19
16
  </Header.Content>
20
17
  </Header>
21
18
  <Segment attached="bottom">
@@ -13,13 +13,9 @@ exports[`<Concepts /> matches the latest snapshot 1`] = `
13
13
  name="edit"
14
14
  />
15
15
  <HeaderContent>
16
- <MemoizedFormattedMessage
17
- id="concepts.header.manage"
18
- />
16
+ concepts.header.manage
19
17
  <HeaderSubheader>
20
- <MemoizedFormattedMessage
21
- id="concepts.subheader.manage"
22
- />
18
+ concepts.subheader.manage
23
19
  </HeaderSubheader>
24
20
  </HeaderContent>
25
21
  </Header>