optimized-react-component-library-xyz123 0.31.9 → 0.32.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,7 +10,6 @@ interface IApplicationContent {
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
11
  pageTitle?: string;
12
12
  textblocks?: Array<ITextBlock>;
13
- textAboveStartButton?: string;
14
13
  languageSupport: [
15
14
  {
16
15
  language: string;
@@ -19,7 +18,6 @@ interface IApplicationContent {
19
18
  linksForMoreInfo: Array<IPTSLink>;
20
19
  pageTitle: string;
21
20
  textblocks: Array<ITextBlock>;
22
- textAboveStartButton?: string;
23
21
  }
24
22
  ];
25
23
  }
@@ -29,7 +27,6 @@ interface ITextBlock {
29
27
  body?: string;
30
28
  linksForMoreInfo?: Array<IPTSLink>;
31
29
  pageTitle?: string;
32
- textAboveStartButton?: string;
33
30
  }
34
31
  interface IFormState {
35
32
  applicationContent: IApplicationContent;
@@ -116,22 +113,11 @@ interface IStepQuestionData {
116
113
  }[];
117
114
  }[];
118
115
  }
119
- interface IAppSettingsCookies {
120
- useCookies: boolean;
121
- cookieName: string;
122
- cookieChoiseKey: string;
123
- }
124
- interface IAppSettings {
125
- appUsesLanguage: boolean;
126
- appUsesNavigation: boolean;
127
- appCookies?: IAppSettingsCookies;
128
- }
129
116
 
130
117
  interface RadioProps {
131
118
  question: IQuestion;
132
119
  handleQuestionInputChange: any;
133
120
  showPreview?: boolean;
134
- activatedLanguage?: string;
135
121
  }
136
122
 
137
123
  declare const InputRadio: FC<RadioProps>;
@@ -449,7 +435,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
449
435
  linksForMoreInfo: never[];
450
436
  pageTitle: string;
451
437
  textblocks: never[];
452
- textAboveStartButton: string;
453
438
  languageSupport?: undefined;
454
439
  } | {
455
440
  headline: any;
@@ -458,7 +443,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
458
443
  pageTitle: any;
459
444
  textblocks: any;
460
445
  languageSupport: any;
461
- textAboveStartButton: any;
462
446
  }) & {
463
447
  clearCache: () => void;
464
448
  resultsCount: () => number;
@@ -470,7 +454,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
470
454
  linksForMoreInfo: never[];
471
455
  pageTitle: string;
472
456
  textblocks: never[];
473
- textAboveStartButton: string;
474
457
  languageSupport?: undefined;
475
458
  } | {
476
459
  headline: any;
@@ -479,7 +462,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
479
462
  pageTitle: any;
480
463
  textblocks: any;
481
464
  languageSupport: any;
482
- textAboveStartButton: any;
483
465
  };
484
466
  memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
485
467
  headline: string;
@@ -487,7 +469,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
487
469
  linksForMoreInfo: never[];
488
470
  pageTitle: string;
489
471
  textblocks: never[];
490
- textAboveStartButton: string;
491
472
  languageSupport?: undefined;
492
473
  } | {
493
474
  headline: any;
@@ -496,7 +477,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
496
477
  pageTitle: any;
497
478
  textblocks: any;
498
479
  languageSupport: any;
499
- textAboveStartButton: any;
500
480
  }) & {
501
481
  clearCache: () => void;
502
482
  resultsCount: () => number;
@@ -508,7 +488,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
508
488
  linksForMoreInfo: never[];
509
489
  pageTitle: string;
510
490
  textblocks: never[];
511
- textAboveStartButton: string;
512
491
  languageSupport?: undefined;
513
492
  } | {
514
493
  headline: any;
@@ -517,7 +496,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
517
496
  pageTitle: any;
518
497
  textblocks: any;
519
498
  languageSupport: any;
520
- textAboveStartButton: any;
521
499
  };
522
500
  dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
