@truedat/bg 4.45.8 → 4.46.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,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.46.2] 2022-06-16
4
+
5
+ ### Changed
6
+
7
+ - [TD-4739] Don't lazily load components from `@truedat/core`
8
+
3
9
  ## [4.45.1] 2022-05-26
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "4.45.8",
3
+ "version": "4.46.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.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.45.8",
37
+ "@truedat/test": "4.46.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.45.8",
90
- "@truedat/df": "4.45.8",
89
+ "@truedat/core": "4.46.2",
90
+ "@truedat/df": "4.46.2",
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": "1b5acb1dc1233181e5a47353fd8a5da1424e7a47"
110
+ "gitHead": "161f3fae4428ee4e4e26b62fd2f9764ce389d0e2"
111
111
  }
@@ -4,6 +4,7 @@ import PropTypes from "prop-types";
4
4
  import { connect } from "react-redux";
5
5
  import { Route } from "react-router-dom";
6
6
  import { Grid, Segment } from "semantic-ui-react";
7
+ import { Comments, CommentsLoader } from "@truedat/core/components";
7
8
  import { CONCEPT_VERSION } from "@truedat/core/routes";
8
9
  import ConceptRelationsSummary from "../relations/components/ConceptRelationsSummary";
9
10
  import ConceptArchiveLoader from "./ConceptArchiveLoader";
@@ -19,13 +20,11 @@ import SharedToDomains from "./SharedToDomains";
19
20
  const EventsLoader = React.lazy(() =>
20
21
  import("@truedat/audit/components/EventsLoader")
21
22
  );
22
- const Comments = React.lazy(() => import("@truedat/core/components/Comments"));
23
- const CommentsLoader = React.lazy(() =>
24
- import("@truedat/core/components/CommentsLoader")
25
- );
23
+
26
24
  const RelationsLoader = React.lazy(() =>
27
25
  import("@truedat/lm/components/RelationsLoader")
28
26
  );
27
+
29
28
  const ConceptRulesLoader = React.lazy(() =>
30
29
  import("@truedat/dq/components/ConceptRulesLoader")
31
30
  );
@@ -71,11 +70,11 @@ export const Concept = ({ id }) => (
71
70
  );
72
71
 
73
72
  Concept.propTypes = {
74
- id: PropTypes.number.isRequired
73
+ id: PropTypes.number.isRequired,
75
74
  };
76
75
 
77
76
  const mapStateToProps = ({ concept }) => ({
78
- id: _.prop("business_concept_id")(concept)
77
+ id: _.prop("business_concept_id")(concept),
79
78
  });
80
79
 
81
80
  export default connect(mapStateToProps)(Concept);
@@ -3,16 +3,14 @@ import PropTypes from "prop-types";
3
3
  import { connect } from "react-redux";
4
4
  import { Segment, Header } from "semantic-ui-react";
5
5
  import { FormattedMessage } from "react-intl";
6
+ import { RichTextEditor } from "@truedat/core/components";
6
7
 
7
8
  const DynamicFormViewer = React.lazy(() =>
8
9
  import("@truedat/df/components/DynamicFormViewer")
9
10
  );
10
- const RichTextEditor = React.lazy(() =>
11
- import("@truedat/core/components/RichTextEditor")
12
- );
13
11
 
