optimized-react-component-library-xyz123 0.32.2 → 0.33.2

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
@@ -10,6 +10,7 @@ interface IApplicationContent {
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
11
  pageTitle?: string;
12
12
  textblocks?: Array<ITextBlock>;
13
+ textAboveStartButton?: string;
13
14
  languageSupport: [
14
15
  {
15
16
  language: string;
@@ -18,6 +19,7 @@ interface IApplicationContent {
18
19
  linksForMoreInfo: Array<IPTSLink>;
19
20
  pageTitle: string;
20
21
  textblocks: Array<ITextBlock>;
22
+ textAboveStartButton?: string;
21
23
  }
22
24
  ];
23
25
  }
@@ -27,6 +29,7 @@ interface ITextBlock {
27
29
  body?: string;
28
30
  linksForMoreInfo?: Array<IPTSLink>;
29
31
  pageTitle?: string;
32
+ textAboveStartButton?: string;
30
33
  }
31
34
  interface IFormState {
32
35
  applicationContent: IApplicationContent;
@@ -37,7 +40,8 @@ interface IFormState {
37
40
  }
38
41
  interface IOption {
39
42
  label: string;
40
- value: string;
43
+ value?: string;
44
+ id?: string;
41
45
  }
42
46
  interface IPTSLink {
43
47
  title: string;
@@ -113,11 +117,22 @@ interface IStepQuestionData {
113
117
  }[];
114
118
  }[];
115
119
  }
120
+ interface IAppSettingsCookies {
121
+ useCookies: boolean;
122
+ cookieName: string;
123
+ cookieChoiseKey: string;
124
+ }
125
+ interface IAppSettings {
126
+ appUsesLanguage: boolean;
127
+ appUsesNavigation: boolean;
128
+ appCookies?: IAppSettingsCookies;
129
+ }
116
130
 
117
131
  interface RadioProps {
118
132
  question: IQuestion;
119
133
  handleQuestionInputChange: any;
120
134
  showPreview?: boolean;
135
+ activatedLanguage?: string;
121
136
  }
122
137
 
123
138
  declare const InputRadio: FC<RadioProps>;
@@ -435,6 +450,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
435
450
  linksForMoreInfo: never[];
436
451
  pageTitle: string;
437
452
  textblocks: never[];
453
+ textAboveStartButton: string;
438
454
  languageSupport?: undefined;
439
455
  } | {
440
456
  headline: any;
@@ -443,6 +459,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
443
459
  pageTitle: any;
444
460
  textblocks: any;
445
461
  languageSupport: any;
462
+ textAboveStartButton: any;
446
463
  }) & {
447
464
  clearCache: () => void;
448
465
  resultsCount: () => number;
@@ -454,6 +471,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
454
471
  linksForMoreInfo: never[];
455
472
  pageTitle: string;
456
473
  textblocks: never[];
474
+ textAboveStartButton: string;
457
475
  languageSupport?: undefined;
458
476
  } | {
459
477
  headline: any;
@@ -462,6 +480,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
462
480
  pageTitle: any;
463
481
  textblocks: any;
464
482
  languageSupport: any;
483
+ textAboveStartButton: any;
465
484
  };
466
485
  memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
467
486
  headline: string;
@@ -469,6 +488,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
469
488
  linksForMoreInfo: never[];
470
489
  pageTitle: string;
471
490
  textblocks: never[];
491
+ textAboveStartButton: string;
472
492
  languageSupport?: undefined;
473
493
  } | {
474
494
  headline: any;
@@ -477,6 +497,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
477
497
  pageTitle: any;
478
498
  textblocks: any;
479
499
  languageSupport: any;
500
+ textAboveStartButton: any;
480
501
  }) & {
481
502
  clearCache: () => void;
482
503
  resultsCount: () => number;
@@ -488,6 +509,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
488
509
  linksForMoreInfo: never[];
489
510
  pageTitle: string;
490
511
  textblocks: never[];
512
+ textAboveStartButton: string;
491
513
  languageSupport?: undefined;
492
514
  } | {
493
515
  headline: any;
@@ -496,6 +518,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
496
518
  pageTitle: any;
497
519
  textblocks: any;
498
520
  languageSupport: any;
521
+ textAboveStartButton: any;
499
522
  };
