freemium-survey-components 2.0.66 → 2.0.68
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/lib/types/components/binary/binary.stories.d.ts +1 -0
- package/lib/types/components/button/button.stories.d.ts +1 -0
- package/lib/types/components/checkbox/checkbox.stories.d.ts +1 -0
- package/lib/types/components/date-time/dateTime.stories.d.ts +1 -0
- package/lib/types/components/date-time/index.d.ts +9 -0
- package/lib/types/components/emailembed/emailembed.stories.d.ts +11 -0
- package/lib/types/components/matrix/matrix.stories.d.ts +1 -0
- package/lib/types/components/matrix-widget/matrix-widget.stories.d.ts +1 -0
- package/lib/types/components/progressbar/progressbar.stories.d.ts +1 -0
- package/lib/types/components/radio-button/index.d.ts +37 -0
- package/lib/types/components/radio-button/radio.stories.d.ts +1 -0
- package/lib/types/components/range/range.stories.d.ts +1 -0
- package/lib/types/components/rank-order/rank-order.stories.d.ts +1 -0
- package/lib/types/components/slider/slider.stories.d.ts +1 -0
- package/lib/types/components/text-input/DropdownMenuItems.d.ts +9 -0
- package/lib/types/components/text-input/text-input.stories.d.ts +1 -0
- package/lib/types/mock.d.ts +41 -0
- package/lib/types/survey/meta-channel-preview/channels.stories.d.ts +1 -0
- package/lib/types/survey/survey.stories.d.ts +1 -0
- package/lib/types/types.d.ts +14 -45
- package/package.json +1 -1
- package/playwright-report/index.html +20355 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/types.d.ts
CHANGED
|
@@ -267,6 +267,7 @@ export type HeaderAlignmentType = 'center' | 'left' | 'right';
|
|
|
267
267
|
export type SurveyMetaType = {
|
|
268
268
|
survey_layout?: SurveyLayoutType | null;
|
|
269
269
|
progress_bar?: boolean | null;
|
|
270
|
+
show_survey_logo?: boolean | null;
|
|
270
271
|
header_alignment?: HeaderAlignmentType | null;
|
|
271
272
|
show_info_only_on_first?: boolean;
|
|
272
273
|
is_modified?: boolean;
|
|
@@ -784,30 +785,6 @@ export type FscDebugType = {
|
|
|
784
785
|
log?: boolean;
|
|
785
786
|
};
|
|
786
787
|
export type RoleType = 'OWNER' | 'ADMIN' | 'ANALYST' | 'VIEWER';
|
|
787
|
-
export type SurveyServAuthAccountType = {
|
|
788
|
-
id?: string | null;
|
|
789
|
-
timezone?: string | null;
|
|
790
|
-
company_name?: string | null;
|
|
791
|
-
brand_color?: string | null;
|
|
792
|
-
logo_url?: string | null;
|
|
793
|
-
favicon_url?: string | null;
|
|
794
|
-
verified?: boolean | null;
|
|
795
|
-
dkim_domain?: string | null;
|
|
796
|
-
dkim_verified?: boolean | null;
|
|
797
|
-
};
|
|
798
|
-
export type SurveyServAuthUserType = {
|
|
799
|
-
id?: string | null;
|
|
800
|
-
email?: string | null;
|
|
801
|
-
first_name?: string | null;
|
|
802
|
-
last_name?: string | null;
|
|
803
|
-
locale?: string | null;
|
|
804
|
-
verified?: boolean | null;
|
|
805
|
-
};
|
|
806
|
-
export type SurveyServAuthType = {
|
|
807
|
-
jwt_token?: string;
|
|
808
|
-
account: SurveyServAuthAccountType;
|
|
809
|
-
user: SurveyServAuthUserType;
|
|
810
|
-
};
|
|
811
788
|
export type GoToRouteType = (params: {
|
|
812
789
|
type?: string;
|
|
813
790
|
path: string;
|
|
@@ -890,31 +867,23 @@ export type HostConfigType = {
|
|
|
890
867
|
accountMeta?: AccountMetaType;
|
|
891
868
|
};
|
|
892
869
|
export type WcTypes = 'list' | 'builder' | 'email' | 'preview' | 'response' | 'template';
|
|
893
|
-
export type ProductType = 'freshservice' | 'freshchat' | 'freshsuccess' | 'freshsurvey' | 'default';
|
|
894
|
-
export type HostParamsType = {
|
|
895
|
-
id?: string;
|
|
896
|
-
surveyId?: string;
|
|
897
|
-
collectorId?: string;
|
|
898
|
-
showOnlyQuestionsPreview?: string;
|
|
899
|
-
isImport?: string;
|
|
900
|
-
};
|
|
901
|
-
export type ComponentQParamsType = {
|
|
902
|
-
product?: ProductType;
|
|
903
|
-
onboarding?: string;
|
|
904
|
-
step?: string;
|
|
905
|
-
tab?: 'builder' | 'collector';
|
|
906
|
-
};
|
|
907
870
|
export type ExportedComponentType = {
|
|
908
871
|
goToRoute?: GoToRouteType;
|
|
909
|
-
hostParams?:
|
|
872
|
+
hostParams?: {
|
|
873
|
+
id?: string;
|
|
874
|
+
collectorId?: string;
|
|
875
|
+
showOnlyQuestionsPreview?: string;
|
|
876
|
+
active?: 'builder' | 'collector';
|
|
877
|
+
isImport?: string;
|
|
878
|
+
};
|
|
910
879
|
role?: RoleType;
|
|
911
880
|
setBreadcrumpData?: SetBreadcrumbDataType;
|
|
912
|
-
queryParams?:
|
|
881
|
+
queryParams?: {
|
|
882
|
+
product?: string;
|
|
883
|
+
onboarding?: string;
|
|
884
|
+
step?: string;
|
|
885
|
+
tab?: 'builder' | 'collector';
|
|
886
|
+
};
|
|
913
887
|
hostConfig: HostConfigType;
|
|
914
|
-
surveyServAuthInfo: SurveyServAuthType;
|
|
915
|
-
product: ProductType;
|
|
916
|
-
collectorId?: string;
|
|
917
|
-
surveyId?: string;
|
|
918
|
-
locale?: string;
|
|
919
888
|
};
|
|
920
889
|
export {};
|