@thanh01.pmt/interactive-quiz-kit 1.0.81 → 1.0.82

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/dist/ai.cjs CHANGED
@@ -2613,17 +2613,13 @@ TopicDataService.HEADER_MAP = {
2613
2613
  "LO Description": "description",
2614
2614
  "Subject": "subject",
2615
2615
  "Subject Code": "subjectCode",
2616
- // New
2617
2616
  "Category": "category",
2618
2617
  "Category Code": "categoryCode",
2619
- // New
2620
2618
  "Topic": "topic",
2621
2619
  "Topic Code": "topicCode",
2622
- // New
2623
2620
  "Keywords": "keywords",
2624
2621
  "Grade": "grade",
2625
2622
  "Grade Code": "gradeCode",
2626
- // New
2627
2623
  "STEM Element(s)": "stemElements",
2628
2624
  "Bloom\u2019s Level(s) Guideline": "bloomLevelsGuideline"
2629
2625
  };
package/dist/ai.mjs CHANGED
@@ -2611,17 +2611,13 @@ TopicDataService.HEADER_MAP = {
2611
2611
  "LO Description": "description",
2612
2612
  "Subject": "subject",
2613
2613
  "Subject Code": "subjectCode",
2614
- // New
2615
2614
  "Category": "category",
2616
2615
  "Category Code": "categoryCode",
2617
- // New
2618
2616
  "Topic": "topic",
2619
2617
  "Topic Code": "topicCode",
2620
- // New
2621
2618
  "Keywords": "keywords",
2622
2619
  "Grade": "grade",
2623
2620
  "Grade Code": "gradeCode",
2624
- // New
2625
2621
  "STEM Element(s)": "stemElements",
2626
2622
  "Bloom\u2019s Level(s) Guideline": "bloomLevelsGuideline"
2627
2623
  };
@@ -8949,17 +8949,13 @@ TopicDataService.HEADER_MAP = {
8949
8949
  "LO Description": "description",
8950
8950
  "Subject": "subject",
8951
8951
  "Subject Code": "subjectCode",
8952
- // New
8953
8952
  "Category": "category",
8954
8953
  "Category Code": "categoryCode",
8955
- // New
8956
8954
  "Topic": "topic",
8957
8955
  "Topic Code": "topicCode",
8958
- // New
8959
8956
  "Keywords": "keywords",
8960
8957
  "Grade": "grade",
8961
8958
  "Grade Code": "gradeCode",
8962
- // New
8963
8959
  "STEM Element(s)": "stemElements",
8964
8960
  "Bloom\u2019s Level(s) Guideline": "bloomLevelsGuideline"
8965
8961
  };
