@truedat/bg 6.2.1 → 6.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "6.2.1",
3
+ "version": "6.2.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": "6.2.1",
37
+ "@truedat/test": "6.2.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,9 +86,9 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "6.2.1",
90
- "@truedat/df": "6.2.1",
91
- "@truedat/lm": "6.2.1",
89
+ "@truedat/core": "6.2.2",
90
+ "@truedat/df": "6.2.2",
91
+ "@truedat/lm": "6.2.2",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "file-saver": "^2.0.5",
94
94
  "moment": "^2.29.4",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 2.0.3 < 2.2"
113
113
  },
114
- "gitHead": "fe5372fdac1114b9f2ec5a392dbdd603e98c3d83"
114
+ "gitHead": "c3a8148f279081b110cf549b8cffed2443f6bb80"
115
115
  }
@@ -78,6 +78,12 @@ const ConceptForm = ({
78
78
  const handleOnChangeConceptContent = (content) =>
79
79
  onChangeConceptContent(concept.lang, content);
80
80
 
81
+ const applySuggestions = (suggestions) => {
82
+ onChangeConceptContent(concept.lang, {
83
+ content: { ...concept?.content, ...suggestions },
84
+ });
85
+ };
86
+
81
87
  return (
82
88
  <>
83
89
  <Form loading={loading || domainsLoading}>
@@ -128,12 +134,7 @@ const ConceptForm = ({
128
134
  <SuggestionsWidget
129
135
  requestAiSuggestion={requestAiSuggestion}
130
136
  template={template}
131
- applySuggestions={(suggestions) =>
132
- handleOnChangeConceptContent({
133
- ...concept?.content,
134
- ...suggestions,
135
- })
136
- }
137
+ applySuggestions={applySuggestions}
137
138
  isModification={true}
138
139
  />
139
140
  ) : null}