@semcore/feedback-form 6.43.0-prerelease.0 → 6.43.0-prerelease.4

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 (63) hide show
  1. package/lib/cjs/FeedbackForm.js +28 -22
  2. package/lib/cjs/FeedbackForm.js.map +1 -1
  3. package/lib/cjs/component/checkbox-button/CheckboxButton.js +22 -34
  4. package/lib/cjs/component/checkbox-button/CheckboxButton.js.map +1 -1
  5. package/lib/cjs/component/feedback-item/FeedbackItem.js +8 -8
  6. package/lib/cjs/component/feedback-item/FeedbackItem.js.map +1 -1
  7. package/lib/cjs/component/feedback-rating/FeedbackRating.js +71 -63
  8. package/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
  9. package/lib/cjs/component/feedback-rating/FeedbackRating.type.js.map +1 -1
  10. package/lib/cjs/component/slider-rating/SliderRating.js +47 -37
  11. package/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
  12. package/lib/cjs/component/submit-button/SubmitButton.js +1 -1
  13. package/lib/cjs/component/submit-button/SubmitButton.js.map +1 -1
  14. package/lib/cjs/index.d.js +1 -1
  15. package/lib/cjs/index.d.js.map +1 -1
  16. package/lib/cjs/index.js +1 -1
  17. package/lib/cjs/index.js.map +1 -1
  18. package/lib/cjs/style/checkbox-button.shadow.css +1 -1
  19. package/lib/cjs/style/feedback-form.shadow.css +1 -1
  20. package/lib/cjs/style/feedback-rating.shadow.css +0 -8
  21. package/lib/cjs/style/slider-rating.shadow.css +6 -1
  22. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
  23. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  24. package/lib/es6/FeedbackForm.js +22 -19
  25. package/lib/es6/FeedbackForm.js.map +1 -1
  26. package/lib/es6/component/checkbox-button/CheckboxButton.js +16 -31
  27. package/lib/es6/component/checkbox-button/CheckboxButton.js.map +1 -1
  28. package/lib/es6/component/feedback-item/FeedbackItem.js +7 -7
  29. package/lib/es6/component/feedback-item/FeedbackItem.js.map +1 -1
  30. package/lib/es6/component/feedback-rating/FeedbackRating.js +61 -56
  31. package/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
  32. package/lib/es6/component/feedback-rating/FeedbackRating.type.js.map +1 -1
  33. package/lib/es6/component/slider-rating/SliderRating.js +40 -33
  34. package/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
  35. package/lib/es6/component/submit-button/SubmitButton.js +1 -1
  36. package/lib/es6/component/submit-button/SubmitButton.js.map +1 -1
  37. package/lib/es6/index.d.js +3 -0
  38. package/lib/es6/index.d.js.map +1 -1
  39. package/lib/es6/index.js.map +1 -1
  40. package/lib/es6/style/checkbox-button.shadow.css +1 -1
  41. package/lib/es6/style/feedback-form.shadow.css +1 -1
  42. package/lib/es6/style/feedback-rating.shadow.css +0 -8
  43. package/lib/es6/style/slider-rating.shadow.css +6 -1
  44. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  45. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  46. package/lib/esm/FeedbackForm.mjs +31 -27
  47. package/lib/esm/component/checkbox-button/CheckboxButton.mjs +22 -34
  48. package/lib/esm/component/feedback-item/FeedbackItem.mjs +6 -6
  49. package/lib/esm/component/feedback-rating/FeedbackRating.mjs +64 -52
  50. package/lib/esm/component/slider-rating/SliderRating.mjs +45 -37
  51. package/lib/esm/style/checkbox-button.shadow.css +1 -1
  52. package/lib/esm/style/feedback-form.shadow.css +1 -1
  53. package/lib/esm/style/feedback-rating.shadow.css +0 -8
  54. package/lib/esm/style/slider-rating.shadow.css +6 -1
  55. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  56. package/lib/types/component/checkbox-button/CheckboxButton.d.ts +3 -1
  57. package/lib/types/component/feedback-item/FeedbackItem.d.ts +3 -3
  58. package/lib/types/component/feedback-rating/FeedbackRating.d.ts +184 -19
  59. package/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +26 -35
  60. package/lib/types/component/slider-rating/SliderRating.d.ts +3 -3
  61. package/lib/types/component/submit-button/SubmitButton.d.ts +1 -1
  62. package/lib/types/index.d.ts +15 -6
  63. package/package.json +17 -17
