@truedat/ie 4.30.7 → 4.31.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.31.1] 2021-10-20
4
+
5
+ ### Added
6
+
7
+ - [TD-4124] Dependent domain field in template content
8
+
3
9
  ## [4.30.0] 2021-10-06
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/ie",
3
- "version": "4.30.7",
3
+ "version": "4.31.3",
4
4
  "description": "Truedat Web Ingests",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -30,7 +30,7 @@
30
30
  "@babel/plugin-transform-modules-commonjs": "^7.15.0",
31
31
  "@babel/preset-env": "^7.15.0",
32
32
  "@babel/preset-react": "^7.14.5",
33
- "@truedat/test": "4.30.7",
33
+ "@truedat/test": "4.31.3",
34
34
  "babel-jest": "^27.0.6",
35
35
  "babel-plugin-dynamic-import-node": "^2.3.3",
36
36
  "babel-plugin-lodash": "^3.3.4",
@@ -79,8 +79,8 @@
79
79
  ]
80
80
  },
81
81
  "dependencies": {
82
- "@truedat/core": "4.30.7",
83
- "@truedat/df": "4.30.7",
82
+ "@truedat/core": "4.31.3",
83
+ "@truedat/df": "4.31.3",
84
84
  "file-saver": "^2.0.5",
85
85
  "moment": "^2.24.0",
86
86
  "path-to-regexp": "^1.7.0",
@@ -99,5 +99,5 @@
99
99
  "react-dom": ">= 16.8.6 < 17",
100
100
  "semantic-ui-react": ">= 0.88.2 < 2.1"
101
101
  },
102
- "gitHead": "5d259eef9b6f85b4c763bdda618fb6beb92fe635"
102
+ "gitHead": "e4563a736dc70e2bfcdba22d9c820f1b34250b36"
103
103
  }
@@ -110,7 +110,10 @@ export class IngestDuplicate extends React.Component {
110
110
  this.state
111
111
  );
112
112
 
113
- const content = _.flow(_.prop("content"), applyTemplate)(this.state);
113
+ const content = applyTemplate(
114
+ this.state?.content,
115
+ ingestVersion?.domain_id
116
+ );
114
117
 
115
118
  ingestAction({
116
119
  action: actionKey,
@@ -84,9 +84,14 @@ export class IngestEdit extends React.Component {
84
84
  !_.isUndefined(this.props.ingest.content)
85
85
  ) {
86
86
  const { content, domain, name, description, type } = this.props.ingest;
87
- this.setState({ content, name, description, type });
88
- const { selectDomain, selectTemplate, template } = this.props;
89
87
  const domain_id = domain.id;
88
+ this.setState({
89
+ content,
90
+ name,
91
+ description,
92
+ type,
93
+ });
94
+ const { selectDomain, selectTemplate, template } = this.props;
90
95
  selectDomain({ id: domain_id });
91
96
  selectTemplate({ id: template.id });
92
97
  }
@@ -113,7 +118,8 @@ export class IngestEdit extends React.Component {
113
118
  const { action, applyTemplate, ingestAction } = this.props;
114
119
  const ingestVersion = _.pick(["description", "name", "type"])(this.state);
115
120
 
116
- const content = _.flow(_.prop("content"), applyTemplate)(this.state);
121
+ const domain_id = this.props?.ingest?.domain?.id;
122
+ const content = applyTemplate(this.state?.content, domain_id);
117
123
 
118
124
  ingestAction({
119
125
  action: actionKey,
@@ -135,6 +141,7 @@ export class IngestEdit extends React.Component {
135
141
  templateLoading ||
136
142
  (action && action.href && ingestActionLoading === action.href);
137
143
  const { content, name, description } = this.state;
144
+
138
145
  if (_.isUndefined(content) || _.isEmpty(template)) {
139
146
  return null;
140
147
  }
@@ -55,7 +55,7 @@ export class IngestForm extends React.Component {
55
55
  static propTypes = {
56
56
  action: PropTypes.object,
57
57
  applyTemplate: PropTypes.func,
58
-
58
+ ingestAction: PropTypes.func,
59
59
  ingestActionLoading: PropTypes.string,
60
60
  intl: PropTypes.object,
61
61
  selectDomain: PropTypes.func,
@@ -125,7 +125,10 @@ export class IngestForm extends React.Component {
125
125
  this.state
126
126
  );
127
127
 
128
- const content = _.flow(_.prop("content"), applyTemplate)(this.state);
128
+ const content = applyTemplate(
129
+ this.state?.content,
130
+ ingestVersion?.domain_id
131
+ );
129
132
 
130
133
  ingestAction({
131
134
  action: actionKey,