optimized-react-component-library-xyz123 2.2.5 → 2.2.7

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
@@ -1,4 +1,4 @@
1
- import React$1, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
1
+ import React$1, { FC } from 'react';
2
2
  import * as reselect from 'reselect';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
@@ -8,6 +8,7 @@ interface IApplicationContent {
8
8
  headline?: string;
9
9
  body?: string;
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
+ alertInText?: string;
11
12
  pageTitle?: string;
12
13
  textblocks?: Array<ITextBlock>;
13
14
  textAboveStartButton?: string;
@@ -28,6 +29,7 @@ interface ITextBlock {
28
29
  headline?: string;
29
30
  body?: string;
30
31
  linksForMoreInfo?: Array<IPTSLink>;
32
+ alertInText?: string;
31
33
  pageTitle?: string;
32
34
  textAboveStartButton?: string;
33
35
  }
@@ -47,10 +49,6 @@ interface IPTSLink {
47
49
  title: string;
48
50
  url: string;
49
51
  ariaLabel?: string;
50
- activatedLanguage?: string;
51
- openTarget?: string;
52
- icon?: ComponentType<SVGProps<SVGSVGElement>>;
53
- iconType?: string;
54
52
  }
55
53
  interface IStepObject {
56
54
  step: number;
@@ -94,6 +92,7 @@ interface IQuestion {
94
92
  questionGroupType?: string;
95
93
  dependsOnOtherQuestion?: Array<any>;
96
94
  questionExtraAttribute?: IQuestionExtraAttribute;
95
+ infoOnly?: ITextBlock;
97
96
  languageSupport: Array<any>;
98
97
  }
99
98
  interface IQuestionExtraAttribute {
@@ -140,15 +139,8 @@ interface IAppSettings {
140
139
  appUsesLanguage: boolean;
141
140
  appUsesNavigation: boolean;
142
141
  appCookies?: IAppSettingsCookies;
142
+ appUsesPreview?: boolean;
143
143
  }
144
- type INavigationItem = {
145
- label: {
146
- sv: string;
147
- en: string;
148
- };
149
- href: string;
150
- children?: INavigationItem[];
151
- };
152
144
 
153
145
  interface RadioProps {
154
146
  question: IQuestion;
@@ -791,54 +783,6 @@ interface HeaderProps {
791
783
 
792
784
  declare const Header: FC<HeaderProps>;
793
785
 
794
- interface NavigationHeaderProps {
795
- SetActivatedLanguage?: (language: string) => void;
796
- headline?: string;
797
- homelink?: string;
798
- activatedLanguage?: string;
799
- useLanguage?: boolean;
800
- useNavigationMenu: boolean;
801
- useSearch?: boolean;
802
- useBreadCrumbs?: boolean;
803
- menuLinks: INavigationItem[];
804
- linkComponent?: ElementType;
805
- noLogoLink?: boolean;
806
- }
807
-
808
- declare const NavigationHeader: FC<NavigationHeaderProps>;
809
-
810
- interface NavigationProps {
811
- setIsMenyOpen?: (open: boolean) => void;
812
- activatedLanguage?: string;
813
- menuLinks?: INavigationLink[];
814
- isOpen: boolean;
815
- openButtonRef: RefObject<HTMLButtonElement | null>;
816
- linkComponent?: ElementType;
817
- }
818
- type Locale = 'sv' | 'en';
819
- type Label = Record<Locale, string>;
820
- interface INavigationLink {
821
- label: Label;
822
- href: string;
823
- children?: INavigationLink[];
824
- openInNewWindow?: boolean;
825
- }
826
-
827
- declare const Navigation: FC<NavigationProps>;
828
-
829
- interface BreadCrumbsProps {
830
- activatedLanguage: string;
831
- onLinkClick?: (e: React.MouseEvent) => void;
832
- }
833
-
834
- declare const BreadCrumbs: FC<BreadCrumbsProps>;
835
-
836
- interface SearchBarProps {
837
- activatedLanguage: string;
838
- }
839
-
840
- declare const SearchBar: FC<SearchBarProps>;
841
-
842
786
  interface ModalProps {
843
787
  showModal: boolean;
844
788
  activatedLanguage?: string;
@@ -851,36 +795,11 @@ type SkipLinkProps = {
851
795
  };
852
796
  declare const SkipLink: FC<SkipLinkProps>;
853
797
 
854
- interface LinkProps extends IPTSLink {
855
- customClass?: string;
856
- openTarget?: string;
857
- useDownLoad?: boolean;
858
- linkComponent?: ElementType;
859
- }
860
-
861
- declare const LinkStandard: FC<LinkProps>;
862
-
863
- interface LinkListProps {
864
- linkArray: IPTSLink[];
865
- activatedLanguage?: string;
866
- customCss?: string;
867
- linkComponent?: ElementType;
868
- }
869
-
870
- declare const LinkList: FC<LinkListProps>;
871
-
872
- interface CollapseProps {
873
- title: ReactNode;
874
- children: ReactNode;
875
- isOpen?: boolean;
876
- defaultOpen?: boolean;
877
- onToggle?: (open: boolean) => void;
878
- id?: string;
879
- activatedLanguage?: string;
880
- customClass?: string;
798
+ interface AlertInTextProps {
799
+ content: string;
881
800
  }
882
801
 
883
- declare const Collapse: FC<CollapseProps>;
802
+ declare const AlertInTextStandard: FC<AlertInTextProps>;
884
803
 
885
804
  interface PrincipleOfPublicityProps {
886
805
  activatedLanguage?: string;
@@ -988,4 +907,4 @@ interface FormStatusMessagesProps {
988
907
  */
989
908
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
990
909
 
991
- export { AddFiles as AddFilesStandard, BreadCrumbs, BreadCrumbs as BreadcrumbsAdaptive, CheckboxGroup as CheckboxGroupStandard, Collapse, 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, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, 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 };
910
+ export { AddFiles as AddFilesStandard, AlertInTextStandard, 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
@@ -1,4 +1,4 @@
1
- import React$1, { ComponentType, SVGProps, FC, ElementType, RefObject, ReactNode } from 'react';
1
+ import React$1, { FC } from 'react';
2
2
  import * as reselect from 'reselect';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
4
  import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
@@ -8,6 +8,7 @@ interface IApplicationContent {
8
8
  headline?: string;
9
9
  body?: string;
10
10
  linksForMoreInfo?: Array<IPTSLink>;
11
+ alertInText?: string;
11
12
  pageTitle?: string;
12
13
  textblocks?: Array<ITextBlock>;
13
14
  textAboveStartButton?: string;
@@ -28,6 +29,7 @@ interface ITextBlock {
28
29
  headline?: string;
29
30
  body?: string;
30
31
  linksForMoreInfo?: Array<IPTSLink>;
32
+ alertInText?: string;
31
33
  pageTitle?: string;
32
34
  textAboveStartButton?: string;
33
35
  }
@@ -47,10 +49,6 @@ interface IPTSLink {
47
49
  title: string;
48
50
  url: string;
49
51
  ariaLabel?: string;
50
- activatedLanguage?: string;
51
- openTarget?: string;
52
- icon?: ComponentType<SVGProps<SVGSVGElement>>;
53
- iconType?: string;
54
52
  }
55
53
  interface IStepObject {
56
54
  step: number;
@@ -94,6 +92,7 @@ interface IQuestion {
94
92
  questionGroupType?: string;
95
93
  dependsOnOtherQuestion?: Array<any>;
96
94
  questionExtraAttribute?: IQuestionExtraAttribute;
95
+ infoOnly?: ITextBlock;
97
96
  languageSupport: Array<any>;
98
97
  }
99
98
  interface IQuestionExtraAttribute {
@@ -140,15 +139,8 @@ interface IAppSettings {
140
139
  appUsesLanguage: boolean;
141
140
  appUsesNavigation: boolean;
142
141
  appCookies?: IAppSettingsCookies;
142
+ appUsesPreview?: boolean;
143
143
  }
144
- type INavigationItem = {
145
- label: {
146
- sv: string;
147
- en: string;
148
- };
149
- href: string;
150
- children?: INavigationItem[];
151
- };
152
144
 
153
145
  interface RadioProps {
154
146
  question: IQuestion;
@@ -791,54 +783,6 @@ interface HeaderProps {
791
783
 
792
784
  declare const Header: FC<HeaderProps>;
793
785
 
794
- interface NavigationHeaderProps {
795
- SetActivatedLanguage?: (language: string) => void;
796
- headline?: string;
797
- homelink?: string;
798
- activatedLanguage?: string;
799
- useLanguage?: boolean;
800
- useNavigationMenu: boolean;
801
- useSearch?: boolean;
802
- useBreadCrumbs?: boolean;
803
- menuLinks: INavigationItem[];
804
- linkComponent?: ElementType;
805
- noLogoLink?: boolean;
806
- }
807
-
808
- declare const NavigationHeader: FC<NavigationHeaderProps>;
809
-
810
- interface NavigationProps {
811
- setIsMenyOpen?: (open: boolean) => void;
812
- activatedLanguage?: string;
813
- menuLinks?: INavigationLink[];
814
- isOpen: boolean;
815
- openButtonRef: RefObject<HTMLButtonElement | null>;
816
- linkComponent?: ElementType;
817
- }
818
- type Locale = 'sv' | 'en';
819
- type Label = Record<Locale, string>;
820
- interface INavigationLink {
821
- label: Label;
822
- href: string;
823
- children?: INavigationLink[];
824
- openInNewWindow?: boolean;
825
- }
826
-
827
- declare const Navigation: FC<NavigationProps>;
828
-
829
- interface BreadCrumbsProps {
830
- activatedLanguage: string;
831
- onLinkClick?: (e: React.MouseEvent) => void;
832
- }
833
-
834
- declare const BreadCrumbs: FC<BreadCrumbsProps>;
835
-
836
- interface SearchBarProps {
837
- activatedLanguage: string;
838
- }
839
-
840
- declare const SearchBar: FC<SearchBarProps>;
841
-
842
786
  interface ModalProps {
843
787
  showModal: boolean;
844
788
  activatedLanguage?: string;
@@ -851,36 +795,11 @@ type SkipLinkProps = {
851
795
  };
852
796
  declare const SkipLink: FC<SkipLinkProps>;
853
797
 
854
- interface LinkProps extends IPTSLink {
855
- customClass?: string;
856
- openTarget?: string;
857
- useDownLoad?: boolean;
858
- linkComponent?: ElementType;
859
- }
860
-
861
- declare const LinkStandard: FC<LinkProps>;
862
-
863
- interface LinkListProps {
864
- linkArray: IPTSLink[];
865
- activatedLanguage?: string;
866
- customCss?: string;
867
- linkComponent?: ElementType;
868
- }
869
-
870
- declare const LinkList: FC<LinkListProps>;
871
-
872
- interface CollapseProps {
873
- title: ReactNode;
874
- children: ReactNode;
875
- isOpen?: boolean;
876
- defaultOpen?: boolean;
877
- onToggle?: (open: boolean) => void;
878
- id?: string;
879
- activatedLanguage?: string;
880
- customClass?: string;
798
+ interface AlertInTextProps {
799
+ content: string;
881
800
  }
882
801
 
883
- declare const Collapse: FC<CollapseProps>;
802
+ declare const AlertInTextStandard: FC<AlertInTextProps>;
884
803
 
885
804
  interface PrincipleOfPublicityProps {
886
805
  activatedLanguage?: string;
@@ -988,4 +907,4 @@ interface FormStatusMessagesProps {
988
907
  */
989
908
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
990
909
 
991
- export { AddFiles as AddFilesStandard, BreadCrumbs, BreadCrumbs as BreadcrumbsAdaptive, CheckboxGroup as CheckboxGroupStandard, Collapse, 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, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, 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 };
910
+ export { AddFiles as AddFilesStandard, AlertInTextStandard, 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 };