@truedat/bg 4.58.1 → 4.58.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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.58.3] 2022-12-21
4
+
5
+ ### Changed
6
+
7
+ - [TD-5426] Update `decode-uri-component` (CVE-2022-38900)
8
+
9
+ ## [4.58.2] 2022-12-15
10
+
11
+ ### Fixed
12
+
13
+ - [TD-3919] Change subscoped concepts header, remove subheader.
14
+
3
15
  ## [4.58.0] 2022-12-15
4
16
 
5
17
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "4.58.1",
3
+ "version": "4.58.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.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.58.1",
37
+ "@truedat/test": "4.58.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,12 +86,14 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "4.58.1",
90
- "@truedat/df": "4.58.1",
89
+ "@truedat/core": "4.58.3",
90
+ "@truedat/df": "4.58.3",
91
+ "decode-uri-component": "^0.2.2",
91
92
  "file-saver": "^2.0.5",
92
93
  "moment": "^2.29.4",
93
94
  "path-to-regexp": "^1.7.0",
94
95
  "prop-types": "^15.8.1",
96
+ "query-string": "^6.11.0",
95
97
  "react-hook-form": "^7.30.0",
96
98
  "react-intl": "^5.20.10",
97
99
  "react-moment": "^1.1.2",
@@ -108,5 +110,5 @@
108
110
  "react-dom": ">= 16.8.6 < 17",
109
111
  "semantic-ui-react": ">= 2.0.3 < 2.2"
110
112
  },
111
- "gitHead": "f1d6fab3f573f3f3ee9e0e6060d2761d452ca804"
113
+ "gitHead": "d6ce0fa41e1d1ca09130b8beab9e21019314726e"
112
114
  }
@@ -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>