optimized-react-component-library-xyz123 0.1.118 → 0.1.120

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
@@ -643,4 +643,10 @@ interface CookieBannerProps {
643
643
 
644
644
  declare const CookieBanner: React.FC<CookieBannerProps>;
645
645
 
646
- export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
646
+ interface TextBodyProps {
647
+ data: ITextBlock;
648
+ }
649
+
650
+ declare const TextBody: FC<TextBodyProps>;
651
+
652
+ export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
package/dist/index.d.ts CHANGED
@@ -643,4 +643,10 @@ interface CookieBannerProps {
643
643
 
644
644
  declare const CookieBanner: React.FC<CookieBannerProps>;
645
645
 
646
- export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
646
+ interface TextBodyProps {
647
+ data: ITextBlock;
648
+ }
649
+
650
+ declare const TextBody: FC<TextBodyProps>;
651
+
652
+ export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
package/dist/index.js CHANGED
@@ -58,6 +58,7 @@ __export(index_exports, {
58
58
  StepperButtonsStandard: () => StepperButtonsStandard_default,
59
59
  StepperStandard: () => StepperStandard_default,
60
60
  TextAreaStandard: () => TextAreaStandard_default,
61
+ TextBody: () => TextBody_default,
61
62
  TextFieldStandard: () => TextFieldStandard_default,
62
63
  TextHeadlineAndBodyStandard: () => TextHeadlineAndBodyStandard_default,
63
64
  ValidationCheckAllVisibleQuestion: () => ValidationCheckAllVisibleQuestion_default,
@@ -3331,6 +3332,75 @@ var CookieBanner = ({
3331
3332
  );
3332
3333
  };
3333
3334
  var CookieBanner_default = CookieBanner;
3335
+
3336
+ // src/NewTextComponentStandard/TextBody/TextBody.tsx
3337
+ var import_dompurify7 = __toESM(require("dompurify"));
3338
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3339
+ var TextBody = ({ data }) => {
3340
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "pts-textBody-container", children: [
3341
+ data.body && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify7.default.sanitize(data.body) } }),
3342
+ data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3343
+ "a",
3344
+ {
3345
+ href: link.url,
3346
+ target: "_blank",
3347
+ rel: "noopener noreferrer",
3348
+ children: [
3349
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3350
+ "svg",
3351
+ {
3352
+ "aria-hidden": "true",
3353
+ xmlns: "http://www.w3.org/2000/svg",
3354
+ width: "12",
3355
+ height: "10",
3356
+ viewBox: "0 0 12 10",
3357
+ fill: "none",
3358
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3359
+ "path",
3360
+ {
3361
+ d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
3362
+ fill: "#ffffff"
3363
+ }
3364
+ )
3365
+ }
3366
+ ) }),
3367
+ link.title
3368
+ ]
3369
+ }
3370
+ ) }, `more-info-${index}`)) }),
3371
+ data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3372
+ "a",
3373
+ {
3374
+ href: data.linksForMoreInfo[0].url,
3375
+ target: "_blank",
3376
+ rel: "noopener noreferrer",
3377
+ "aria-label": data.linksForMoreInfo[0].ariaLabel,
3378
+ children: [
3379
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3380
+ "svg",
3381
+ {
3382
+ "aria-hidden": "true",
3383
+ xmlns: "http://www.w3.org/2000/svg",
3384
+ width: "12",
3385
+ height: "10",
3386
+ viewBox: "0 0 12 10",
3387
+ fill: "none",
3388
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3389
+ "path",
3390
+ {
3391
+ d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
3392
+ fill: "#ffffff"
3393
+ }
3394
+ )
3395
+ }
3396
+ ) }),
3397
+ data.linksForMoreInfo[0].title
3398
+ ]
3399
+ }
3400
+ )
3401
+ ] });
3402
+ };
3403
+ var TextBody_default = TextBody;
3334
3404
  // Annotate the CommonJS export names for ESM import in node:
3335
3405
  0 && (module.exports = {
3336
3406
  AddFilesStandard,
@@ -3361,6 +3431,7 @@ var CookieBanner_default = CookieBanner;
3361
3431
  StepperButtonsStandard,
3362
3432
  StepperStandard,
3363
3433
  TextAreaStandard,
3434
+ TextBody,
3364
3435
  TextFieldStandard,
3365
3436
  TextHeadlineAndBodyStandard,
3366
3437
  ValidationCheckAllVisibleQuestion,