@@ -1,2 +1,4 @@
1
- declare const CheckboxButton: import("@semcore/core").Intergalactic.Component<"div", {}, {}, never[]>;
1
+ declare const CheckboxButton: import("@semcore/core").ComponentType<unknown, {}, {}, {
2
+ [key: string]: (arg: unknown) => void;
3
+ }, null>;
2
4
  export default CheckboxButton;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- export declare function FeedbackItem({ Children, tag, uid, tooltipProps: tooltipPropsList, ...props }: any): React.JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare function FeedbackItem({ Children, tag, uid, tooltipProps: tooltipPropsList, ...props }: any): JSX.Element;
3
3
  export declare namespace FeedbackItem {
4
4
  var enhance: ((props: any) => {
5
- uid: ReturnType<typeof import("@semcore/core/lib/utils/uniqueID").useUID>;
5
+ uid: string;
6
6
  })[];
7
7
  }
@@ -1,27 +1,196 @@
1
- import type Button from '@semcore/button';
2
- import type Checkbox from '@semcore/checkbox';
1
+ import React from 'react';
3
2
  import { Component } from '@semcore/core';
4
- import type { Intergalactic } from '@semcore/core';
3
+ import { FeedbackRatingProps, FeedbackRatingType, FormConfigItem } from './FeedbackRating.type';
5
4
  import { NoticeBubbleManager } from '@semcore/notice-bubble';
6
- import { Text } from '@semcore/typography';
7
- import React from 'react';
8
- import type { FeedbackRatingCheckboxProps, FeedbackRatingItemProps, FeedbackRatingProps, FormConfigItem, FeedbackRatingDefaultProps } from './FeedbackRating.type';
9
5
  type State = {
10
6
  error: boolean;
11
7
  };
