@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.
Files changed (55) hide show
  1. package/dist/index.cjs.js +255 -73
  2. package/dist/index.d.ts +94 -53
  3. package/dist/index.es.js +255 -73
  4. package/dist/index.iife.js +255 -73
  5. package/dist/{common → src/common}/components/Checkbox.d.ts +5 -5
  6. package/dist/{common → src/common}/components/ErrorMessage.d.ts +1 -1
  7. package/dist/src/common/components/Modal.d.ts +19 -0
  8. package/dist/{common → src/common}/components/QuestionMatrix.d.ts +6 -4
  9. package/dist/{common → src/common}/components/Radio.d.ts +3 -3
  10. package/dist/{common → src/common}/components/RangeSlide.d.ts +5 -5
  11. package/dist/{common → src/common}/components/Rating.d.ts +1 -1
  12. package/dist/{common → src/common}/components/Select.d.ts +4 -4
  13. package/dist/{common → src/common}/components/Step.d.ts +3 -2
  14. package/dist/{common → src/common}/components/StepsProgress.d.ts +1 -1
  15. package/dist/{common → src/common}/components/TextInput.d.ts +3 -3
  16. package/dist/{common → src/common}/components/Textarea.d.ts +2 -2
  17. package/dist/{common → src/common}/components/Typography.d.ts +2 -2
  18. package/dist/src/common/conf/endpoints.d.ts +5 -0
  19. package/dist/src/common/conf.d.ts +1 -0
  20. package/dist/src/common/conf.template.d.ts +1 -0
  21. package/dist/{common → src/common}/hooks/useStepper.d.ts +3 -0
  22. package/dist/{common → src/common}/theme/ThemeProvider.d.ts +1 -0
  23. package/dist/src/common/theme/breakpoints.d.ts +17 -0
  24. package/dist/src/common/types/DTO.d.ts +2288 -0
  25. package/dist/src/common/types/EndpointsConfig.d.ts +8 -0
  26. package/dist/{common → src/common}/types/FormConfig.d.ts +1 -1
  27. package/dist/{form → src/common}/types/InitiateFeedbackModuleOptions.d.ts +2 -1
  28. package/dist/{fields → src/fields}/Field/Field.d.ts +1 -2
  29. package/dist/{form → src/form}/App.d.ts +3 -4
  30. package/dist/{form → src/form}/api/baseApi.d.ts +3 -1
  31. package/dist/src/form/api/getFormConf.d.ts +8 -0
  32. package/dist/src/form/api/saveForm.d.ts +3 -0
  33. package/dist/src/form/api/useRequest.d.ts +13 -0
  34. package/dist/{form → src/form}/features/InPlaceForm/InPlaceForm.d.ts +10 -4
  35. package/dist/src/form/features/PopupForm/PopupForm.d.ts +11 -0
  36. package/dist/{form → src/form}/index.d.ts +4 -5
  37. package/package.json +6 -7
  38. package/tsconfig.json +7 -6
  39. package/dist/common/components/Modal.d.ts +0 -23
  40. package/dist/form/api/getFormConf.d.ts +0 -8
  41. package/dist/form/api/saveForm.d.ts +0 -2
  42. package/dist/form/api/useRequest.d.ts +0 -9
  43. package/dist/form/features/PopupForm/PopupForm.d.ts +0 -9
  44. /package/dist/{common → src/common}/components/Button.d.ts +0 -0
  45. /package/dist/{common → src/common}/hooks/useForm.d.ts +0 -0
  46. /package/dist/{common → src/common}/types/CommonFieldProps.d.ts +0 -0
  47. /package/dist/{common → src/common}/types/FormError.d.ts +0 -0
  48. /package/dist/{common → src/common}/types/Locale.d.ts +0 -0
  49. /package/dist/{common → src/common}/types/Nullable.d.ts +0 -0
  50. /package/dist/{common → src/common}/types/Option.d.ts +0 -0
  51. /package/dist/{common → src/common}/types/ValidationPerStep.d.ts +0 -0
  52. /package/dist/{common → src/common}/types/isNil.d.ts +0 -0
  53. /package/dist/{form → src/form}/components/FeedbackInput/FeedbackInput.d.ts +0 -0
  54. /package/dist/{form → src/form}/hooks/useIsClient.d.ts +0 -0
  55. /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 { FormConfigTheme } from '@web-site-utilities/common/types/FormConfig';
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
- formId: string;
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
- formTheme: FormConfigTheme;
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: FormConfigTheme;
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.FunctionComponentElement<{
48
- theme: typeof theme;
49
- selectedVariant?: Variants;
50
- children: default_2.ReactNode;
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.FunctionComponentElement<{
56
- theme: typeof theme;
57
- selectedVariant?: Variants;
58
- children: default_2.ReactNode;
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
- formId: string;
63
- locale?: Locale;
64
- }> | null;
76
+ options: theme;
77
+ }>;
65
78
 
66
79
  export declare const SurveyFormComponents: {
67
- Checkbox: (props: SurveyFormComponentsProps<CheckboxGroupProps>) => default_2.FunctionComponentElement<{
68
- theme: typeof theme;
69
- selectedVariant?: Variants;
70
- children: default_2.ReactNode;
71
- }>;
72
- QuestionMatrix: (props: SurveyFormComponentsProps<QuestionMatrixProps>) => default_2.FunctionComponentElement<{
73
- theme: typeof theme;
74
- selectedVariant?: Variants;
75
- children: default_2.ReactNode;
76
- }>;
77
- Radio: (props: SurveyFormComponentsProps<RadioGroupProps>) => default_2.FunctionComponentElement<{
78
- theme: typeof theme;
79
- selectedVariant?: Variants;
80
- children: default_2.ReactNode;
81
- }>;
82
- Rating: (props: SurveyFormComponentsProps<RatingProps>) => default_2.FunctionComponentElement<{
83
- theme: typeof theme;
84
- selectedVariant?: Variants;
85
- children: default_2.ReactNode;
86
- }>;
87
- Select: (props: SurveyFormComponentsProps<SelectProps>) => default_2.FunctionComponentElement<{
88
- theme: typeof theme;
89
- selectedVariant?: Variants;
90
- children: default_2.ReactNode;
91
- }>;
92
- Textarea: (props: SurveyFormComponentsProps<TextareaProps>) => default_2.FunctionComponentElement<{
93
- theme: typeof theme;
94
- selectedVariant?: Variants;
95
- children: default_2.ReactNode;
96
- }>;
97
- RangeSlide: (props: SurveyFormComponentsProps<RangeSlideProps>) => default_2.FunctionComponentElement<{
98
- theme: typeof theme;
99
- selectedVariant?: Variants;
100
- children: default_2.ReactNode;
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> = {