freemium-survey-components 2.0.81 → 2.0.83

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.
@@ -579,7 +579,7 @@ export type TranslationVariablesType = Record<string, any>;
579
579
  export type PlaceholdersType = {
580
580
  [key: string]: string;
581
581
  };
582
- type OnSubmitType = (data: SurveyResponseType, callback: Function, answerType: AnswerStatus, action: ComponentActions) => void;
582
+ export type OnSubmitType = (data: SurveyResponseType, callback: Function, answerType: AnswerStatus, action: ComponentActions) => void;
583
583
  export type SurveyProgressProps = {
584
584
  totalBlocks: number;
585
585
  isSurveyCompleted: boolean;
@@ -644,7 +644,7 @@ export type AnswersType = {
644
644
  commitDirtyValue?: boolean;
645
645
  moveToNextPage?: boolean;
646
646
  };
647
- type QuestionFooterProps = {
647
+ export type QuestionFooterProps = {
648
648
  isWidget: boolean;
649
649
  isMobile: boolean;
650
650
  surveyStyle?: SurveyProps['surveyStyle'];
@@ -836,7 +836,7 @@ export type BreadcrumbDataType = {
836
836
  text?: string;
837
837
  };
838
838
  export type SetBreadcrumbDataType = (str: BreadcrumbDataType | React.SetStateAction<BreadcrumbDataType>) => void;
839
- type NavigationType = {
839
+ export type NavigationType = {
840
840
  IMPORT_CONTACTS?: string;
841
841
  ADD_CONTACT_SEGMENT: string;
842
842
  ADD_CONTACT_LIST: string;
@@ -936,7 +936,7 @@ export type ComponentQParamsType = {
936
936
  export type EmailPlaceholdersType = {
937
937
  [key in string]: string[] | null;
938
938
  };
939
- type ResponseDetailedDataType = {
939
+ export type ResponseDetailedDataType = {
940
940
  question: string;
941
941
  answer: number | string[] | string | null;
942
942
  name: string;
@@ -980,22 +980,22 @@ export interface SurveyServResponseType {
980
980
  nps_rating?: number | null;
981
981
  }
982
982
  export type ExportedComponentType = {
983
- goToRoute?: GoToRouteType;
984
- hostParams?: HostParamsType;
985
- role?: RoleType;
986
- setBreadcrumpData?: SetBreadcrumbDataType;
987
- queryParams?: ComponentQParamsType;
983
+ goToRoute: GoToRouteType;
984
+ hostParams: HostParamsType;
985
+ role: RoleType;
986
+ setBreadcrumbData: SetBreadcrumbDataType;
987
+ queryParams: ComponentQParamsType;
988
988
  hostConfig: HostConfigType;
989
989
  surveyServAuthInfo: SurveyServAuthType;
990
990
  product: ProductType;
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;
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;
1000
1000
  };
1001
1001
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "2.0.81",
3
+ "version": "2.0.83",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './package-styles.scss';
3
- import './style.scss';
4
- export declare type DateTimeProps = {
5
- items: any;
6
- };
7
- export declare function getDateFnsLocale(locale: any): any;
8
- export declare function YearMonthComp(props: any): JSX.Element;
9
- export declare const DateTime: React.ComponentType<Partial<{}> & Omit<any, never>>;
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { CommonProps } from '.';
3
- declare type EmailEmbedStoryProps = CommonProps & {};
4
- export declare const EmailEmbedStory: (props: EmailEmbedStoryProps) => JSX.Element;
5
- declare const meta: Meta<typeof EmailEmbedStory>;
6
- export default meta;
7
- declare type Story = StoryObj<typeof EmailEmbedStory>;
8
- export declare const Desktop: Story;
9
- export declare const Tablet: Story;
10
- export declare const Mobile: Story;
11
- export declare const MiniMobile: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import './style.scss';
3
- interface RadioButtonProps {
4
- checked: boolean;
5
- children: string;
6
- value: string | number;
7
- name: string;
8
- onChange: (e: any) => void;
9
- id?: string;
10
- autoFocus?: boolean;
11
- }
12
- declare type Option = {
13
- position?: number;
14
- value: string;
15
- id?: string;
16
- meta?: {
17
- is_deleted: boolean;
18
- };
19
- };
20
- interface RadioGroupInterface {
21
- options: Array<Option>;
22
- value: string;
23
- name: string;
24
- autoFocusDelay: number;
25
- onChangeHandler: (newValue: string) => void;
26
- saveOthersValue: (questionName: string, inputValue: string | null) => void;
27
- othersOption?: boolean;
28
- othersRequired?: boolean;
29
- othersValue: string;
30
- isFinalQn?: boolean;
31
- }
32
- declare const RadioGroup: ({ name, options, value, autoFocusDelay, onChangeHandler, saveOthersValue, othersOption, othersRequired, othersValue, isFinalQn, }: RadioGroupInterface) => JSX.Element;
33
- declare const Radio: React.ComponentType<Partial<{
34
- checked: boolean;
35
- autoFocus: boolean;
36
- }> & Omit<RadioButtonProps, "checked" | "autoFocus">>;
37
- export { Radio, RadioGroup };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const DropdownMenuItems: ({ items, itemToString, searchKey, dropdownValue, onSelect, identifier, }: {
3
- items: any;
4
- itemToString: any;
5
- searchKey: any;
6
- dropdownValue: any;
7
- onSelect: any;
8
- identifier?: string | undefined;
9
- }) => JSX.Element;
@@ -1,41 +0,0 @@
1
- import { SurveyType } from './types';
2
- export declare const newSurvey: SurveyType;
3
- export declare const mockPlaceholders: {
4
- '{{contact.user_created_date}}': string;
5
- '{{contact.zipcode}}': string;
6
- '{{contact.product}}': string;
7
- '{{account.company_name}}': string;
8
- '{{account.account_name}}': string;
9
- '{{contact.last_emailed}}': string;
10
- '{{contact.updated_at}}': string;
11
- '{{contact.plan}}': string;
12
- '{{contact.first_name}}': string;
13
- '{{contact.industry}}': string;
14
- '{{contact.user_id}}': string;
15
- '{{contact.address}}': string;
16
- '{{contact.role}}': string;
17
- '{{contact.account_status}}': string;
18
- '{{contact.city}}': string;
19
- '{{contact.account_identifier}}': string;
20
- '{{survey.desc}}': string;
21
- '{{contact.work_number}}': string;
22
- '{{contact.company_website}}': string;
23
- '{{contact.unsubscribe_time}}': string;
24
- '{{survey.name}}': string;
25
- '{{contact.created_at}}': string;
26
- '{{contact.email_state}}': string;
27
- '{{contact.prod_acc_id}}': string;
28
- '{{account.name}}': string;
29
- '{{contact.mobile_number}}': string;
30
- '{{contact.company_name}}': string;
31
- '{{contact.timezone}}': string;
32
- '{{account.domain}}': string;
33
- '{{contact.contact_status}}': string;
34
- '{{contact.designation}}': string;
35
- '{{contact.last_name}}': string;
36
- '{{contact.state}}': string;
37
- '{{contact.language}}': string;
38
- '{{contact.contact_source}}': string;
39
- '{{contact.work_email}}': string;
40
- '{{contact.country}}': string;
41
- };
@@ -1 +0,0 @@
1
- export {};