optimized-react-component-library-xyz123 0.1.124 → 0.1.126

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
@@ -6,22 +6,29 @@ import * as immer from 'immer';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  interface IApplicationContent {
9
- mainHeadline?: string;
10
- ingressBody?: string;
9
+ headline?: string;
10
+ body?: string;
11
11
  linksForMoreInfo?: Array<IPTSLink>;
12
12
  pageTitle?: string;
13
13
  textblocks?: Array<ITextBlock>;
14
14
  languageSupport: [
15
15
  {
16
16
  language: string;
17
- mainHeadline: string;
18
- ingressBody: string;
17
+ headline: string;
18
+ body: string;
19
19
  linksForMoreInfo: Array<IPTSLink>;
20
20
  pageTitle: string;
21
21
  textblocks: Array<ITextBlock>;
22
22
  }
23
23
  ];
24
24
  }
25
+ interface ITextBlock {
26
+ id?: string;
27
+ headline?: string;
28
+ body?: string;
29
+ linksForMoreInfo?: Array<IPTSLink>;
30
+ pageTitle?: string;
31
+ }
25
32
  interface IFormState {
26
33
  applicationContent: IApplicationContent;
27
34
  steps: Array<IStepObject>;
@@ -46,13 +53,6 @@ interface IStepObject {
46
53
  shortNameInPreview?: string;
47
54
  languageSupport?: Array<any>;
48
55
  }
49
- interface ITextBlock {
50
- id?: string;
51
- headline?: string;
52
- body?: string;
53
- linksForMoreInfo?: Array<IPTSLink>;
54
- pageTitle?: string;
55
- }
56
56
  interface IQuestion {
57
57
  id?: number;
58
58
  mappingId?: string;
@@ -380,14 +380,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
380
380
  linksForMoreInfo: never[];
381
381
  pageTitle: string;
382
382
  textblocks: never[];
383
+ headline?: undefined;
384
+ body?: undefined;
383
385
  languageSupport?: undefined;
384
386
  } | {
385
- mainHeadline: any;
386
- ingressBody: any;
387
+ headline: any;
388
+ body: any;
387
389
  linksForMoreInfo: any;
388
390
  pageTitle: any;
389
391
  textblocks: any;
390
392
  languageSupport: any;
393
+ mainHeadline?: undefined;
394
+ ingressBody?: undefined;
391
395
  }) & {
392
396
  clearCache: () => void;
393
397
  resultsCount: () => number;
@@ -399,14 +403,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
399
403
  linksForMoreInfo: never[];
400
404
  pageTitle: string;
401
405
  textblocks: never[];
406
+ headline?: undefined;
407
+ body?: undefined;
402
408
  languageSupport?: undefined;
403
409
  } | {
404
- mainHeadline: any;
405
- ingressBody: any;
410
+ headline: any;
411
+ body: any;
406
412
  linksForMoreInfo: any;
407
413
  pageTitle: any;
408
414
  textblocks: any;
409
415
  languageSupport: any;
416
+ mainHeadline?: undefined;
417
+ ingressBody?: undefined;
410
418
  };
411
419
  memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
412
420
  mainHeadline: string;
@@ -414,14 +422,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
414
422
  linksForMoreInfo: never[];
415
423
  pageTitle: string;
416
424
  textblocks: never[];
425
+ headline?: undefined;
426
+ body?: undefined;
417
427
  languageSupport?: undefined;
418
428
  } | {
419
- mainHeadline: any;
420
- ingressBody: any;
429
+ headline: any;
430
+ body: any;
421
431
  linksForMoreInfo: any;
422
432
  pageTitle: any;
423
433
  textblocks: any;
424
434
  languageSupport: any;
435
+ mainHeadline?: undefined;
436
+ ingressBody?: undefined;
425
437
  }) & {
426
438
  clearCache: () => void;
427
439
  resultsCount: () => number;
@@ -433,14 +445,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
433
445
  linksForMoreInfo: never[];
434
446
  pageTitle: string;
435
447
  textblocks: never[];
448
+ headline?: undefined;
449
+ body?: undefined;
436
450
  languageSupport?: undefined;
437
451
  } | {
438
- mainHeadline: any;
439
- ingressBody: any;
452
+ headline: any;
453
+ body: any;
440
454
  linksForMoreInfo: any;
441
455
  pageTitle: any;
442
456
  textblocks: any;
443
457
  languageSupport: any;
458
+ mainHeadline?: undefined;
459
+ ingressBody?: undefined;
444
460
  };
