l-min-components 1.7.1440 → 1.7.1441

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": "l-min-components",
3
- "version": "1.7.1440",
3
+ "version": "1.7.1441",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -12,7 +12,7 @@ import EvalutionFeedback from "./EvalutionFeedback";
12
12
  import GreenAIcon from "../icons/greenAIcon";
13
13
  import YellowAIcon from "../icons/yellowAIcon copy";
14
14
 
15
- const Evaluation = ({ Aidata }) => {
15
+ const Evaluation = ({ Aidata, isPersonal }) => {
16
16
  const [selected, setSelected] = useState(null);
17
17
 
18
18
  const optiomData = Aidata?.data?.optionData;
@@ -59,6 +59,7 @@ const Evaluation = ({ Aidata }) => {
59
59
  key={selectSection?.id}
60
60
  withBorder
61
61
  highlightText={selectSection?.data?.feedback || ""}
62
+ isPersonal={isPersonal}
62
63
  />
63
64
  <EvalutionFeedback
64
65
  title="Improvements"
@@ -10,6 +10,8 @@ const EvalutionFeedback = ({
10
10
  hideWarning = false,
11
11
  highlightText = "",
12
12
  withBorder = false,
13
+
14
+ isPersonal,
13
15
  }) => {
14
16
  const [text, setWord] = useState(null);
15
17
 
@@ -23,7 +25,7 @@ const EvalutionFeedback = ({
23
25
  <WarningIcon />
24
26
  <p>Introduced words are highlighted in green</p>
25
27
  </div>
26
- ) : (
28
+ ) : isPersonal ? (
27
29
  <TranslateDropdown
28
30
  loading={translateLangData?.loading}
29
31
  onChange={async (lang) => {
@@ -43,7 +45,7 @@ const EvalutionFeedback = ({
43
45
  }
44
46
  }}
45
47
  />
46
- )}
48
+ ) : null}
47
49
  </Header>
48
50
  <HighlightedText
49
51
  dangerouslySetInnerHTML={{ __html: text || highlightText }}
@@ -220,7 +220,10 @@ const FullAnalysis = ({ data, onClose, accountType }) => {
220
220
  <Tabs options={tabs} selected={selected} onChange={setSelected} />
221
221
  )}
222
222
  {selectedModel?.id === "logic_evaluation" && (
223
- <Evaluation Aidata={selectedModel} />
223
+ <Evaluation
224
+ Aidata={selectedModel}
225
+ isPersonal={accountType === "personal"}
226
+ />
224
227
  )}
225
228
  {selectedModel?.id === "speech_analysis" && (
226
229
  <SpeechAnalysis