500
523
  dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
501
524
  recomputations: () => number;
@@ -727,6 +750,7 @@ interface CookieBannerProps {
727
750
  onClose?: () => void;
728
751
  acceptCookies: () => void;
729
752
  rejectCookies: () => void;
753
+ activatedLanguage?: string;
730
754
  }
731
755
 
732
756
  declare const CookieBanner: React$1.FC<CookieBannerProps>;
@@ -752,7 +776,10 @@ interface ModalProps {
752
776
 
753
777
  declare const Modal: FC<ModalProps>;
754
778
 
755
- declare const SkipLink: FC;
779
+ type SkipLinkProps = {
780
+ activatedLanguage?: string;
781
+ };
782
+ declare const SkipLink: FC<SkipLinkProps>;
756
783
 
757
784
  interface PrincipleOfPublicityProps {
758
785
  activatedLanguage?: string;
@@ -778,6 +805,7 @@ interface StartApplicationButtonProps {
778
805
  onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
779
806
  label?: string;
780
807
  className?: string;
808
+ activatedLanguage?: string;
781
809
  }
782
810
  /**
783
811
  * En standardiserad knapp för att starta e-tjänsten.
@@ -785,6 +813,7 @@ interface StartApplicationButtonProps {
785
813
  * @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
786
814
  * @param {string} label - Text som visas på knappen.
787
815
  * @param {string} className - Extra CSS-klasser för knappen.
816
+ * @param {string} activatedLanguage - Aktiverat språk.
788
817
  */
789
818
  declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
790
819
 
@@ -845,14 +874,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
845
874
 
846
875
  interface FormStatusMessagesProps {
847
876
  formStatus: string;
877
+ activatedLanguage?: string;
848
878
  }
849
879
  /**
850
880
  * Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
851
881
  * failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
852
882
  *
853
883
  * @param {string} formStatus Nuvarande status för formuläret.
884
+ * @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
854
885
  *
855
886
  */
856
887
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
857
888
 
858
- export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, 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, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
889
+ export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ interface IApplicationContent {
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
11
  pageTitle?: string;
12
12
  textblocks?: Array<ITextBlock>;
13
+ textAboveStartButton?: string;
13
14
  languageSupport: [
14
15
  {
15
16
  language: string;
@@ -18,6 +19,7 @@ interface IApplicationContent {
18
19
  linksForMoreInfo: Array<IPTSLink>;
19
20
  pageTitle: string;
20
21
  textblocks: Array<ITextBlock>;
22
+ textAboveStartButton?: string;
21
23
  }
22
24
  ];
23
25
  }
@@ -27,6 +29,7 @@ interface ITextBlock {
27
29
  body?: string;
28
30
  linksForMoreInfo?: Array<IPTSLink>;
29
31
  pageTitle?: string;
32
+ textAboveStartButton?: string;
30
33
  }
31
34
  interface IFormState {
32
35
  applicationContent: IApplicationContent;
@@ -37,7 +40,8 @@ interface IFormState {
37
40
  }
38
41
  interface IOption {
39
42
  label: string;
40
- value: string;
43
+ value?: string;
44
+ id?: string;
41
45
  }
42
46
  interface IPTSLink {
43
47
  title: string;
@@ -113,11 +117,22 @@ interface IStepQuestionData {
113
117
  }[];
114
118
  }[];
115
119
  }
120
+ interface IAppSettingsCookies {
121
+ useCookies: boolean;
122
+ cookieName: string;
123
+ cookieChoiseKey: string;
124
+ }
125
+ interface IAppSettings {
126
+ appUsesLanguage: boolean;
127
+ appUsesNavigation: boolean;
128
+ appCookies?: IAppSettingsCookies;
129
+ }
116
130
 
117
131
  interface RadioProps {
118
132
  question: IQuestion;
119
133
  handleQuestionInputChange: any;
120
134
  showPreview?: boolean;
135
+ activatedLanguage?: string;
121
136
  }
122
137
 
123
138
  declare const InputRadio: FC<RadioProps>;
@@ -435,6 +450,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
435
450
  linksForMoreInfo: never[];
436
451
  pageTitle: string;
437
452
  textblocks: never[];
453
+ textAboveStartButton: string;
438
454
  languageSupport?: undefined;
439
455
  } | {
440
456
  headline: any;
@@ -443,6 +459,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
443
459
  pageTitle: any;
444
460
  textblocks: any;
445
461
  languageSupport: any;
462
+ textAboveStartButton: any;
446
463
  }) & {
447
464
  clearCache: () => void;
448
465
  resultsCount: () => number;
@@ -454,6 +471,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
454
471
  linksForMoreInfo: never[];
455
472
  pageTitle: string;
456
473
  textblocks: never[];
474
+ textAboveStartButton: string;
457
475
  languageSupport?: undefined;
458
476
  } | {
459
477
  headline: any;
@@ -462,6 +480,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
462
480
  pageTitle: any;
463
481
  textblocks: any;
464
482
  languageSupport: any;
483
+ textAboveStartButton: any;
465
484
  };
466
485
  memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
467
486
  headline: string;
@@ -469,6 +488,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
469
488
  linksForMoreInfo: never[];
470
489
  pageTitle: string;
471
490
  textblocks: never[];
491
+ textAboveStartButton: string;
472
492
  languageSupport?: undefined;
473
493
  } | {
474
494
  headline: any;
@@ -477,6 +497,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
477
497
  pageTitle: any;
478
498
  textblocks: any;
479
499
  languageSupport: any;
500
+ textAboveStartButton: any;
480
501
  }) & {
481
502
  clearCache: () => void;
482
503
  resultsCount: () => number;
@@ -488,6 +509,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
488
509
  linksForMoreInfo: never[];
489
510
  pageTitle: string;
490
511
  textblocks: never[];
512
+ textAboveStartButton: string;
491
513
  languageSupport?: undefined;
492
514
  } | {
493
515
  headline: any;
@@ -496,6 +518,7 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
496
518
  pageTitle: any;
497
519
  textblocks: any;
498
520
  languageSupport: any;
521
+ textAboveStartButton: any;
499
522
  };
