@web-site-utilities/feedback 0.0.18 → 0.0.19-dev.594db9f
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/dist/index.cjs.js +255 -73
- package/dist/index.d.ts +94 -53
- package/dist/index.es.js +255 -73
- package/dist/index.iife.js +255 -73
- package/dist/{common → src/common}/components/Checkbox.d.ts +5 -5
- package/dist/{common → src/common}/components/ErrorMessage.d.ts +1 -1
- package/dist/src/common/components/Modal.d.ts +19 -0
- package/dist/{common → src/common}/components/QuestionMatrix.d.ts +6 -4
- package/dist/{common → src/common}/components/Radio.d.ts +3 -3
- package/dist/{common → src/common}/components/RangeSlide.d.ts +5 -5
- package/dist/{common → src/common}/components/Rating.d.ts +1 -1
- package/dist/{common → src/common}/components/Select.d.ts +4 -4
- package/dist/{common → src/common}/components/Step.d.ts +3 -2
- package/dist/{common → src/common}/components/StepsProgress.d.ts +1 -1
- package/dist/{common → src/common}/components/TextInput.d.ts +3 -3
- package/dist/{common → src/common}/components/Textarea.d.ts +2 -2
- package/dist/{common → src/common}/components/Typography.d.ts +2 -2
- package/dist/src/common/conf/endpoints.d.ts +5 -0
- package/dist/src/common/conf.d.ts +1 -0
- package/dist/src/common/conf.template.d.ts +1 -0
- package/dist/{common → src/common}/hooks/useStepper.d.ts +3 -0
- package/dist/{common → src/common}/theme/ThemeProvider.d.ts +1 -0
- package/dist/src/common/theme/breakpoints.d.ts +17 -0
- package/dist/src/common/types/DTO.d.ts +2288 -0
- package/dist/src/common/types/EndpointsConfig.d.ts +8 -0
- package/dist/{common → src/common}/types/FormConfig.d.ts +1 -1
- package/dist/{form → src/common}/types/InitiateFeedbackModuleOptions.d.ts +2 -1
- package/dist/{fields → src/fields}/Field/Field.d.ts +1 -2
- package/dist/{form → src/form}/App.d.ts +3 -4
- package/dist/{form → src/form}/api/baseApi.d.ts +3 -1
- package/dist/src/form/api/getFormConf.d.ts +8 -0
- package/dist/src/form/api/saveForm.d.ts +3 -0
- package/dist/src/form/api/useRequest.d.ts +13 -0
- package/dist/{form → src/form}/features/InPlaceForm/InPlaceForm.d.ts +10 -4
- package/dist/src/form/features/PopupForm/PopupForm.d.ts +11 -0
- package/dist/{form → src/form}/index.d.ts +4 -5
- package/package.json +6 -7
- package/tsconfig.json +7 -6
- package/dist/common/components/Modal.d.ts +0 -23
- package/dist/form/api/getFormConf.d.ts +0 -8
- package/dist/form/api/saveForm.d.ts +0 -2
- package/dist/form/api/useRequest.d.ts +0 -9
- package/dist/form/features/PopupForm/PopupForm.d.ts +0 -9
- /package/dist/{common → src/common}/components/Button.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/useForm.d.ts +0 -0
- /package/dist/{common → src/common}/types/CommonFieldProps.d.ts +0 -0
- /package/dist/{common → src/common}/types/FormError.d.ts +0 -0
- /package/dist/{common → src/common}/types/Locale.d.ts +0 -0
- /package/dist/{common → src/common}/types/Nullable.d.ts +0 -0
- /package/dist/{common → src/common}/types/Option.d.ts +0 -0
- /package/dist/{common → src/common}/types/ValidationPerStep.d.ts +0 -0
- /package/dist/{common → src/common}/types/isNil.d.ts +0 -0
- /package/dist/{form → src/form}/components/FeedbackInput/FeedbackInput.d.ts +0 -0
- /package/dist/{form → src/form}/hooks/useIsClient.d.ts +0 -0
- /package/dist/{form → src/form}/index.dev.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from '@web-site-utilities/common/components/Checkbox';
|
|
2
2
|
import { Container } from 'react-dom/client';
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { InitiateFeedbackModuleOptions as InitiateFeedbackModuleOptions_2 } from '@web-site-utilities/common/types/InitiateFeedbackModuleOptions';
|
|
5
|
+
import { InitiateFeedbackModuleOptionsCmp as InitiateFeedbackModuleOptionsCmp_2 } from '@web-site-utilities/common/types/InitiateFeedbackModuleOptions';
|
|
5
6
|
import { InlineForm } from '@web-site-utilities/common/types/FormConfig';
|
|
6
|
-
import { Locale } from '@web-site-utilities/common/types/Locale';
|
|
7
7
|
import { PopupForm } from '@web-site-utilities/common/types/FormConfig';
|
|
8
8
|
import { QuestionMatrixProps } from '@web-site-utilities/common/components/QuestionMatrix';
|
|
9
9
|
import { RadioGroupProps } from '@web-site-utilities/common/components/Radio';
|
|
@@ -15,7 +15,7 @@ import { theme } from '@web-site-utilities/common/theme/ThemeProvider';
|
|
|
15
15
|
import { Variants } from '@web-site-utilities/common/theme/ThemeProvider';
|
|
16
16
|
|
|
17
17
|
export declare const FeedbackModule: (options: InitiateFeedbackModuleOptionsCmp) => default_2.FunctionComponentElement<{
|
|
18
|
-
|
|
18
|
+
options: InitiateFeedbackModuleOptionsCmp;
|
|
19
19
|
}> | null;
|
|
20
20
|
|
|
21
21
|
export declare const initiateFeedbackModule: (options: InitiateFeedbackModuleOptions) => void;
|
|
@@ -23,6 +23,7 @@ export declare const initiateFeedbackModule: (options: InitiateFeedbackModuleOpt
|
|
|
23
23
|
declare type InitiateFeedbackModuleOptions = {
|
|
24
24
|
container?: Container;
|
|
25
25
|
formId: string;
|
|
26
|
+
sessionId?: string;
|
|
26
27
|
locale?: Locale;
|
|
27
28
|
};
|
|
28
29
|
|
|
@@ -31,74 +32,114 @@ declare type InitiateFeedbackModuleOptionsCmp = Omit<InitiateFeedbackModuleOptio
|
|
|
31
32
|
declare type InPlaceFormProps = {
|
|
32
33
|
formId: string;
|
|
33
34
|
domainId: string;
|
|
34
|
-
|
|
35
|
+
options: InitiateFeedbackModuleOptions_2;
|
|
36
|
+
versionId: string;
|
|
37
|
+
formTheme: any;
|
|
35
38
|
inlineForm: InlineForm;
|
|
36
39
|
};
|
|
37
40
|
|
|
41
|
+
declare type Locale = string;
|
|
42
|
+
|
|
38
43
|
declare type PopupFormProps = {
|
|
39
44
|
formId: string;
|
|
40
45
|
domainId: string;
|
|
41
|
-
formTheme:
|
|
46
|
+
formTheme: any;
|
|
47
|
+
options: InitiateFeedbackModuleOptionsCmp_2;
|
|
42
48
|
popupForm: PopupForm;
|
|
43
49
|
};
|
|
44
50
|
|
|
45
51
|
export declare const PreviewInPlaceForm: (props: InPlaceFormProps & {
|
|
46
52
|
variant: Variants;
|
|
47
|
-
}) => default_2.
|
|
48
|
-
theme:
|
|
49
|
-
selectedVariant
|
|
50
|
-
children: default_2.
|
|
51
|
-
}
|
|
53
|
+
}) => default_2.CElement<{
|
|
54
|
+
theme: any;
|
|
55
|
+
selectedVariant: Variants;
|
|
56
|
+
children: default_2.FunctionComponentElement<InPlaceFormProps>;
|
|
57
|
+
}, default_2.Component<{
|
|
58
|
+
theme: any;
|
|
59
|
+
selectedVariant: Variants;
|
|
60
|
+
children: default_2.FunctionComponentElement<InPlaceFormProps>;
|
|
61
|
+
}, any, any>>;
|
|
52
62
|
|
|
53
63
|
export declare const PreviewPopupForm: (props: PopupFormProps & {
|
|
54
64
|
variant: Variants;
|
|
55
|
-
}) => default_2.
|
|
56
|
-
theme:
|
|
57
|
-
selectedVariant
|
|
58
|
-
children: default_2.
|
|
59
|
-
}
|
|
65
|
+
}) => default_2.CElement<{
|
|
66
|
+
theme: any;
|
|
67
|
+
selectedVariant: Variants;
|
|
68
|
+
children: default_2.FunctionComponentElement<PopupFormProps>;
|
|
69
|
+
}, default_2.Component<{
|
|
70
|
+
theme: any;
|
|
71
|
+
selectedVariant: Variants;
|
|
72
|
+
children: default_2.FunctionComponentElement<PopupFormProps>;
|
|
73
|
+
}, any, any>>;
|
|
60
74
|
|
|
61
75
|
export declare const renderFeedbackModule: (options: InitiateFeedbackModuleOptionsCmp) => default_2.FunctionComponentElement<{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}> | null;
|
|
76
|
+
options: theme;
|
|
77
|
+
}>;
|
|
65
78
|
|
|
66
79
|
export declare const SurveyFormComponents: {
|
|
67
|
-
Checkbox: (props: SurveyFormComponentsProps<CheckboxGroupProps>) => default_2.
|
|
68
|
-
theme:
|
|
69
|
-
selectedVariant
|
|
70
|
-
children: default_2.
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
80
|
+
Checkbox: (props: SurveyFormComponentsProps<CheckboxGroupProps>) => default_2.CElement<{
|
|
81
|
+
theme: any;
|
|
82
|
+
selectedVariant: Variants;
|
|
83
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
84
|
+
}, default_2.Component<{
|
|
85
|
+
theme: any;
|
|
86
|
+
selectedVariant: Variants;
|
|
87
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
88
|
+
}, any, any>>;
|
|
89
|
+
QuestionMatrix: (props: SurveyFormComponentsProps<QuestionMatrixProps>) => default_2.CElement<{
|
|
90
|
+
theme: any;
|
|
91
|
+
selectedVariant: Variants;
|
|
92
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
93
|
+
}, default_2.Component<{
|
|
94
|
+
theme: any;
|
|
95
|
+
selectedVariant: Variants;
|
|
96
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
97
|
+
}, any, any>>;
|
|
98
|
+
Radio: (props: SurveyFormComponentsProps<RadioGroupProps>) => default_2.CElement<{
|
|
99
|
+
theme: any;
|
|
100
|
+
selectedVariant: Variants;
|
|
101
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
102
|
+
}, default_2.Component<{
|
|
103
|
+
theme: any;
|
|
104
|
+
selectedVariant: Variants;
|
|
105
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
106
|
+
}, any, any>>;
|
|
107
|
+
Rating: (props: SurveyFormComponentsProps<RatingProps>) => default_2.CElement<{
|
|
108
|
+
theme: any;
|
|
109
|
+
selectedVariant: Variants;
|
|
110
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
111
|
+
}, default_2.Component<{
|
|
112
|
+
theme: any;
|
|
113
|
+
selectedVariant: Variants;
|
|
114
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
115
|
+
}, any, any>>;
|
|
116
|
+
Select: (props: SurveyFormComponentsProps<SelectProps>) => default_2.CElement<{
|
|
117
|
+
theme: any;
|
|
118
|
+
selectedVariant: Variants;
|
|
119
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
120
|
+
}, default_2.Component<{
|
|
121
|
+
theme: any;
|
|
122
|
+
selectedVariant: Variants;
|
|
123
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
124
|
+
}, any, any>>;
|
|
125
|
+
Textarea: (props: SurveyFormComponentsProps<TextareaProps>) => default_2.CElement<{
|
|
126
|
+
theme: any;
|
|
127
|
+
selectedVariant: Variants;
|
|
128
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
129
|
+
}, default_2.Component<{
|
|
130
|
+
theme: any;
|
|
131
|
+
selectedVariant: Variants;
|
|
132
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
133
|
+
}, any, any>>;
|
|
134
|
+
RangeSlide: (props: SurveyFormComponentsProps<RangeSlideProps>) => default_2.CElement<{
|
|
135
|
+
theme: any;
|
|
136
|
+
selectedVariant: Variants;
|
|
137
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
138
|
+
}, default_2.Component<{
|
|
139
|
+
theme: any;
|
|
140
|
+
selectedVariant: Variants;
|
|
141
|
+
children: default_2.CElement<any, default_2.Component<any, any, any>>[];
|
|
142
|
+
}, any, any>>;
|
|
102
143
|
};
|
|
103
144
|
|
|
104
145
|
export declare type SurveyFormComponentsProps<T> = {
|