523
501
  recomputations: () => number;
@@ -749,7 +727,6 @@ interface CookieBannerProps {
749
727
  onClose?: () => void;
750
728
  acceptCookies: () => void;
751
729
  rejectCookies: () => void;
752
- activatedLanguage?: string;
753
730
  }
754
731
 
755
732
  declare const CookieBanner: React$1.FC<CookieBannerProps>;
@@ -775,10 +752,7 @@ interface ModalProps {
775
752
 
776
753
  declare const Modal: FC<ModalProps>;
777
754
 
778
- type SkipLinkProps = {
779
- activatedLanguage?: string;
780
- };
781
- declare const SkipLink: FC<SkipLinkProps>;
755
+ declare const SkipLink: FC;
782
756
 
783
757
  interface PrincipleOfPublicityProps {
784
758
  activatedLanguage?: string;
@@ -804,7 +778,6 @@ interface StartApplicationButtonProps {
804
778
  onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
805
779
  label?: string;
806
780
  className?: string;
807
- activatedLanguage?: string;
808
781
  }
809
782
  /**
810
783
  * En standardiserad knapp för att starta e-tjänsten.
@@ -812,7 +785,6 @@ interface StartApplicationButtonProps {
812
785
  * @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
813
786
  * @param {string} label - Text som visas på knappen.
814
787
  * @param {string} className - Extra CSS-klasser för knappen.
815
- * @param {string} activatedLanguage - Aktiverat språk.
816
788
  */
817
789
  declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
818
790
 
@@ -873,16 +845,14 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
873
845
 
874
846
  interface FormStatusMessagesProps {
875
847
  formStatus: string;
876
- activatedLanguage?: string;
877
848
  }
878
849
  /**
879
850
  * Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
880
851
  * failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
881
852
  *
882
853
  * @param {string} formStatus Nuvarande status för formuläret.
883
- * @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
884
854
  *
885
855
  */
886
856
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
887
857
 
888
- 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ interface IApplicationContent {
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
11
  pageTitle?: string;
12
12
  textblocks?: Array<ITextBlock>;
13
- textAboveStartButton?: string;
14
13
  languageSupport: [
15
14
  {
16
15
  language: string;
@@ -19,7 +18,6 @@ interface IApplicationContent {
19
18
  linksForMoreInfo: Array<IPTSLink>;
20
19
  pageTitle: string;
21
20
  textblocks: Array<ITextBlock>;
22
- textAboveStartButton?: string;
23
21
  }
24
22
  ];
25
23
  }
@@ -29,7 +27,6 @@ interface ITextBlock {
29
27
  body?: string;
30
28
  linksForMoreInfo?: Array<IPTSLink>;
31
29
  pageTitle?: string;
32
- textAboveStartButton?: string;
33
30
  }
34
31
  interface IFormState {
35
32
  applicationContent: IApplicationContent;
@@ -116,22 +113,11 @@ interface IStepQuestionData {
116
113
  }[];
117
114
  }[];
118
115
  }
119
- interface IAppSettingsCookies {
120
- useCookies: boolean;
121
- cookieName: string;
122
- cookieChoiseKey: string;
123
- }
124
- interface IAppSettings {
125
- appUsesLanguage: boolean;
126
- appUsesNavigation: boolean;
127
- appCookies?: IAppSettingsCookies;
128
- }
129
116
 
130
117
  interface RadioProps {
131
118
  question: IQuestion;
132
119
  handleQuestionInputChange: any;
133
120
  showPreview?: boolean;
134
- activatedLanguage?: string;
135
121
  }
136
122
 
137
123
  declare const InputRadio: FC<RadioProps>;
@@ -449,7 +435,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
449
435
  linksForMoreInfo: never[];
450
436
  pageTitle: string;
451
437
  textblocks: never[];
452
- textAboveStartButton: string;
453
438
  languageSupport?: undefined;
454
439
  } | {
455
440
  headline: any;
@@ -458,7 +443,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
458
443
  pageTitle: any;
459
444
  textblocks: any;
460
445
  languageSupport: any;
461
- textAboveStartButton: any;
462
446
  }) & {
463
447
  clearCache: () => void;
464
448
  resultsCount: () => number;
@@ -470,7 +454,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
470
454
  linksForMoreInfo: never[];
471
455
  pageTitle: string;
472
456
  textblocks: never[];
473
- textAboveStartButton: string;
474
457
  languageSupport?: undefined;
475
458
  } | {
476
459
  headline: any;
@@ -479,7 +462,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
479
462
  pageTitle: any;
480
463
  textblocks: any;
481
464
  languageSupport: any;
482
- textAboveStartButton: any;
483
465
  };
