l-min-components 1.7.1427 → 1.7.1429

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.1427",
3
+ "version": "1.7.1429",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -31,7 +31,8 @@ const Grammar = ({ Aidata }) => {
31
31
  const wordsFeedback = grammarFeekbackResult(
32
32
  originalText,
33
33
  feedbackCorrection,
34
- feedbacks
34
+ feedbacks,
35
+ correctText
35
36
  );
36
37
 
37
38
  const sentenceParts = renderCorrectedSentence(wordsFeedback);
@@ -71,7 +72,9 @@ const Grammar = ({ Aidata }) => {
71
72
  }}
72
73
  >
73
74
  {/* This will only be true for words with a correction (and a position) */}
74
- {word?.position && <span>{word?.position}</span>}
75
+ {word?.feedbackPosition && (
76
+ <span>{word?.feedbackPosition}</span>
77
+ )}
75
78
  {word?.text}
76
79
  </span>
77
80
  ))}
@@ -102,7 +105,8 @@ const Grammar = ({ Aidata }) => {
102
105
  <div className="failed">
103
106
  <RedX />
104
107
  <span>
105
- <span>{selectedWord?.position}</span> {selectedWord?.text}
108
+ <span>{selectedWord?.feedbackPosition}</span>{" "}
109
+ {selectedWord?.text}
106
110
  </span>
107
111
  </div>
108
112
  <div className="correct">
@@ -217,9 +217,24 @@ const SpeechAnalysis = ({
217
217
  </p>
218
218
 
219
219
  {isExcellent ? (
220
- <p className="good">
221
- Perfect! you pronounced this sound correctly
222
- </p>
220
+ item?.["Phoneme Feedback Summary"] &&
221
+ item?.["Phoneme Feedback"] ? (
222
+ <div className="feedback">
223
+ <div className="feedback_header">
224
+ <div className="feedback_header-content">
225
+ {item?.["Phoneme Feedback Summary"] || ""}
226
+ </div>
227
+ </div>
228
+ <InlineClampedText
229
+ key={item?.id}
230
+ text={item?.["Phoneme Feedback"] || ""}
231
+ />
232
+ </div>
233
+ ) : (
234
+ <p className="good">
235
+ Perfect! you pronounced this sound correctly
236
+ </p>
237
+ )
223
238
  ) : (
224
239
  <div className="feedback">
225
240
  <div className="feedback_header">