14
12
  export const ConceptDetails = ({
15
- concept: { content, description, template }
13
+ concept: { content, description, template },
16
14
  }) => (
17
15
  <Segment attached="bottom">
18
16
  <Header as="h3">
@@ -24,7 +22,7 @@ export const ConceptDetails = ({
24
22
  );
25
23
 
26
24
  ConceptDetails.propTypes = {
27
- concept: PropTypes.object
25
+ concept: PropTypes.object,
28
26
  };
29
27
 
30
28
  const mapStateToProps = ({ concept }) => ({ concept });
@@ -13,7 +13,7 @@ import {
13
13
  import { compose } from "redux";
14
14
  import { connect } from "react-redux";
15
15
  import { injectIntl, FormattedMessage } from "react-intl";
16
- import { HistoryBackButton } from "@truedat/core/components";
16
+ import { HistoryBackButton, RichTextEditor } from "@truedat/core/components";
17
17
  import { selectTemplate, selectDomain } from "@truedat/df/routines";
18
18
  import { applyTemplate } from "@truedat/df/utils";
19
19
  import { conceptAction } from "../routines";
@@ -22,10 +22,6 @@ const DynamicForm = React.lazy(() =>
22
22
  import("@truedat/df/components/DynamicForm")
23
23
  );
24
24
 
25
- const RichTextEditor = React.lazy(() =>
26
- import("@truedat/core/components/RichTextEditor")
27
- );
28
-
29
25
  const TemplateLoader = React.lazy(() =>
30
26
  import("@truedat/df/templates/components/TemplateLoader")
31
27
  );
@@ -13,7 +13,7 @@ import {
13
13
  import { compose } from "redux";
14
14
  import { connect } from "react-redux";
15
15
  import { injectIntl, FormattedMessage } from "react-intl";
16
- import { HistoryBackButton } from "@truedat/core/components";
16
+ import { HistoryBackButton, RichTextEditor } from "@truedat/core/components";
17
17
  import { conceptAction } from "../routines";
18
18
  import DomainDropdownSelector from "../../taxonomy/components/DomainDropdownSelector";
19
19
 
@@ -21,10 +21,6 @@ const SelectableDynamicForm = React.lazy(() =>
21
21
  import("@truedat/df/components/SelectableDynamicForm")
22
22
  );
23
23
 
24
- const RichTextEditor = React.lazy(() =>
25
- import("@truedat/core/components/RichTextEditor")
26
- );
27
-
28
24
  const actionKey = "create";
29
25
 
30
26
  const staticFields = ["name", "description"];
@@ -6,12 +6,9 @@ import { List, Header, Segment } from "semantic-ui-react";
6
6
  import { FormattedMessage } from "react-intl";
7
7
  import { getConceptDomainPath } from "../selectors";
8
8
  import DomainItem from "../../taxonomy/components/DomainItem";
9
+ import DomainsConceptLoader from "../../taxonomy/components/DomainsConceptLoader";
9
10
  import ConceptManageDomainPopup from "./ConceptManageDomainPopup";
10
11
 
11
- const DomainsConceptLoader = React.lazy(() =>
12
- import("../../taxonomy/components/DomainsConceptLoader")
13
- );
14
-
15
12
  export const ConceptTaxonomy = ({ domainPath }) =>
16
13
  _.negate(_.isEmpty)(domainPath) && (
17
14
  <Segment>
@@ -4,7 +4,7 @@ exports[`<Concept /> matches the latest snapshot 1`] = `
4
4
  <Fragment>
5
5
  <Connect(ConceptCrumbs) />
6
6
  <Connect(ConceptArchiveLoader) />
7
- <lazy
7
+ <Connect(CommentsLoader)
8
8
  resource_id={1}
9
9
  resource_type="business_concept"
10
10
  />
@@ -11,7 +11,7 @@ exports[`<ConceptDetails /> matches the latest snapshot 1`] = `
11
11
  id="concepts.props.description"
12
12
  />
13
13
  </Header>
14
- <lazy
14
+ <injectIntl(RichTextEditor)
15
15
  readOnly={true}
16
16
  />
17
17
  <lazy
@@ -203,23 +203,23 @@ exports[`<ConceptForm /> with a single template matches the latest snapshot 1`]
203
203
  autocorrect="on"
204
204
  contenteditable="true"
205
205
  data-gramm="false"
206
- data-key="9"
206
+ data-key="10"
207
207
  data-slate-editor="true"
208
208
  role="textbox"
209
209
  spellcheck="true"
210
210
  style="outline: none; white-space: pre-wrap; word-wrap: break-word;"
211
211
  >
212
212
  <div
213
- data-key="10"
213
+ data-key="11"
214
214
  data-slate-object="block"
215
215
  style="position: relative;"
216
216
  >
217
217
  <span
218
- data-key="13"
218
+ data-key="14"
219
219
  data-slate-object="text"
220
220
  >
221
221
  <span
222
- data-offset-key="13:0"
222
+ data-offset-key="14:0"
223
223
  data-slate-leaf="true"
224
224
  >
225
225
  <span>
@@ -516,11 +516,11 @@ exports[`<ConceptForm /> with multiple templates matches the latest snapshot 1`]
516
516
  style="position: relative;"
517
517
  >
518
518
  <span
519
- data-key="3"
519
+ data-key="4"
520
520
  data-slate-object="text"
521
521
  >
522
522
  <span
523
- data-offset-key="3:0"
523
+ data-offset-key="4:0"
524
524
  data-slate-leaf="true"
525
525
  >
526
526
  <span>
@@ -11,7 +11,7 @@ exports[`<ConceptTaxonomy /> matches the latest snapshot 1`] = `
11
11
  id="concepts.taxonomy"
12
12
  />
13
13
  </Header>
14
- <lazy
14
+ <Connect(DomainsConceptLoader)
15
15
  actions="manage_business_concepts_domain"
16
16
  />
17
17
  <Connect(ConceptManageDomainPopup)
@@ -7,6 +7,7 @@ import { FormattedMessage } from "react-intl";
7
7
  import { getConceptImplementationLinks } from "../selectors";
8
8
  import { conceptLinkAction } from "../routines";
9
9
  import ImplementationLinksAction from "./ImplementationLinksAction";
10
+
10
11
  const RuleImplementationsTable = React.lazy(() =>
11
12
  import("@truedat/dq/components/RuleImplementationsTable")
12
13
  );