484
466
  memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
485
467
  headline: string;
@@ -487,7 +469,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
487
469
  linksForMoreInfo: never[];
488
470
  pageTitle: string;
489
471
  textblocks: never[];
490
- textAboveStartButton: string;
491
472
  languageSupport?: undefined;
492
473
  } | {
493
474
  headline: any;
@@ -496,7 +477,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
496
477
  pageTitle: any;
497
478
  textblocks: any;
498
479
  languageSupport: any;
499
- textAboveStartButton: any;
500
480
  }) & {
501
481
  clearCache: () => void;
502
482
  resultsCount: () => number;
@@ -508,7 +488,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
508
488
  linksForMoreInfo: never[];
509
489
  pageTitle: string;
510
490
  textblocks: never[];
511
- textAboveStartButton: string;
512
491
  languageSupport?: undefined;
513
492
  } | {
514
493
  headline: any;
@@ -517,7 +496,6 @@ declare const makeFormSelectors: <TState>(selectSlice: (state: TState) => IFormS
517
496
  pageTitle: any;
518
497
  textblocks: any;
519
498
  languageSupport: any;
520
- textAboveStartButton: any;
521
499
  };
522
500
  dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
523
501
  recomputations: () => number;
@@ -749,7 +727,6 @@ interface CookieBannerProps {
749
727
  onClose?: () => void;
750
728
  acceptCookies: () => void;
751
729
  rejectCookies: () => void;
752
- activatedLanguage?: string;
753
730
  }
754
731
 
755
732
  declare const CookieBanner: React$1.FC<CookieBannerProps>;
@@ -775,10 +752,7 @@ interface ModalProps {
775
752
 
776
753
  declare const Modal: FC<ModalProps>;
777
754
 
778
- type SkipLinkProps = {
779
- activatedLanguage?: string;
780
- };
781
- declare const SkipLink: FC<SkipLinkProps>;
755
+ declare const SkipLink: FC;
782
756
 
783
757
  interface PrincipleOfPublicityProps {
784
758
  activatedLanguage?: string;
@@ -804,7 +778,6 @@ interface StartApplicationButtonProps {
804
778
  onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
805
779
  label?: string;
806
780
  className?: string;
807
- activatedLanguage?: string;
808
781
  }
809
782
  /**
810
783
  * En standardiserad knapp för att starta e-tjänsten.
@@ -812,7 +785,6 @@ interface StartApplicationButtonProps {
812
785
  * @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
813
786
  * @param {string} label - Text som visas på knappen.
814
787
  * @param {string} className - Extra CSS-klasser för knappen.
815
- * @param {string} activatedLanguage - Aktiverat språk.
816
788
  */
817
789
  declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
818
790
 
@@ -873,16 +845,14 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
873
845
 
874
846
  interface FormStatusMessagesProps {
875
847
  formStatus: string;
876
- activatedLanguage?: string;
877
848
  }
878
849
  /**
879
850
  * Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
880
851
  * failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
881
852
  *
882
853
  * @param {string} formStatus Nuvarande status för formuläret.
883
- * @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
884
854
  *
885
855
  */
886
856
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
887
857
 
888
- 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 };
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 };