freemium-survey-components 2.0.199 → 2.0.200

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.
Files changed (25) hide show
  1. package/lib/types/components/emailembed/index.d.ts +12 -12
  2. package/lib/types/components/survey-progess/index.d.ts +5 -4
  3. package/lib/types/survey/meta-channel-preview/whatsapp.d.ts +7 -6
  4. package/lib/types/types.d.ts +14 -0
  5. package/package.json +1 -1
  6. package/freemium-survey-components-2.0.197.tgz +0 -0
  7. package/lib/types/components/binary/binary.stories.d.ts +0 -1
  8. package/lib/types/components/button/button.stories.d.ts +0 -1
  9. package/lib/types/components/checkbox/checkbox.stories.d.ts +0 -1
  10. package/lib/types/components/date-time/dateTime.stories.d.ts +0 -1
  11. package/lib/types/components/date-time/index.d.ts +0 -9
  12. package/lib/types/components/emailembed/emailembed.stories.d.ts +0 -12
  13. package/lib/types/components/matrix/matrix.stories.d.ts +0 -1
  14. package/lib/types/components/matrix-widget/matrix-widget.stories.d.ts +0 -1
  15. package/lib/types/components/progressbar/progressbar.stories.d.ts +0 -1
  16. package/lib/types/components/radio-button/index.d.ts +0 -35
  17. package/lib/types/components/radio-button/radio.stories.d.ts +0 -1
  18. package/lib/types/components/range/range.stories.d.ts +0 -31
  19. package/lib/types/components/rank-order/rank-order.stories.d.ts +0 -1
  20. package/lib/types/components/slider/slider.stories.d.ts +0 -1
  21. package/lib/types/components/text-input/DropdownMenuItems.d.ts +0 -8
  22. package/lib/types/components/text-input/text-input.stories.d.ts +0 -1
  23. package/lib/types/mock.d.ts +0 -89
  24. package/lib/types/survey/meta-channel-preview/channels.stories.d.ts +0 -1
  25. package/lib/types/survey/survey.stories.d.ts +0 -1
