optimized-react-component-library-xyz123 0.31.6 → 0.31.8

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.js CHANGED
@@ -1679,7 +1679,7 @@ var makeFormSelectors = (selectSlice) => {
1679
1679
  pageTitle: languageSupport.pageTitle,
1680
1680
  textblocks: languageSupport.textblocks,
1681
1681
  languageSupport: applicationContent == null ? void 0 : applicationContent.languageSupport,
1682
- textAboveStartButton: languageSupport.textAboveStartButton
1682
+ textAboveStartButton: languageSupport == null ? void 0 : languageSupport.textAboveStartButton
1683
1683
  };
1684
1684
  }
1685
1685
  );
@@ -2834,8 +2834,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
2834
2834
  data.linksForMoreInfo[0].title
2835
2835
  ]
2836
2836
  }
2837
- ),
2838
- data.textAboveStartButton && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "pts-instruction-before-start-text", dangerouslySetInnerHTML: { __html: import_dompurify3.default.sanitize(data.textAboveStartButton) } })
2837
+ )
2839
2838
  ]
2840
2839
  }
2841
2840
  );
@@ -2900,7 +2899,6 @@ var PrincipleOfPublicityStandard_default = PrincipleOfPublicity;
2900
2899
  var import_dompurify4 = __toESM(require("dompurify"));
2901
2900
  var import_jsx_runtime24 = require("react/jsx-runtime");
2902
2901
  var TextBody = ({ data }) => {
2903
- console.log("textBody", data);
2904
2902
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "pts-textBody-container", children: [
2905
2903
  data.body && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify4.default.sanitize(data.body) } }),
2906
2904
  data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
@@ -2962,7 +2960,13 @@ var TextBody = ({ data }) => {
2962
2960
  ]
2963
2961
  }
2964
2962
  ),
2965
- data.textAboveStartButton && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "pts-instruction-before-start-text", dangerouslySetInnerHTML: { __html: import_dompurify4.default.sanitize(data.textAboveStartButton) } })
2963
+ data.textAboveStartButton && data.textAboveStartButton.length > 0 && /<\/?[a-z][\s\S]*>/i.test(data.textAboveStartButton) ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2964
+ "div",
2965
+ {
2966
+ className: "pts-instruction-before-start-text",
2967
+ dangerouslySetInnerHTML: { __html: data.textAboveStartButton }
2968
+ }
2969
+ ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "pts-instruction-before-start-text", children: data.textAboveStartButton })
2966
2970
  ] });
2967
2971
  };
2968
2972
  var TextBody_default = TextBody;