500
523
  dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
501
524
  recomputations: () => number;
@@ -727,6 +750,7 @@ interface CookieBannerProps {
727
750
  onClose?: () => void;
728
751
  acceptCookies: () => void;
729
752
  rejectCookies: () => void;
753
+ activatedLanguage?: string;
730
754
  }
731
755
 
732
756
  declare const CookieBanner: React$1.FC<CookieBannerProps>;
@@ -752,7 +776,10 @@ interface ModalProps {
752
776
 
753
777
  declare const Modal: FC<ModalProps>;
754
778
 
755
- declare const SkipLink: FC;
779
+ type SkipLinkProps = {
780
+ activatedLanguage?: string;
781
+ };
782
+ declare const SkipLink: FC<SkipLinkProps>;
756
783
 
757
784
  interface PrincipleOfPublicityProps {
758
785
  activatedLanguage?: string;
@@ -778,6 +805,7 @@ interface StartApplicationButtonProps {
778
805
  onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
779
806
  label?: string;
780
807
  className?: string;
808
+ activatedLanguage?: string;
781
809
  }
782
810
  /**
783
811
  * En standardiserad knapp för att starta e-tjänsten.
@@ -785,6 +813,7 @@ interface StartApplicationButtonProps {
785
813
  * @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
786
814
  * @param {string} label - Text som visas på knappen.
787
815
  * @param {string} className - Extra CSS-klasser för knappen.
816
+ * @param {string} activatedLanguage - Aktiverat språk.
788
817
  */
789
818
  declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
790
819
 
@@ -845,14 +874,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
845
874
 
846
875
  interface FormStatusMessagesProps {
847
876
  formStatus: string;
877
+ activatedLanguage?: string;
848
878
  }
849
879
  /**
850
880
  * Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
851
881
  * failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
852
882
  *
853
883
  * @param {string} formStatus Nuvarande status för formuläret.
884
+ * @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
854
885
  *
855
886
  */
856
887
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
857
888
 
858
- export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, 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, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
889
+ export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };