optimized-react-component-library-xyz123 0.30.2 → 0.30.3

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
@@ -113,6 +113,16 @@ interface IStepQuestionData {
113
113
  }[];
114
114
  }[];
115
115
  }
116
+ interface IAppSettingsCookies {
117
+ useCookies: boolean;
118
+ cookieName: string;
119
+ cookieChoiseKey: string;
120
+ }
121
+ interface IAppSettings {
122
+ appUsesLanguage: boolean;
123
+ appUsesNavigation: boolean;
124
+ appCookies?: IAppSettingsCookies;
125
+ }
116
126
 
117
127
  interface RadioProps {
118
128
  question: IQuestion;
@@ -181,16 +191,6 @@ interface SingleCheckboxProps {
181
191
 
182
192
  declare const SingleCheckbox: FC<SingleCheckboxProps>;
183
193
 
184
- interface InfoTextStandardProps {
185
- infoText: string;
186
- selectedValue?: string;
187
- activatedLanguage?: string;
188
- questionId: string;
189
- connectedToSelect?: boolean;
190
- }
191
-
192
- declare const InfoTextStandard: FC<InfoTextStandardProps>;
193
-
194
194
  /**
195
195
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
196
196
  *
@@ -738,6 +738,7 @@ interface CookieBannerProps {
738
738
  onClose?: () => void;
739
739
  acceptCookies: () => void;
740
740
  rejectCookies: () => void;
741
+ activatedLanguage?: string;
741
742
  }
742
743
 
743
744
  declare const CookieBanner: React$1.FC<CookieBannerProps>;
@@ -763,7 +764,10 @@ interface ModalProps {
763
764
 
764
765
  declare const Modal: FC<ModalProps>;
765
766
 
766
- declare const SkipLink: FC;
767
+ type SkipLinkProps = {
768
+ activatedLanguage?: string;
769
+ };
770
+ declare const SkipLink: FC<SkipLinkProps>;
767
771
 
768
772
  interface PrincipleOfPublicityProps {
769
773
  activatedLanguage?: string;
@@ -789,6 +793,7 @@ interface StartApplicationButtonProps {
789
793
  onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
790
794
  label?: string;
791
795
  className?: string;
796
+ activatedLanguage?: string;
792
797
  }
793
798
  /**
794
799
  * En standardiserad knapp för att starta e-tjänsten.
@@ -796,6 +801,7 @@ interface StartApplicationButtonProps {
796
801
  * @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
797
802
  * @param {string} label - Text som visas på knappen.
798
803
  * @param {string} className - Extra CSS-klasser för knappen.
804
+ * @param {string} activatedLanguage - Aktiverat språk.
799
805
  */
800
806
  declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
801
807
 
@@ -856,14 +862,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
856
862
 
857
863
  interface FormStatusMessagesProps {
858
864
  formStatus: string;
865
+ activatedLanguage?: string;
859
866
  }
860
867
  /**
861
868
  * Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
862
869
  * failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
863
870
  *
864
871
  * @param {string} formStatus Nuvarande status för formuläret.
872
+ * @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
865
873
  *
866
874
  */
867
875
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
868
876
 
869
- 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, InfoTextStandard, 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 };
877
+ 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
@@ -113,6 +113,16 @@ interface IStepQuestionData {
113
113
  }[];
114
114
  }[];
115
115
  }
116
+ interface IAppSettingsCookies {
117
+ useCookies: boolean;
118
+ cookieName: string;
119
+ cookieChoiseKey: string;
120
+ }
121
+ interface IAppSettings {
122
+ appUsesLanguage: boolean;
123
+ appUsesNavigation: boolean;
124
+ appCookies?: IAppSettingsCookies;
125
+ }
116
126
 
117
127
  interface RadioProps {
118
128
  question: IQuestion;
@@ -181,16 +191,6 @@ interface SingleCheckboxProps {
181
191
 
182
192
  declare const SingleCheckbox: FC<SingleCheckboxProps>;
183
193
 
184
- interface InfoTextStandardProps {
185
- infoText: string;
186
- selectedValue?: string;
187
- activatedLanguage?: string;
188
- questionId: string;
189
- connectedToSelect?: boolean;
190
- }
191
-
192
- declare const InfoTextStandard: FC<InfoTextStandardProps>;
193
-
194
194
  /**
195
195
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
196
196
  *
@@ -738,6 +738,7 @@ interface CookieBannerProps {
738
738
  onClose?: () => void;
739
739
  acceptCookies: () => void;
740
740
  rejectCookies: () => void;
741
+ activatedLanguage?: string;
741
742
  }
742
743
 
743
744
  declare const CookieBanner: React$1.FC<CookieBannerProps>;
@@ -763,7 +764,10 @@ interface ModalProps {
763
764
 
764
765
  declare const Modal: FC<ModalProps>;
765
766
 
766
- declare const SkipLink: FC;
767
+ type SkipLinkProps = {
768
+ activatedLanguage?: string;
769
+ };
770
+ declare const SkipLink: FC<SkipLinkProps>;
767
771
 
768
772
  interface PrincipleOfPublicityProps {
769
773
  activatedLanguage?: string;
@@ -789,6 +793,7 @@ interface StartApplicationButtonProps {
789
793
  onClick: (event: React$1.MouseEvent<HTMLButtonElement>) => void;
790
794
  label?: string;
791
795
  className?: string;
796
+ activatedLanguage?: string;
792
797
  }
793
798
  /**
794
799
  * En standardiserad knapp för att starta e-tjänsten.
@@ -796,6 +801,7 @@ interface StartApplicationButtonProps {
796
801
  * @param {Function} onClick - Funktion som körs när användaren klickar på knappen.
797
802
  * @param {string} label - Text som visas på knappen.
798
803
  * @param {string} className - Extra CSS-klasser för knappen.
804
+ * @param {string} activatedLanguage - Aktiverat språk.
799
805
  */
800
806
  declare const StartApplicationButton: React$1.FC<StartApplicationButtonProps>;
801
807
 
@@ -856,14 +862,16 @@ declare const ValidationErrorSummaryList: React$1.FC<ValidationErrorSummaryListP
856
862
 
857
863
  interface FormStatusMessagesProps {
858
864
  formStatus: string;
865
+ activatedLanguage?: string;
859
866
  }
860
867
  /**
861
868
  * Visar ett error-meddelande om formuläret misslyckas att skicka in, dvs. status är
862
869
  * failed. Läser upp att formuläret laddas för skärmläsare när status är loading.
863
870
  *
864
871
  * @param {string} formStatus Nuvarande status för formuläret.
872
+ * @param {string} [activatedLanguage='sv'] Den aktiverade språkkoden (default är svenska).
865
873
  *
866
874
  */
867
875
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
868
876
 
869
- 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, InfoTextStandard, 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 };
877
+ 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 };