optimized-react-component-library-xyz123 0.1.48 → 0.1.49

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
  hideCategory?: boolean;
59
59
  questionLabel?: string;
60
60
  previewLabel?: string;
61
+ validationSummaryLabel?: string;
61
62
  hideQuestion?: boolean;
62
63
  answer?: string;
63
64
  files?: Array<File | {
package/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface IQuestion {
58
58
  hideCategory?: boolean;
59
59
  questionLabel?: string;
60
60
  previewLabel?: string;
61
+ validationSummaryLabel?: string;
61
62
  hideQuestion?: boolean;
62
63
  answer?: string;
63
64
  files?: Array<File | {
package/dist/index.js CHANGED
@@ -2797,8 +2797,9 @@ var ValidationErrorSummaryList = ({
2797
2797
  const count = filteredIds.length;
2798
2798
  const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
2799
2799
  function getQuestionLabelById(id) {
2800
+ var _a;
2800
2801
  const found = formQuestions.find((item) => item.id === id);
2801
- return found == null ? void 0 : found.questionLabel;
2802
+ return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
2802
2803
  }
2803
2804
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "pts-errorSummary-container pts-root-error", children: [
2804
2805
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
package/dist/index.mjs CHANGED
@@ -2732,8 +2732,9 @@ var ValidationErrorSummaryList = ({
2732
2732
  const count = filteredIds.length;
2733
2733
  const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
2734
2734
  function getQuestionLabelById(id) {
2735
+ var _a;
2735
2736
  const found = formQuestions.find((item) => item.id === id);
2736
- return found == null ? void 0 : found.questionLabel;
2737
+ return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
2737
2738
  }
2738
2739
  return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
2739
2740
  /* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",