freemium-survey-components 2.0.0 → 2.0.2

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.
@@ -38,3 +38,4 @@ export declare const CONSENT_QUESTION_OPTIONS: {
38
38
  recordAs: boolean;
39
39
  }[];
40
40
  export declare const SUPPORTED_FILE_FORMATS: Record<FILE_UPLOAD_OPTIONS, string>;
41
+ export declare const FSC_DEBUG = "fsc:debug";
@@ -2,6 +2,8 @@ import { ReactNode } from 'react';
2
2
  import { MatrixValueType } from './components/matrix';
3
3
  import { CustomRange } from './utils';
4
4
  import { CanDisplayDisableButtonProps } from './survey/utils';
5
+ import { SelectProps, SelectTriggerProps } from '@radix-ui/react-select';
6
+ import { RadioGroupItemProps, RadioGroupProps } from '@radix-ui/react-radio-group';
5
7
  export type SurveyTypes = 'NPS' | 'CES' | 'CSAT' | 'NONE';
6
8
  export type SurveyStateTypes = 'DRAFT' | 'ACTIVE' | 'PAUSE';
7
9
  export type PromptChoiceType = {
@@ -748,4 +750,10 @@ export type ValidatingQuestions = {
748
750
  fileUploadErrors: Record<string, string>;
749
751
  contactFormErrors: Record<string, Record<string, string>>;
750
752
  };
753
+ export type FscDebugType = {
754
+ selectRoot?: SelectProps;
755
+ selectTrigger?: SelectTriggerProps;
756
+ radioGroupRoot?: RadioGroupProps;
757
+ radioGroupItemRoot?: RadioGroupItemProps;
758
+ };
751
759
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PropertiesLabelsPreferenceType, SurveyBlockType, SurveyQuestionType, SurveyResponseType, SurveyType, SurveyUiThemeType } from './types';
2
+ import { FscDebugType, PropertiesLabelsPreferenceType, SurveyBlockType, SurveyQuestionType, SurveyResponseType, SurveyType, SurveyUiThemeType } from './types';
3
3
  export declare const withDefaults: <P, DP>(component: React.ComponentType<P>, defaultProps: DP) => React.ComponentType<Partial<DP> & Omit<P, keyof DP>>;
4
4
  export declare const isNil: (value: unknown) => boolean;
5
5
  export declare const isEmpty: (value: unknown) => boolean;
@@ -29,3 +29,4 @@ export declare const blockInvalidInteger: (e: React.KeyboardEvent) => false | vo
29
29
  export declare const blockInvalidPhone: (e: React.KeyboardEvent) => false | void;
30
30
  export declare const getFirstBlock: (blocks?: SurveyBlockType[]) => SurveyBlockType;
31
31
  export declare const convertQuillHTMLToText: (quillHtml: string, preserveNewLine?: boolean) => string;
32
+ export declare const getFscDebug: () => FscDebugType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",