@atlaskit/feedback-collector 15.2.1 → 15.4.0

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.
@@ -1,4 +1,4 @@
1
- import React, { type FunctionComponent } from 'react';
1
+ import React from 'react';
2
2
  import { type FormFields, type SelectOptionDetails, type SelectValue } from '../types';
3
3
  interface Props {
4
4
  /** Message which will be shown as the title of the feedback dialog **/
@@ -29,6 +29,8 @@ interface Props {
29
29
  feedbackGroupLabels?: Partial<Record<SelectValue, SelectOptionDetails>>;
30
30
  /** Function that will be called to initiate the exit transition. */
31
31
  onClose: () => void;
32
+ /** Optional function that will be called when the cancel button is clicked, in addition to onClose. */
33
+ onCancel?: () => void;
32
34
  /** Function that will be called immediately after the submit action */
33
35
  onSubmit: (formValues: FormFields) => Promise<void>;
34
36
  /** Optional locale for i18n **/
@@ -54,7 +56,7 @@ export interface OptionType {
54
56
  label: React.ReactText;
55
57
  value: SelectValue;
56
58
  }
57
- declare const FeedbackFormWithIntl: FunctionComponent<Props & {
59
+ declare const FeedbackFormWithIntl: ({ locale, ...props }: Props & {
58
60
  locale: string;
59
- }>;
61
+ }) => React.ReactElement;
60
62
  export default FeedbackFormWithIntl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/feedback-collector",
3
- "version": "15.2.1",
3
+ "version": "15.4.0",
4
4
  "description": "A component that collects feedback across Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,16 +35,16 @@
35
35
  "@atlaskit/afm-i18n-platform-web-platform-feedback-collector": "2.96.0",
36
36
  "@atlaskit/button": "^23.11.0",
37
37
  "@atlaskit/checkbox": "^17.3.0",
38
- "@atlaskit/flag": "^17.11.0",
38
+ "@atlaskit/flag": "^17.12.0",
39
39
  "@atlaskit/form": "^15.5.0",
40
- "@atlaskit/icon": "^35.0.0",
40
+ "@atlaskit/icon": "^35.4.0",
41
41
  "@atlaskit/link": "^3.4.0",
42
- "@atlaskit/modal-dialog": "^15.0.0",
42
+ "@atlaskit/modal-dialog": "^15.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/section-message": "^8.12.0",
44
+ "@atlaskit/section-message": "^8.13.0",
45
45
  "@atlaskit/select": "^21.12.0",
46
46
  "@atlaskit/textarea": "^8.3.0",
47
- "@atlaskit/tokens": "^13.0.0",
47
+ "@atlaskit/tokens": "^13.2.0",
48
48
  "@babel/runtime": "^7.0.0"
49
49
  },
50
50
  "peerDependencies": {
@@ -58,6 +58,8 @@
58
58
  "@atlassian/feature-flags-test-utils": "^1.1.0",
59
59
  "@testing-library/react": "^16.3.0",
60
60
  "buffer": "^6.0.3",
61
+ "react": "^18.2.0",
62
+ "react-dom": "^18.2.0",
61
63
  "react-intl": "^6.6.2"
62
64
  },
63
65
  "keywords": [