l-min-components 1.7.1426 → 1.7.1428

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.1426",
3
+ "version": "1.7.1428",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -34,6 +34,8 @@ const Grammar = ({ Aidata }) => {
34
34
  feedbacks
35
35
  );
36
36
 
37
+ console.log(JSON.stringify(wordsFeedback));
38
+
37
39
  const sentenceParts = renderCorrectedSentence(wordsFeedback);
38
40
 
39
41
  useEffect(() => {
@@ -71,7 +73,9 @@ const Grammar = ({ Aidata }) => {
71
73
  }}
72
74
  >
73
75
  {/* This will only be true for words with a correction (and a position) */}
74
- {word?.position && <span>{word?.position}</span>}
76
+ {word?.feedbackPosition && (
77
+ <span>{word?.feedbackPosition}</span>
78
+ )}
75
79
  {word?.text}
76
80
  </span>
77
81
  ))}
@@ -102,7 +106,8 @@ const Grammar = ({ Aidata }) => {
102
106
  <div className="failed">
103
107
  <RedX />
104
108
  <span>
105
- <span>{selectedWord?.position}</span> {selectedWord?.text}
109
+ <span>{selectedWord?.feedbackPosition}</span>{" "}
110
+ {selectedWord?.text}
106
111
  </span>
107
112
  </div>
108
113
  <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">