freemium-survey-components 2.0.80 → 2.0.82

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.
@@ -8,6 +8,7 @@ type ContactFormProps = {
8
8
  formValues: AnswersType['formValues'];
9
9
  setFocus?: boolean;
10
10
  fieldErrors: object;
11
+ language: string;
11
12
  };
12
- export declare const ContactForm: ({ question, autoFocusDelay, onChangeHandler, formValues, translationVariables, setFocus, fieldErrors, }: ContactFormProps) => React.JSX.Element;
13
+ export declare const ContactForm: ({ question, autoFocusDelay, onChangeHandler, formValues, translationVariables, setFocus, fieldErrors, language, }: ContactFormProps) => React.JSX.Element;
13
14
  export {};
@@ -24,6 +24,7 @@ export interface DropdownProps {
24
24
  isRequired?: boolean;
25
25
  disableSearch?: boolean;
26
26
  style?: React.CSSProperties;
27
+ dir?: 'rtl' | 'ltr';
27
28
  }
28
29
  declare const Dropdown: (props: DropdownProps) => React.JSX.Element;
29
30
  export declare const Item: React.ForwardRefExoticComponent<Select.SelectItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -14,6 +14,7 @@ interface PickerDropdownProps {
14
14
  value?: string | number;
15
15
  translationVariables?: TranslationVariablesType;
16
16
  onChange?: React.ChangeEventHandler<HTMLSelectElement>;
17
+ language?: string;
17
18
  }
18
19
  /**
19
20
  * Datepicker displays an input box with a calendar that enables selecting a date or date range. The values preselected in the input box and calendar are based on the fw-datepicker attribute values.
@@ -15,6 +15,7 @@ interface RadioGroupInterface {
15
15
  isFinalQn?: boolean;
16
16
  displayFormat?: string;
17
17
  translationVariables?: TranslationVariablesType;
18
+ language?: string;
18
19
  }
19
20
  declare const RadioGroup: (props: RadioGroupInterface) => React.JSX.Element;
20
21
  export default RadioGroup;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './style.scss';
3
3
  declare const TextInput: (props: any) => React.JSX.Element;
4
4
  declare const QuestionText: ({ text, placeholders, pivot, rangeToRender }: any) => React.JSX.Element;
5
- declare const Question: ({ block, saveFormValues, type, translationVariables, }: any) => React.JSX.Element | null;
5
+ declare const Question: ({ block, saveFormValues, type, translationVariables, language, }: any) => React.JSX.Element | null;
6
6
  declare const Prompt: ({ config, placeholders, onSelect, promptAccepted, type }: {
7
7
  config: any;
8
8
  placeholders: any;
@@ -277,7 +277,7 @@ export type SurveyMetaType = {
277
277
  header_alignment?: HeaderAlignmentType | null;
278
278
  show_info_only_on_first?: boolean;
279
279
  is_modified?: boolean;
280
- action_buttons?: ActionButtonType;
280
+ action_button?: ActionButtonType;
281
281
  created_by?: string | null;
282
282
  updated_by?: string | null;
283
283
  scoring_configuration?: {
@@ -416,6 +416,8 @@ export type EmailChannelInfoType = {
416
416
  include_unsubscribe_link?: boolean | null;
417
417
  template_score?: TemplateScoreType | null;
418
418
  display?: DisplayButtonType | null;
419
+ unsubscribe_link?: string | null;
420
+ test_email?: string | null;
419
421
  };
420
422
  export type WidgetStyles = 'default' | 'compact' | 'cozy';
421
423
  export type WebAppChannelInfoType = {
@@ -577,7 +579,7 @@ export type TranslationVariablesType = Record<string, any>;
577
579
  export type PlaceholdersType = {
578
580
  [key: string]: string;
579
581
  };
580
- type OnSubmitType = (data: SurveyResponseType, callback: Function, answerType: AnswerStatus, action: ComponentActions) => void;
582
+ export type OnSubmitType = (data: SurveyResponseType, callback: Function, answerType: AnswerStatus, action: ComponentActions) => void;
581
583
  export type SurveyProgressProps = {
582
584
  totalBlocks: number;
583
585
  isSurveyCompleted: boolean;
@@ -642,7 +644,7 @@ export type AnswersType = {
642
644
  commitDirtyValue?: boolean;
643
645
  moveToNextPage?: boolean;
644
646
  };
645
- type QuestionFooterProps = {
647
+ export type QuestionFooterProps = {
646
648
  isWidget: boolean;
647
649
  isMobile: boolean;
648
650
  surveyStyle?: SurveyProps['surveyStyle'];
@@ -834,7 +836,7 @@ export type BreadcrumbDataType = {
834
836
  text?: string;
835
837
  };
836
838
  export type SetBreadcrumbDataType = (str: BreadcrumbDataType | React.SetStateAction<BreadcrumbDataType>) => void;
837
- type NavigationType = {
839
+ export type NavigationType = {
838
840
  IMPORT_CONTACTS?: string;
839
841
  ADD_CONTACT_SEGMENT: string;
840
842
  ADD_CONTACT_LIST: string;
@@ -912,6 +914,7 @@ export type HostConfigType = {
912
914
  };
913
915
  agents?: HostAgentType[];
914
916
  accountMeta?: AccountMetaType;
917
+ supportedLanguages?: string[];
915
918
  };
916
919
  export type WcTypes = 'list' | 'builder' | 'email' | 'preview' | 'response' | 'template';
917
920
  export type ProductType = 'freshsurvey' | 'freshsuccess' | 'freshdesk' | 'freshchat' | 'freshservice' | 'default';
@@ -933,7 +936,7 @@ export type ComponentQParamsType = {
933
936
  export type EmailPlaceholdersType = {
934
937
  [key in string]: string[] | null;
935
938
  };
936
- type ResponseDetailedDataType = {
939
+ export type ResponseDetailedDataType = {
937
940
  question: string;
938
941
  answer: number | string[] | string | null;
939
942
  name: string;
@@ -977,22 +980,22 @@ export interface SurveyServResponseType {
977
980
  nps_rating?: number | null;
978
981
  }
979
982
  export type ExportedComponentType = {
980
- goToRoute?: GoToRouteType;
981
- hostParams?: HostParamsType;
982
- role?: RoleType;
983
- setBreadcrumpData?: SetBreadcrumbDataType;
984
- queryParams?: ComponentQParamsType;
983
+ goToRoute: GoToRouteType;
984
+ hostParams: HostParamsType;
985
+ role: RoleType;
986
+ setBreadcrumpData: SetBreadcrumbDataType;
987
+ queryParams: ComponentQParamsType;
985
988
  hostConfig: HostConfigType;
986
989
  surveyServAuthInfo: SurveyServAuthType;
987
990
  product: ProductType;
988
- placeholders?: EmailPlaceholdersType;
989
- response?: SurveyServResponseType;
990
- accountInfo?: SurveyServAuthAccountType;
991
- channel?: CollectorChannelType;
992
- survey?: SurveyType;
993
- collectorId?: string;
994
- surveyId?: string;
995
- id?: string;
996
- locale?: string;
991
+ placeholders: EmailPlaceholdersType;
992
+ response: SurveyServResponseType;
993
+ accountInfo: SurveyServAuthAccountType;
994
+ channel: CollectorChannelType;
995
+ survey: SurveyType;
996
+ collectorId: string;
997
+ surveyId: string;
998
+ id: string;
999
+ locale: string;
997
1000
  };
998
1001
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "2.0.80",
3
+ "version": "2.0.82",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",