@@ -77266,7 +77262,11 @@ function LearningObjectiveManager({
77266
77262
  };
77267
77263
  const handleEditItem = (item) => {
77268
77264
  setCurrentItem(item);
77269
- setFormState(item);
77265
+ const subject = subjects.find((s2) => s2.code === item.subjectCode);
77266
+ setFormState({
77267
+ ...item,
77268
+ subject: subject ? subject.name : item.subject || ""
77269
+ });
77270
77270
  setIsDialogOpen(true);
77271
77271
  };
77272
77272
  const handleDeleteItem = (item) => {
@@ -77367,7 +77367,8 @@ function LearningObjectiveManager({
77367
77367
  if (typeof rec["LO ID"] === "string" && rec["LO ID"].trim() && typeof rec["LO Description"] === "string" && rec["LO Description"].trim()) {
77368
77368
  acc.valid.push({
77369
77369
  code: rec["LO ID"],
77370
- name: rec["LO Name"],
77370
+ name: rec["LO Name"] || rec["LO Description"],
77371
+ // Use description if name is missing
77371
77372
  description: rec["LO Description"],
77372
77373
  subject: rec["Subject"] || "",
77373
77374
  subjectCode: rec["Subject Code"] || rec["Subject"],
@@ -8884,17 +8884,13 @@ TopicDataService.HEADER_MAP = {
8884
8884
  "LO Description": "description",
8885
8885
  "Subject": "subject",
8886
8886
  "Subject Code": "subjectCode",
8887
- // New
8888
8887
  "Category": "category",
8889
8888
  "Category Code": "categoryCode",
8890
- // New
8891
8889
  "Topic": "topic",
8892
8890
  "Topic Code": "topicCode",
8893
- // New
8894
8891
  "Keywords": "keywords",
8895
8892
  "Grade": "grade",
8896
8893
  "Grade Code": "gradeCode",
8897
- // New
8898
8894
  "STEM Element(s)": "stemElements",
8899
8895
  "Bloom\u2019s Level(s) Guideline": "bloomLevelsGuideline"
8900
8896
  };
@@ -77201,7 +77197,11 @@ function LearningObjectiveManager({
77201
77197
  };
77202
77198
  const handleEditItem = (item) => {
77203
77199
  setCurrentItem(item);
77204
- setFormState(item);
77200
+ const subject = subjects.find((s2) => s2.code === item.subjectCode);
77201
+ setFormState({
77202
+ ...item,
77203
+ subject: subject ? subject.name : item.subject || ""
77204
+ });
77205
77205
  setIsDialogOpen(true);
77206
77206
  };
77207
77207
  const handleDeleteItem = (item) => {
@@ -77302,7 +77302,8 @@ function LearningObjectiveManager({
77302
77302
  if (typeof rec["LO ID"] === "string" && rec["LO ID"].trim() && typeof rec["LO Description"] === "string" && rec["LO Description"].trim()) {
77303
77303
  acc.valid.push({
77304
77304
  code: rec["LO ID"],
77305
- name: rec["LO Name"],
77305
+ name: rec["LO Name"] || rec["LO Description"],
77306
+ // Use description if name is missing
77306
77307
  description: rec["LO Description"],
77307
77308
  subject: rec["Subject"] || "",
77308
77309
  subjectCode: rec["Subject Code"] || rec["Subject"],
package/dist/react-ui.cjs CHANGED
@@ -102026,17 +102026,13 @@ TopicDataService.HEADER_MAP = {
102026
102026
  "LO Description": "description",
102027
102027
  "Subject": "subject",
102028
102028
  "Subject Code": "subjectCode",
102029
- // New
102030
102029
  "Category": "category",
102031
102030
  "Category Code": "categoryCode",
102032
- // New
102033
102031
  "Topic": "topic",
102034
102032
  "Topic Code": "topicCode",
102035
- // New
102036
102033
  "Keywords": "keywords",
102037
102034
  "Grade": "grade",
102038
102035
  "Grade Code": "gradeCode",
102039
- // New
102040
102036
  "STEM Element(s)": "stemElements",
102041
102037
  "Bloom\u2019s Level(s) Guideline": "bloomLevelsGuideline"
102042
102038
  };
@@ -139564,7 +139560,11 @@ function LearningObjectiveManager({
139564
139560
  };
139565
139561
  const handleEditItem = (item) => {
139566
139562
  setCurrentItem(item);
139567
- setFormState(item);
139563
+ const subject = subjects.find((s4) => s4.code === item.subjectCode);
139564
+ setFormState({
139565
+ ...item,
139566
+ subject: subject ? subject.name : item.subject || ""
139567
+ });
139568
139568
  setIsDialogOpen(true);
139569
139569
  };
139570
139570
  const handleDeleteItem = (item) => {
@@ -139665,7 +139665,8 @@ function LearningObjectiveManager({
139665
139665
  if (typeof rec["LO ID"] === "string" && rec["LO ID"].trim() && typeof rec["LO Description"] === "string" && rec["LO Description"].trim()) {
139666
139666
  acc.valid.push({
139667
139667
  code: rec["LO ID"],
139668
- name: rec["LO Name"],
139668
+ name: rec["LO Name"] || rec["LO Description"],
139669
+ // Use description if name is missing
139669
139670
  description: rec["LO Description"],
139670
139671
  subject: rec["Subject"] || "",
139671
139672
  subjectCode: rec["Subject Code"] || rec["Subject"],
package/dist/react-ui.mjs CHANGED
@@ -101960,17 +101960,13 @@ TopicDataService.HEADER_MAP = {
101960
101960
  "LO Description": "description",
101961
101961
  "Subject": "subject",
101962
101962
  "Subject Code": "subjectCode",
101963
- // New
101964
101963
  "Category": "category",
101965
101964
  "Category Code": "categoryCode",
101966
- // New
101967
101965
  "Topic": "topic",
101968
101966
  "Topic Code": "topicCode",
101969
- // New
101970
101967
  "Keywords": "keywords",
101971
101968
  "Grade": "grade",
101972
101969
  "Grade Code": "gradeCode",
101973
- // New
101974
101970
  "STEM Element(s)": "stemElements",
101975
101971
  "Bloom\u2019s Level(s) Guideline": "bloomLevelsGuideline"
101976
101972
  };
@@ -139498,7 +139494,11 @@ function LearningObjectiveManager({
139498
139494
  };
139499
139495
  const handleEditItem = (item) => {
139500
139496
  setCurrentItem(item);
139501
- setFormState(item);
139497
+ const subject = subjects.find((s4) => s4.code === item.subjectCode);
139498
+ setFormState({
139499
+ ...item,
139500
+ subject: subject ? subject.name : item.subject || ""
139501
+ });
139502
139502
  setIsDialogOpen(true);
139503
139503
  };
139504
139504
  const handleDeleteItem = (item) => {
@@ -139599,7 +139599,8 @@ function LearningObjectiveManager({
139599
139599
  if (typeof rec["LO ID"] === "string" && rec["LO ID"].trim() && typeof rec["LO Description"] === "string" && rec["LO Description"].trim()) {
139600
139600
  acc.valid.push({
139601
139601
  code: rec["LO ID"],
139602
- name: rec["LO Name"],
139602
+ name: rec["LO Name"] || rec["LO Description"],
139603
+ // Use description if name is missing
139603
139604
  description: rec["LO Description"],
139604
139605
  subject: rec["Subject"] || "",
139605
139606
  subjectCode: rec["Subject Code"] || rec["Subject"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thanh01.pmt/interactive-quiz-kit",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "description": "A comprehensive library for creating, managing, and playing interactive quizzes, with AI generation and SCORM support.",
5
5
  "keywords": [
6
6
  "react",