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.
- package/lib/index.cjs.js +7 -7
- package/lib/index.esm.js +7 -7
- package/lib/types/constants.d.ts +1 -0
- package/lib/types/types.d.ts +8 -0
- package/lib/types/utils.d.ts +2 -1
- package/package.json +1 -1
package/lib/types/constants.d.ts
CHANGED
package/lib/types/types.d.ts
CHANGED
|
@@ -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 {};
|
package/lib/types/utils.d.ts
CHANGED
|
@@ -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;
|