12
- declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, typeof FeedbackRatingRoot.enhance, {}, FeedbackRatingDefaultProps, State> {
8
+ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, State, typeof FeedbackRatingRoot.enhance> {
13
9
  static displayName: string;
14
10
  static style: {
15
11
  [key: string]: string;
16
12
  };
17
13
  static enhance: readonly [(props: any) => {
18
- getI18nText: ReturnType<(dictionary: import("@semcore/core/lib/utils/enhances/WithI18n").Dictionary, locale?: import("@semcore/core/lib/utils/enhances/WithI18n").LocaleKeys, fallbackDictionary?: import("@semcore/core/lib/utils/enhances/WithI18n").Dictionary) => (messageId: string, variables?: {
14
+ getI18nText: (messageId: string, variables?: {
19
15
  [key: string]: string | number | undefined;
20
- }) => string>;
16
+ } | undefined) => string;
21
17
  }, (props: any) => {
22
- uid: ReturnType<typeof import("@semcore/core/lib/utils/uniqueID").useUID>;
18
+ uid: string;
23
19
  }];
24
- static defaultProps: FeedbackRatingDefaultProps;
20
+ static defaultProps: {
21
+ onSubmit: () => void;
22
+ i18n: {
23
+ de: {
24
+ leaveFeedback: string;
25
+ learnMore: string;
26
+ formTitle: string;
27
+ submitButton: string;
28
+ successMessage: string;
29
+ errorMessage: string;
30
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
31
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
32
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
33
+ "FeedbackRating.SliderRating.aria-valuetext": string;
34
+ };
35
+ en: {
36
+ leaveFeedback: string;
37
+ learnMore: string;
38
+ formTitle: string;
39
+ submitButton: string;
40
+ successMessage: string;
41
+ errorMessage: string;
42
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
43
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
44
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
45
+ "FeedbackRating.SliderRating.aria-valuetext": string;
46
+ };
47
+ es: {
48
+ leaveFeedback: string;
49
+ learnMore: string;
50
+ formTitle: string;
51
+ submitButton: string;
52
+ successMessage: string;
53
+ errorMessage: string;
54
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
55
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
56
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
57
+ "FeedbackRating.SliderRating.aria-valuetext": string;
58
+ };
59
+ fr: {
60
+ leaveFeedback: string;
61
+ learnMore: string;
62
+ formTitle: string;
63
+ submitButton: string;
64
+ successMessage: string;
65
+ errorMessage: string;
66
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
67
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
68
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
69
+ "FeedbackRating.SliderRating.aria-valuetext": string;
70
+ };
71
+ it: {
72
+ leaveFeedback: string;
73
+ learnMore: string;
74
+ formTitle: string;
75
+ submitButton: string;
76
+ successMessage: string;
77
+ errorMessage: string;
78
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
79
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
80
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
81
+ "FeedbackRating.SliderRating.aria-valuetext": string;
82
+ };
83
+ ja: {
84
+ leaveFeedback: string;
85
+ learnMore: string;
86
+ formTitle: string;
87
+ submitButton: string;
88
+ successMessage: string;
89
+ errorMessage: string;
90
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
91
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
92
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
93
+ "FeedbackRating.SliderRating.aria-valuetext": string;
94
+ };
95
+ ko: {
96
+ leaveFeedback: string;
97
+ learnMore: string;
98
+ formTitle: string;
99
+ submitButton: string;
100
+ successMessage: string;
101
+ errorMessage: string;
102
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
103
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
104
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
105
+ "FeedbackRating.SliderRating.aria-valuetext": string;
106
+ };
107
+ nl: {
108
+ leaveFeedback: string;
109
+ learnMore: string;
110
+ formTitle: string;
111
+ submitButton: string;
112
+ successMessage: string;
113
+ errorMessage: string;
114
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
115
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
116
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
117
+ "FeedbackRating.SliderRating.aria-valuetext": string;
118
+ };
119
+ pt: {
120
+ leaveFeedback: string;
121
+ learnMore: string;
122
+ formTitle: string;
123
+ submitButton: string;
124
+ successMessage: string;
125
+ errorMessage: string;
126
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
127
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
128
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
129
+ "FeedbackRating.SliderRating.aria-valuetext": string;
130
+ };
131
+ tr: {
132
+ leaveFeedback: string;
133
+ learnMore: string;
134
+ formTitle: string;
135
+ submitButton: string;
136
+ successMessage: string;
137
+ errorMessage: string;
138
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
139
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
140
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
141
+ "FeedbackRating.SliderRating.aria-valuetext": string;
142
+ };
143
+ vi: {
144
+ leaveFeedback: string;
145
+ learnMore: string;
146
+ formTitle: string;
147
+ submitButton: string;
148
+ successMessage: string;
149
+ errorMessage: string;
150
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
151
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
152
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
153
+ "FeedbackRating.SliderRating.aria-valuetext": string;
154
+ };
155
+ zh: {
156
+ leaveFeedback: string;
157
+ learnMore: string;
158
+ formTitle: string;
159
+ submitButton: string;
160
+ successMessage: string;
161
+ errorMessage: string;
162
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
163
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
164
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
165
+ "FeedbackRating.SliderRating.aria-valuetext": string;
166
+ };
167
+ pl: {
168
+ leaveFeedback: string;
169
+ learnMore: string;
170
+ formTitle: string;
171
+ submitButton: string;
172
+ successMessage: string;
173
+ errorMessage: string;
174
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
175
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
176
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
177
+ "FeedbackRating.SliderRating.aria-valuetext": string;
178
+ };
179
+ sv: {
180
+ leaveFeedback: string;
181
+ learnMore: string;
182
+ formTitle: string;
183
+ submitButton: string;
184
+ successMessage: string;
185
+ errorMessage: string;
186
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
187
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
188
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
189
+ "FeedbackRating.SliderRating.aria-valuetext": string;
190
+ };
191
+ };
192
+ locale: string;
193
+ };
25
194
  static validate: {
26
195
  description: (error: Error | string) => (value?: string) => string | Error | undefined;
27
196
  email: (error: Error | string) => (value?: string) => string | Error | undefined;
@@ -39,17 +208,13 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, typeof F
39
208
  getNoticeTextId(): string;
40
209
  handleChangeRating: (rating: number) => void;
41
210
  handelCloseModal: () => void;
42
- handleChange: (fn: (e: React.SyntheticEvent) => void) => (_value: any, e: React.SyntheticEvent) => void;
211
+ handleChange: (fn: (e: React.SyntheticEvent) => void) => (value: any, e: React.SyntheticEvent) => void;
43
212
  componentDidUpdate(prevProps: Readonly<FeedbackRatingProps>): void;
44
- renderCheckbox: (config: FormConfigItem, index: number) => React.JSX.Element;
45
- renderTextField: (config: FormConfigItem) => React.JSX.Element;
213
+ renderCheckbox: (config: FormConfigItem, index: number) => JSX.Element;
214
+ renderTextField: (config: FormConfigItem) => JSX.Element;
46
215
  render(): React.ReactNode;
47
216
  }
48
- declare const FeedbackRating: Intergalactic.Component<"form", FeedbackRatingProps, {}, typeof FeedbackRatingRoot.enhance> & {
217
+ declare const FeedbackRating: typeof FeedbackRatingType & {
49
218
  validate: typeof FeedbackRatingRoot.validate;
50
- Item: Intergalactic.Component<"div", FeedbackRatingItemProps>;
51
- Submit: typeof Button;
52
- Checkbox: Intergalactic.Component<typeof Checkbox, FeedbackRatingCheckboxProps>;
53
- Header: typeof Text;
54
219
  };
55
220
  export default FeedbackRating;
@@ -1,11 +1,10 @@
1
- import type { NSCheckbox } from '@semcore/checkbox';
2
- import type { Intergalactic } from '@semcore/core';
3
- import type { IllustrationProps } from '@semcore/illustration';
4
- import type Notice from '@semcore/notice';
5
- import type React from 'react';
6
- import type { FieldProps } from 'react-final-form';
7
- import type { FeedbackFormProps } from '../../index';
8
- import type { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';
1
+ import React from 'react';
2
+ import { FeedbackFormProps } from '../../index';
3
+ import { FieldProps } from 'react-final-form';
4
+ import { Intergalactic } from '@semcore/core';
5
+ import Button from '@semcore/button';
6
+ import { Text } from '@semcore/typography';
7
+ import Checkbox, { CheckboxProps } from '@semcore/checkbox';
9
8
  export type FormConfigItem = {
10
9
  key: string;
11
10
  label: React.ReactNode;
@@ -14,44 +13,36 @@ export type FormConfigItem = {
14
13
  validate?: (value: any) => Error | string | undefined;
15
14
  };
16
15
  export type FeedbackRatingProps = Intergalactic.InternalTypings.EfficientOmit<FeedbackFormProps, 'initialValues' | 'loading'> & {
17
- /** Status of form */
16
+ /** status of form */
18
17
  status: 'default' | 'success' | 'error' | 'loading';
19
- /** Flag for show/hide notification */
18
+ /** flag for show/hide notification */
20
19
  notificationVisible: boolean;
21
- /** Notification close callback */
20
+ /** */
22
21
  onNotificationClose: () => void;
23
- /** Text in notification panel */
22
+ /** text in notification panel */
24
23
  notificationText: string;
25
- /** Title in notification panel */
24
+ /** title in notification panel */
26
25
  notificationTitle?: string;
27
- /** Optional link in notification panel */
26
+ /** optional link in notification panel */
28
27
  learnMoreLink?: string;
29
- /** Rating value */
28
+ /** rating value */
30
29
  rating: number;
31
- /** Visible modal form flag */
30
+ /** visible modal form flag */
32
31
  visible: boolean;
33
- /** Visibility changes callback */
34
32
  onVisibleChange: (visible: boolean, rating: number) => void;
35
- /** Width for modal with form */
33
+ /** width for modal with form */
36
34
  modalWidth?: number | string;
37
- /** Header of modal with form */
35
+ /** header of modal with form */
38
36
  header: React.ReactNode;
39
- /** Text for submit button of form */
37
+ /** text for submit button of form */
40
38
  submitText?: string;
41
- /** Config for form fields */
39
+ /** config for form fields */
42
40
  formConfig: FormConfigItem[];
43
- /** Initial form values including rating */
44
41
  initialValues: Record<string, any> & {
45
42
  rating: number;
46
43
  };
47
- /** Email address shown in error messages */
48
44
  errorFeedbackEmail: string;
49
- /** Specifies the locale for i18n support */
50
45
  locale?: string;
51
- /** Illustration element */
52
- Illustration?: Intergalactic.Component<'svg', IllustrationProps>;
53
- /** Notice component */
54
- Notice?: typeof Notice;
55
46
  };
56
47
  export type FeedbackRatingItemProps = FieldProps<any, any> & {
57
48
  /**
@@ -59,14 +50,14 @@ export type FeedbackRatingItemProps = FieldProps<any, any> & {
59
50
  */
60
51
  tooltipProps?: string[];
61
52
  };
62
- export type FeedbackRatingCheckboxProps = Omit<NSCheckbox.Props, 'label'> & {
53
+ export type FeedbackRatingCheckboxProps = Omit<CheckboxProps, 'label'> & {
63
54
  focused: boolean;
64
55
  label: React.ReactNode;
65
56
  };
66
- export type FeedbackRatingDefaultProps = {
67
- onSubmit: () => void;
68
- i18n: typeof localizedMessages;
69
- locale: 'en';
70
- Illustration: Intergalactic.Component<'svg', IllustrationProps>;
71
- Notice: typeof Notice;
57
+ declare const FeedbackRatingType: Intergalactic.Component<'form', FeedbackRatingProps> & {
58
+ Item: Intergalactic.Component<'div', FeedbackRatingItemProps>;
59
+ Submit: typeof Button;
60
+ Checkbox: Intergalactic.Component<typeof Checkbox, FeedbackRatingCheckboxProps>;
61
+ Header: typeof Text;
72
62
  };
63
+ export { FeedbackRatingType };
@@ -1,5 +1,5 @@
1
- import { Flex, Box, type BoxProps } from '@semcore/base-components';
2
- import { type Intergalactic } from '@semcore/core';
1
+ import { Component, Intergalactic } from '@semcore/core';
2
+ import { Box, BoxProps } from '@semcore/flex-box';
3
3
  type SliderRatingProps = {
4
4
  value: number;
5
5
  onChange?: (value: number) => void;
@@ -8,7 +8,7 @@ type SliderRatingProps = {
8
8
  type StarProps = BoxProps & {
9
9
  filled?: boolean;
10
10
  };
11
- declare const SliderRating: Intergalactic.Component<typeof Flex, SliderRatingProps> & {
11
+ declare const SliderRating: (<Tag extends Intergalactic.InternalTypings.ComponentTag = Intergalactic.Component<"div", import("@semcore/flex-box").FlexProps, {}, never[]>, Props extends SliderRatingProps = SliderRatingProps>(props: Intergalactic.InternalTypings.ComponentProps<Tag, Intergalactic.Component<"div", import("@semcore/flex-box").FlexProps, {}, never[]>, Props, {}, never[]>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<Intergalactic.Component<"div", import("@semcore/flex-box").FlexProps, {}, never[]>, Intergalactic.InternalTypings.ComponentTag, SliderRatingProps, {}, never[]> & {
12
12
  Star: Intergalactic.Component<typeof Box, StarProps>;
13
13
  };
14
14
  export default SliderRating;
@@ -1,3 +1,3 @@
1
- import { type IRootComponentProps } from '@semcore/core';
2
1
  import React from 'react';
2
+ import { IRootComponentProps } from '@semcore/core';
3
3
  export declare function SubmitButton(props: IRootComponentProps): React.ReactNode;
@@ -1,13 +1,22 @@
1
- import type { Box } from '@semcore/base-components';
2
- import type Button from '@semcore/button';
3
- import type { Intergalactic } from '@semcore/core';
4
- import type { NoticeSmart } from '@semcore/notice';
5
- import type { FormProps, FieldProps, FieldInputProps, FieldMetaState } from 'react-final-form';
1
+ import {
2
+ FormProps,
3
+ FieldProps,
4
+ FieldInputProps,
5
+ FieldMetaState,
6
+ FieldRenderProps,
7
+ } from 'react-final-form';
8
+
9
+ import { Intergalactic } from '@semcore/core';
10
+ import Button from '@semcore/button';
11
+ import { NoticeSmart } from '@semcore/notice';
12
+ import { Box } from '@semcore/flex-box';
6
13
 
7
14
  import { default as FeedbackRating } from './component/feedback-rating/FeedbackRating';
8
15
 
16
+ /** @deprecated */
17
+ export type IFeedbackForm = FeedbackFormProps;
9
18
  export type FeedbackFormProps = FormProps & {
10
- /** The event is called when the form is submitted */
19
+ /* The event is called when the form is submitted */
11
20
  onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;
12
21
  /**
13
22
  * The property is in charge of the spinner showing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/feedback-form",
3
3
  "description": "Semrush Feedback Form Component",
4
- "version": "6.43.0-prerelease.0",
4
+ "version": "6.43.0-prerelease.4",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,27 +14,27 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/checkbox": "7.45.0-prerelease.0",
18
- "@semcore/notice-bubble": "5.55.0-prerelease.0",
19
- "@semcore/typography": "5.54.0-prerelease.0",
20
- "@semcore/link": "5.45.0-prerelease.0",
21
- "@semcore/modal": "4.57.0-prerelease.0",
22
- "@semcore/illustration": "2.45.0-prerelease.0",
23
- "@semcore/icon": "4.63.0-prerelease.0",
24
- "@semcore/textarea": "5.41.0-prerelease.0",
25
- "@semcore/input": "4.43.0-prerelease.0",
17
+ "@semcore/checkbox": "7.45.0-prerelease.4",
18
+ "@semcore/notice-bubble": "5.55.0-prerelease.4",
19
+ "@semcore/typography": "5.54.0-prerelease.4",
20
+ "@semcore/link": "5.45.0-prerelease.4",
21
+ "@semcore/modal": "4.57.0-prerelease.4",
22
+ "@semcore/illustration": "2.45.0-prerelease.4",
23
+ "@semcore/icon": "4.63.0-prerelease.4",
24
+ "@semcore/textarea": "5.41.0-prerelease.4",
25
+ "@semcore/input": "4.43.0-prerelease.4",
26
26
  "final-form": "4.20.7",
27
- "@semcore/button": "5.44.0-prerelease.0",
28
- "@semcore/flex-box": "5.42.0-prerelease.0",
29
- "@semcore/notice": "5.48.0-prerelease.0",
30
- "@semcore/spin-container": "7.42.0-prerelease.0",
31
- "@semcore/tooltip": "6.50.0-prerelease.0",
32
- "@semcore/utils": "4.49.0-prerelease.0",
27
+ "@semcore/button": "5.44.0-prerelease.4",
28
+ "@semcore/flex-box": "5.42.0-prerelease.4",
29
+ "@semcore/notice": "5.48.0-prerelease.4",
30
+ "@semcore/spin-container": "7.42.0-prerelease.4",
31
+ "@semcore/tooltip": "6.50.0-prerelease.4",
32
+ "@semcore/utils": "4.49.0-prerelease.4",
33
33
  "final-form-focus": "1.1.2",
34
34
  "react-final-form": "6.5.9"
35
35
  },
36
36
  "peerDependencies": {
37
- "@semcore/core": "^2.40.0-prerelease.0",
37
+ "@semcore/core": "^2.40.0-prerelease.4",
38
38
  "react": "16.8 - 18",
39
39
  "react-dom": "16.8 - 18"
40
40
  },