445
461
  dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
446
462
  recomputations: () => number;
@@ -659,7 +675,7 @@ interface PrincipleOfPublicityProps {
659
675
  declare const PrincipleOfPublicity: FC<PrincipleOfPublicityProps>;
660
676
 
661
677
  interface TextBodyProps {
662
- data: ITextBlock;
678
+ data: ITextBlock | IApplicationContent;
663
679
  }
664
680
 
665
681
  declare const TextBody: FC<TextBodyProps>;
@@ -718,4 +734,4 @@ interface FormStatusMessagesProps {
718
734
  */
719
735
  declare const FormStatusMessagesScreenReader: React.FC<FormStatusMessagesProps>;
720
736
 
721
- export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, InputRadio as RadioMultipleStandard, QuestionRenderer as RenderQuestion, QuestionGroup as RenderQuestionGroup, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createLanguageSlice, createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
737
+ export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createLanguageSlice, createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
package/dist/index.d.ts CHANGED
@@ -6,22 +6,29 @@ import * as immer from 'immer';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  interface IApplicationContent {
9
- mainHeadline?: string;
10
- ingressBody?: string;
9
+ headline?: string;
10
+ body?: string;
11
11
  linksForMoreInfo?: Array<IPTSLink>;
12
12
  pageTitle?: string;
13
13
  textblocks?: Array<ITextBlock>;
14
14
  languageSupport: [
15
15
  {
16
16
  language: string;
17
- mainHeadline: string;
18
- ingressBody: string;
17
+ headline: string;
18
+ body: string;
19
19
  linksForMoreInfo: Array<IPTSLink>;
20
20
  pageTitle: string;
21
21
  textblocks: Array<ITextBlock>;
22
22
  }
23
23
  ];
24
24
  }
25
+ interface ITextBlock {
26
+ id?: string;
27
+ headline?: string;
28
+ body?: string;
29
+ linksForMoreInfo?: Array<IPTSLink>;
30
+ pageTitle?: string;
31
+ }
25
32
  interface IFormState {
26
33
  applicationContent: IApplicationContent;
27
34
  steps: Array<IStepObject>;
@@ -46,13 +53,6 @@ interface IStepObject {
46
53
  shortNameInPreview?: string;
47
54
  languageSupport?: Array<any>;
48
55
  }
49
- interface ITextBlock {
50
- id?: string;
51
- headline?: string;
52
- body?: string;
53
- linksForMoreInfo?: Array<IPTSLink>;
54
- pageTitle?: string;
55
- }
56
56
  interface IQuestion {
57
57
  id?: number;
58
58
  mappingId?: string;
@@ -380,14 +380,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
380
380
  linksForMoreInfo: never[];
381
381
  pageTitle: string;
382
382
  textblocks: never[];
383
+ headline?: undefined;
384
+ body?: undefined;
383
385
  languageSupport?: undefined;
384
386
  } | {
385
- mainHeadline: any;
386
- ingressBody: any;
387
+ headline: any;
388
+ body: any;
387
389
  linksForMoreInfo: any;
388
390
  pageTitle: any;
389
391
  textblocks: any;
390
392
  languageSupport: any;
393
+ mainHeadline?: undefined;
394
+ ingressBody?: undefined;
391
395
  }) & {
392
396
  clearCache: () => void;
393
397
  resultsCount: () => number;
@@ -399,14 +403,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
399
403
  linksForMoreInfo: never[];
400
404
  pageTitle: string;
401
405
  textblocks: never[];
406
+ headline?: undefined;
407
+ body?: undefined;
402
408
  languageSupport?: undefined;
403
409
  } | {
404
- mainHeadline: any;
405
- ingressBody: any;
410
+ headline: any;
411
+ body: any;
406
412
  linksForMoreInfo: any;
407
413
  pageTitle: any;
408
414
  textblocks: any;
409
415
  languageSupport: any;
416
+ mainHeadline?: undefined;
417
+ ingressBody?: undefined;
410
418
  };
411
419
  memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
412
420
  mainHeadline: string;
@@ -414,14 +422,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
414
422
  linksForMoreInfo: never[];
415
423
  pageTitle: string;
416
424
  textblocks: never[];
425
+ headline?: undefined;
426
+ body?: undefined;
417
427
  languageSupport?: undefined;
418
428
  } | {
419
- mainHeadline: any;
420
- ingressBody: any;
429
+ headline: any;
430
+ body: any;
421
431
  linksForMoreInfo: any;
422
432
  pageTitle: any;
423
433
  textblocks: any;
424
434
  languageSupport: any;
435
+ mainHeadline?: undefined;
436
+ ingressBody?: undefined;
425
437
  }) & {
426
438
  clearCache: () => void;
427
439
  resultsCount: () => number;
@@ -433,14 +445,18 @@ declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => I
433
445
  linksForMoreInfo: never[];
434
446
  pageTitle: string;
435
447
  textblocks: never[];
448
+ headline?: undefined;
449
+ body?: undefined;
436
450
  languageSupport?: undefined;
437
451
  } | {
438
- mainHeadline: any;
439
- ingressBody: any;
452
+ headline: any;
453
+ body: any;
440
454
  linksForMoreInfo: any;
441
455
  pageTitle: any;
442
456
  textblocks: any;
443
457
  languageSupport: any;
458
+ mainHeadline?: undefined;
459
+ ingressBody?: undefined;
444
460
  };