@@ -1,12 +1,12 @@
1
- import { EmailEmbedChannelInfoType, SurveyQuestionType, SurveyType } from '../../types';
2
- export declare type CommonProps = {
3
- emailEmbedChannelInfo?: EmailEmbedChannelInfoType | null;
4
- collectorId: string;
5
- survey?: SurveyType | null;
6
- question: SurveyQuestionType | null;
7
- customDomain: string;
8
- publicSurveyUrl: string;
9
- assetUrl: string;
10
- disabled?: boolean;
11
- };
12
- export declare const getEmailEmbedCodeForQuestion: (props: CommonProps) => string;
1
+ import { EmailEmbedChannelInfoType, SurveyQuestionType, SurveyType } from '../../types';
2
+ export type CommonProps = {
3
+ emailEmbedChannelInfo?: EmailEmbedChannelInfoType | null;
4
+ collectorId: string;
5
+ survey?: SurveyType | null;
6
+ question: SurveyQuestionType | null;
7
+ customDomain: string;
8
+ publicSurveyUrl: string;
9
+ assetUrl: string;
10
+ disabled?: boolean;
11
+ };
12
+ export declare const getEmailEmbedCodeForQuestion: (props: CommonProps) => string;
@@ -1,4 +1,5 @@
1
- import { SurveyProgressProps } from '../../types';
2
- import './style.scss';
3
- declare const SurveyProgress: ({ isSurveyCompleted, totalBlocks, completedText, activeIndexOfBlocks, }: SurveyProgressProps) => JSX.Element;
4
- export { SurveyProgress };
1
+ import React from 'react';
2
+ import { SurveyProgressProps } from '../../types';
3
+ import './style.scss';
4
+ declare const SurveyProgress: ({ isSurveyCompleted, totalBlocks, completedText, activeIndexOfBlocks, }: SurveyProgressProps) => React.JSX.Element;
5
+ export { SurveyProgress };
@@ -1,6 +1,7 @@
1
- import { AugmentedSurveyProps } from '../../types';
2
- declare type MetaChannelsProps = {
3
- type?: 'instagram' | 'whatsapp' | undefined;
4
- };
5
- declare const WhatsappPreview: (props: AugmentedSurveyProps & MetaChannelsProps) => JSX.Element | null;
6
- export { WhatsappPreview };
1
+ import React from 'react';
2
+ import { AugmentedSurveyProps } from '../../types';
3
+ type MetaChannelsProps = {
4
+ type?: 'instagram' | 'whatsapp' | undefined;
5
+ };
6
+ declare const WhatsappPreview: (props: AugmentedSurveyProps & MetaChannelsProps) => React.JSX.Element | null;
7
+ export { WhatsappPreview };
@@ -398,6 +398,20 @@ export type ThemeTypographyType = {
398
398
  export type ThemeAdvancedType = {
399
399
  additional_css?: string;
400
400
  };
401
+ export type ThemeUiType = {
402
+ id?: string | null;
403
+ theme_uuid?: string | null;
404
+ name?: string | null;
405
+ description?: string | null;
406
+ type?: string | null;
407
+ theme?: SurveyThemeType | null;
408
+ is_active?: boolean | null;
409
+ editable?: boolean | null;
410
+ created_by?: string | null;
411
+ updated_by?: string | null;
412
+ created_at?: string | null;
413
+ updated_at?: string | null;
414
+ };
401
415
  export type SurveyThemeType = {
402
416
  palette?: ThemePaletteType;
403
417
  typography?: ThemeTypographyType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "2.0.199",
3
+ "version": "2.0.200",
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,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Meta, StoryObj } from '@storybook/react';
3
- import { CommonProps } from '.';
4
- declare type EmailEmbedStoryProps = CommonProps & {};
5
- export declare const EmailEmbedStory: (props: EmailEmbedStoryProps) => JSX.Element;
6
- declare const meta: Meta<typeof EmailEmbedStory>;
7
- export default meta;
8
- declare type Story = StoryObj<typeof EmailEmbedStory>;
9
- export declare const Desktop: Story;
10
- export declare const Tablet: Story;
11
- export declare const Mobile: Story;
12
- export declare const MiniMobile: Story;
@@ -1 +0,0 @@
1
- export {};
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import { QuestionChoiceType, TranslationVariablesType } from '../../types';
3
- import './style.scss';
4
- interface RadioButtonProps {
5
- checked: boolean;
6
- children: string;
7
- value: string | number;
8
- name: string;
9
- className?: string;
10
- index?: number;
11
- onChange: (e: any) => void;
12
- id?: string;
13
- autoFocus?: boolean;
14
- }
15
- interface RadioGroupInterface {
16
- options: QuestionChoiceType[];
17
- value: string;
18
- name: string;
19
- autoFocusDelay: number;
20
- onChangeHandler: (newValue: string) => void;
21
- initialQuestionAnswer?: string;
22
- saveOthersValue: (questionName: string, inputValue: string | null) => void;
23
- isOthersOption?: boolean;
24
- othersRequired?: boolean;
25
- othersValue: string;
26
- isFinalQn?: boolean;
27
- displayFormat?: string;
28
- translationVariables?: TranslationVariablesType;
29
- }
30
- declare const RadioGroup: ({ name, options, value, autoFocusDelay, onChangeHandler, saveOthersValue, isOthersOption, displayFormat, othersRequired, othersValue, isFinalQn, initialQuestionAnswer, translationVariables, }: RadioGroupInterface) => JSX.Element;
31
- declare const Radio: React.ComponentType<Partial<{
32
- checked: boolean;
33
- autoFocus: boolean;
34
- }> & Omit<RadioButtonProps, "checked" | "autoFocus">>;
35
- export { Radio, RadioGroup };
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonStyleShapeTypes, ButtonStyleTypes, PropertiesLabelsPreferenceType, QuestionTypeVariantType, ScalePropertiesOrderType, WidgetStyles } from '../../types';
3
- declare type RangeStoryProps = {
4
- btShape: ButtonStyleShapeTypes;
5
- btType: ButtonStyleTypes;
6
- order: ScalePropertiesOrderType;
7
- preference: PropertiesLabelsPreferenceType;
8
- variant: QuestionTypeVariantType;
9
- labels: string[];
10
- scale: number;
11
- value: number;
12
- isMobile: boolean;
13
- isWidget: boolean;
14
- widgetStyle: WidgetStyles;
15
- };
16
- export declare const RangeStory: (props: RangeStoryProps) => JSX.Element;
17
- declare const _default: {
18
- title: string;
19
- component: (props: RangeStoryProps) => JSX.Element;
20
- argTypes: {
21
- scale: {
22
- control: {
23
- type: string;
24
- min: number;
25
- max: number;
26
- };
27
- };
28
- };
29
- args: RangeStoryProps;
30
- };
31
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export declare const DropdownMenuItems: ({ items, itemToString, searchKey, dropdownValue, onSelect, identifier, }: {
2
- items: any;
3
- itemToString: any;
4
- searchKey: any;
5
- dropdownValue: any;
6
- onSelect: any;
7
- identifier?: string | undefined;
8
- }) => JSX.Element;
@@ -1,89 +0,0 @@
1
- import { SurveyType } from './types';
2
- export declare const CSAT_SURVEY: SurveyType;
3
- export declare const CSAT_SURVEY_MESSAGE_CONSENT_QUESTIONS: any;
4
- export declare const CSAT_SURVEY_DROPDOWN_DATETIME_QUESTION: any;
5
- export declare const FORM_FIELDS_SURVEY: SurveyType;
6
- export declare const CES_YES_NO_SURVEY: SurveyType;
7
- export declare const NPS_SURVEY: SurveyType;
8
- export declare const RESUBMIT_SURVEY: SurveyType;
9
- export declare const SURVEY_TO_USE: SurveyType;
10
- export declare const mockPlaceholders: {
11
- '{{contact.user_created_date}}': string;
12
- '{{contact.zipcode}}': string;
13
- '{{contact.product}}': string;
14
- '{{account.company_name}}': string;
15
- '{{account.account_name}}': string;
16
- '{{contact.last_emailed}}': string;
17
- '{{contact.updated_at}}': string;
18
- '{{contact.plan}}': string;
19
- '{{contact.first_name}}': string;
20
- '{{contact.industry}}': string;
21
- '{{contact.user_id}}': string;
22
- '{{contact.address}}': string;
23
- '{{contact.role}}': string;
24
- '{{contact.account_status}}': string;
25
- '{{contact.city}}': string;
26
- '{{contact.account_identifier}}': string;
27
- '{{survey.desc}}': string;
28
- '{{contact.work_number}}': string;
29
- '{{contact.company_website}}': string;
30
- '{{contact.unsubscribe_time}}': string;
31
- '{{survey.name}}': string;
32
- '{{contact.created_at}}': string;
33
- '{{contact.email_state}}': string;
34
- '{{contact.prod_acc_id}}': string;
35
- '{{account.name}}': string;
36
- '{{contact.mobile_number}}': string;
37
- '{{contact.company_name}}': string;
38
- '{{contact.timezone}}': string;
39
- '{{account.domain}}': string;
40
- '{{contact.contact_status}}': string;
41
- '{{contact.designation}}': string;
42
- '{{contact.last_name}}': string;
43
- '{{contact.state}}': string;
44
- '{{contact.language}}': string;
45
- '{{contact.contact_source}}': string;
46
- '{{contact.work_email}}': string;
47
- '{{contact.country}}': string;
48
- };
49
- export declare const MOCK_CONTACT_DATA: {
50
- address: string;
51
- city: string;
52
- country: string;
53
- state: string;
54
- first_name: string;
55
- last_name: string;
56
- work_email: string;
57
- mobile_number: string;
58
- company_name: string;
59
- language: string;
60
- email_state: string;
61
- sample_field: string;
62
- sample_date: string;
63
- };
64
- export declare const MOCK_TRANSLATIONS_VARIABLES: {
65
- edit_response: string;
66
- another_response: string;
67
- redirect_msg: string;
68
- prev_statement: string;
69
- prev_question: string;
70
- next_question: string;
71
- next: string;
72
- skip: string;
73
- submit_survey: string;
74
- submitting: string;
75
- thank_you: string;
76
- enter_comment: string;
77
- drop_your_file: string;
78
- max_file_size: string;
79
- supported_file_formats: string;
80
- show_more: string;
81
- show_less: string;
82
- mb: string;
83
- browse: string;
84
- };
85
- export declare const EMOJI_ALL_SCALES: SurveyType;
86
- export declare const STAR_ALL_SCALES: SurveyType;
87
- export declare const TEXT_ALL_SCALES: SurveyType;
88
- export declare const ALL_QUESTION_TYPES_SURVEY: SurveyType;
89
- export declare const NUMBER_ALL_SCALES: SurveyType;
@@ -1 +0,0 @@
1
- export {};