optimized-react-component-library-xyz123 0.3.1 → 0.4.1

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/index.d.mts CHANGED
@@ -58,6 +58,7 @@ interface IQuestion {
58
58
  step?: number;
59
59
  categoryLabel?: string;
60
60
  categoryDescription?: string;
61
+ legend?: string;
61
62
  hideCategory?: boolean;
62
63
  questionLabel?: string;
63
64
  previewLabel?: string;
@@ -104,6 +105,7 @@ interface IStepQuestionData {
104
105
  visible?: boolean;
105
106
  isDisplayed?: boolean;
106
107
  category: string;
108
+ categoryDescription: string;
107
109
  questionGroups: {
108
110
  questionGroupId: string;
109
111
  questionGroupType: string;
package/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface IQuestion {
58
58
  step?: number;
59
59
  categoryLabel?: string;
60
60
  categoryDescription?: string;
61
+ legend?: string;
61
62
  hideCategory?: boolean;
62
63
  questionLabel?: string;
63
64
  previewLabel?: string;
@@ -104,6 +105,7 @@ interface IStepQuestionData {
104
105
  visible?: boolean;
105
106
  isDisplayed?: boolean;
106
107
  category: string;
108
+ categoryDescription: string;
107
109
  questionGroups: {
108
110
  questionGroupId: string;
109
111
  questionGroupType: string;
package/dist/index.js CHANGED
@@ -1371,7 +1371,7 @@ function buildStepCategoryGroupQuestionStructure(questions, steps, validationErr
1371
1371
  questionGroupId: groupId,
1372
1372
  questionGroupType: questions2[0].questionGroupType,
1373
1373
  questions: questions2,
1374
- legend: questions2[0].categoryDescription
1374
+ legend: questions2[0].legend
1375
1375
  });
1376
1376
  }
1377
1377
  const isVisible = questionGroups.some(
@@ -1379,6 +1379,7 @@ function buildStepCategoryGroupQuestionStructure(questions, steps, validationErr
1379
1379
  );
1380
1380
  categories.push({
1381
1381
  category,
1382
+ categoryDescription: questionGroups[0].questions[0].categoryDescription || "",
1382
1383
  visible: isVisible,
1383
1384
  isDisplayed: isVisible,
1384
1385
  questionGroups
@@ -1655,6 +1656,7 @@ var makeFormSelectors = (selectSlice) => {
1655
1656
  categoryLabel: languageSupport.categoryLabel,
1656
1657
  categoryDescription: languageSupport.categoryDescription,
1657
1658
  questionLabel: languageSupport.questionLabel,
1659
+ legend: languageSupport.legend,
1658
1660
  previewLabel: languageSupport.previewLabel,
1659
1661
  aboutText: languageSupport.aboutText,
1660
1662
  options: languageSupport.options,