445
461
  dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
446
462
  recomputations: () => number;
@@ -659,7 +675,7 @@ interface PrincipleOfPublicityProps {
659
675
  declare const PrincipleOfPublicity: FC<PrincipleOfPublicityProps>;
660
676
 
661
677
  interface TextBodyProps {
662
- data: ITextBlock;
678
+ data: ITextBlock | IApplicationContent;
663
679
  }
664
680
 
665
681
  declare const TextBody: FC<TextBodyProps>;
@@ -718,4 +734,4 @@ interface FormStatusMessagesProps {
718
734
  */
719
735
  declare const FormStatusMessagesScreenReader: React.FC<FormStatusMessagesProps>;
720
736
 
721
- export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, InputRadio as RadioMultipleStandard, QuestionRenderer as RenderQuestion, QuestionGroup as RenderQuestionGroup, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createLanguageSlice, createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
737
+ export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createLanguageSlice, createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
package/dist/index.js CHANGED
@@ -40,9 +40,9 @@ __export(index_exports, {
40
40
  ModalStandard: () => ModalStandard_default,
41
41
  MultipleCheckboxesStandard: () => MultipleCheckboxesStandard_default,
42
42
  PrincipleOfPublicityStandard: () => PrincipleOfPublicityStandard_default,
43
+ QuestionGroup: () => QuestionGroup_default,
44
+ QuestionRenderer: () => QuestionRenderer_default,
43
45
  RadioMultipleStandard: () => RadioMultipleStandard_default,
44
- RenderQuestion: () => QuestionRenderer_default,
45
- RenderQuestionGroup: () => QuestionGroup_default,
46
46
  SkipLinkStandard: () => SkipLinkStandard_default,
47
47
  StartApplicationButton: () => StartApplicationButton_default,
48
48
  StepperButtonsStandard: () => StepperButtonsStandard_default,
@@ -1397,8 +1397,8 @@ var makeQuestionsSelectors = (selectSlice) => {
1397
1397
  };
1398
1398
  }
1399
1399
  return {
1400
- mainHeadline: languageSupport.mainHeadline,
1401
- ingressBody: languageSupport.ingressBody,
1400
+ headline: languageSupport.headline,
1401
+ body: languageSupport.body,
1402
1402
  linksForMoreInfo: languageSupport.linksForMoreInfo,
1403
1403
  pageTitle: languageSupport.pageTitle,
1404
1404
  textblocks: languageSupport.textblocks,
@@ -2913,9 +2913,9 @@ var FormStatusMessagesScreenReader_default = FormStatusMessagesScreenReader;
2913
2913
  ModalStandard,
2914
2914
  MultipleCheckboxesStandard,
2915
2915
  PrincipleOfPublicityStandard,
2916
+ QuestionGroup,
2917
+ QuestionRenderer,
2916
2918
  RadioMultipleStandard,
2917
- RenderQuestion,
2918
- RenderQuestionGroup,
2919
2919
  SkipLinkStandard,
2920
2920
  StartApplicationButton,
2921
2921
  StepperButtonsStandard,