@truedat/ie 4.46.1 → 4.46.4

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.44.5] 2022-05-20
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/ie",
3
- "version": "4.46.1",
3
+ "version": "4.46.4",
4
4
  "description": "Truedat Web Ingests",
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.0",
37
+ "@truedat/test": "4.46.4",
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",
@@ -87,8 +87,8 @@
87
87
  ]
88
88
  },
89
89
  "dependencies": {
90
- "@truedat/core": "4.46.0",
91
- "@truedat/df": "4.46.1",
90
+ "@truedat/core": "4.46.4",
91
+ "@truedat/df": "4.46.4",
92
92
  "file-saver": "^2.0.5",
93
93
  "moment": "^2.24.0",
94
94
  "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": "00524d691df3a57293aca6580e6bf96667e11761"
110
+ "gitHead": "dcd0aa42ffe1fb816945154ec2a2d06889dca7e7"
111
111
  }
@@ -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 IngestDetails = ({
15
- ingest: { content, description, template }
13
+ ingest: { content, description, template },
16
14
  }) => (
17
15
  <Segment attached="bottom">
18
16
  <Header as="h3">
@@ -24,11 +22,11 @@ export const IngestDetails = ({
24
22
  );
25
23
 
26
24
  IngestDetails.propTypes = {
27
- ingest: PropTypes.object
25
+ ingest: PropTypes.object,
28
26
  };
29
27
 
30
- const mapStateToProps = state => ({
31
- ingest: state.ingest
28
+ const mapStateToProps = (state) => ({
29
+ ingest: state.ingest,
32
30
  });
33
31
 
34
32
  export default connect(mapStateToProps)(IngestDetails);
@@ -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 { ingestAction } from "../routines";
@@ -21,9 +21,7 @@ import { ingestAction } from "../routines";
21
21
  const DynamicForm = React.lazy(() =>
22
22
  import("@truedat/df/components/DynamicForm")
23
23
  );
24
- const RichTextEditor = React.lazy(() =>
25
- import("@truedat/core/components/RichTextEditor")
26
- );
24
+
27
25
  const TemplateLoader = React.lazy(() =>
28
26
  import("@truedat/df/templates/components/TemplateLoader")
29
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 {
18
18
  selectTemplate,
19
19
  selectDomain,
@@ -25,9 +25,7 @@ import { ingestAction } from "../routines";
25
25
  const DynamicForm = React.lazy(() =>
26
26
  import("@truedat/df/components/DynamicForm")
27
27
  );
28
- const RichTextEditor = React.lazy(() =>
29
- import("@truedat/core/components/RichTextEditor")
30
- );
28
+
31
29
  const TemplateLoader = React.lazy(() =>
32
30
  import("@truedat/df/templates/components/TemplateLoader")
33
31
  );
@@ -13,18 +13,16 @@ 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 { ingestAction } from "../routines";
18
18
 
19
19
  const DomainDropdownSelector = React.lazy(() =>
20
20
  import("@truedat/bg/taxonomy/components/DomainDropdownSelector")
21
21
  );
22
+
22
23
  const SelectableDynamicForm = React.lazy(() =>
23
24
  import("@truedat/df/components/SelectableDynamicForm")
24
25
  );
25
- const RichTextEditor = React.lazy(() =>
26
- import("@truedat/core/components/RichTextEditor")
27
- );
28
26
 
29
27
  const actionKey = "create";
30
28
 
@@ -11,7 +11,7 @@ exports[`<IngestDetails /> matches the latest snapshot 1`] = `
11
11
  id="ingests.props.description"
12
12
  />
13
13
  </Header>
14
- <lazy
14
+ <injectIntl(RichTextEditor)
15
15
  readOnly={true}
16
16
  />
17
17
  <lazy />
@@ -56,7 +56,7 @@ exports[`<IngestDuplicate /> matches the latest snapshot 1`] = `
56
56
  />
57
57
  </Label>
58
58
  </label>
59
- <lazy
59
+ <injectIntl(RichTextEditor)
60
60
  name="description"
61
61
  onChange={[Function]}
62
62
  value={Object {}}
@@ -55,7 +55,7 @@ exports[`<IngestEdit /> matches the latest snapshot 1`] = `
55
55
  />
56
56
  </Label>
57
57
  </label>
58
- <lazy
58
+ <injectIntl(RichTextEditor)
59
59
  name="description"
60
60
  onChange={[Function]}
61
61
  value={Object {}}
@@ -198,23 +198,23 @@ exports[`<IngestForm /> with a single template matches the latest snapshot 1`] =
198
198
  autocorrect="on"
199
199
  contenteditable="true"
200
200
  data-gramm="false"
201
- data-key="10"
201
+ data-key="9"
202
202
  data-slate-editor="true"
203
203
  role="textbox"
204
204
  spellcheck="true"
205
205
  style="outline: none; white-space: pre-wrap; word-wrap: break-word;"
206
206
  >
207
207
  <div
208
- data-key="11"
208
+ data-key="10"
209
209
  data-slate-object="block"
210
210
  style="position: relative;"
211
211
  >
212
212
  <span
213
- data-key="14"
213
+ data-key="13"
214
214
  data-slate-object="text"
215
215
  >
216
216
  <span
217
- data-offset-key="14:0"
217
+ data-offset-key="13:0"
218
218
  data-slate-leaf="true"
219
219
  >
220
220
  <span>
@@ -501,11 +501,11 @@ exports[`<IngestForm /> with multiple templates matches the latest snapshot 1`]
501
501
  style="position: relative;"
502
502
  >
503
503
  <span
504
- data-key="4"
504
+ data-key="3"
505
505
  data-slate-object="text"
506
506
  >
507
507
  <span
508
- data-offset-key="4:0"
508
+ data-offset-key="3:0"
509
509
  data-slate-leaf="true"
510
510
  >
511
511
  <span>
@@ -4,6 +4,7 @@ import PropTypes from "prop-types";
4
4
  import { connect } from "react-redux";
5
5
  import { Button, Divider } from "semantic-ui-react";
6
6
  import { FormattedMessage } from "react-intl";
7
+ import { HistoryBackButton } from "@truedat/core/components";
7
8
  import {
8
9
  createRelation,
9
10
  clearSelectedRelationTags,
@@ -12,10 +13,6 @@ import { makeTagOptionsSelector } from "@truedat/core/selectors";
12
13
  import { linkTo } from "@truedat/core/routes";
13
14
  import IngestsSelector from "../../components/IngestsSelector";
14
15
 
15
- const HistoryBackButton = React.lazy(() =>
16
- import("@truedat/core/components/HistoryBackButton")
17
- );
18
-
19
16
  const TagTypeSelector = React.lazy(() =>
20
17
  import("@truedat/lm/components/TagTypeSelector")
21
18
  );
@@ -21,7 +21,7 @@ exports[`<IngestToIngestForm /> matches the latest snapshot 1`] = `
21
21
  onClick={[Function]}
22
22
  primary={true}
23
23
  />
24
- <lazy
24
+ <HistoryBackButton
25
25
  content={
26
26
  <Memo(MemoizedFormattedMessage)
27
27
  id="actions.cancel"