@atlaskit/feedback-collector 13.0.5 → 13.0.7
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/CHANGELOG.md +72 -60
- package/dist/cjs/components/FeedbackCollector.js +3 -3
- package/dist/cjs/components/FeedbackFlag.js +2 -2
- package/dist/cjs/components/FeedbackForm.js +39 -36
- package/dist/cjs/messages.js +7 -2
- package/dist/es2019/components/FeedbackCollector.js +1 -1
- package/dist/es2019/components/FeedbackForm.js +10 -8
- package/dist/es2019/messages.js +7 -2
- package/dist/esm/components/FeedbackCollector.js +3 -3
- package/dist/esm/components/FeedbackFlag.js +2 -2
- package/dist/esm/components/FeedbackForm.js +39 -36
- package/dist/esm/messages.js +7 -2
- package/dist/types/messages.d.ts +5 -0
- package/dist/types-ts4.5/messages.d.ts +5 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,90 +1,102 @@
|
|
|
1
1
|
# @atlaskit/feedback-collector
|
|
2
2
|
|
|
3
|
+
## 13.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40842](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40842) [`f80998d1dea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f80998d1dea) - Fix type issues for feedback-collectors
|
|
8
|
+
|
|
9
|
+
## 13.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#39764](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39764) [`9ab9f14f503`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9ab9f14f503) - [ux] Adding linked label to the feedback topics select dropdown
|
|
14
|
+
|
|
3
15
|
## 13.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`8f7a65cea77`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f7a65cea77) - [ux] Opens privacy policy link in new tab
|
|
19
|
+
- [#39163](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39163) [`8f7a65cea77`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f7a65cea77) - [ux] Opens privacy policy link in new tab
|
|
8
20
|
|
|
9
21
|
## 13.0.4
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
25
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
14
26
|
- Updated dependencies
|
|
15
27
|
|
|
16
28
|
## 13.0.3
|
|
17
29
|
|
|
18
30
|
### Patch Changes
|
|
19
31
|
|
|
20
|
-
- [`026e8c5ae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/026e8c5ae33) - [ux] Remove visible label
|
|
32
|
+
- [#38252](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38252) [`026e8c5ae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/026e8c5ae33) - [ux] Remove visible label
|
|
21
33
|
|
|
22
34
|
## 13.0.2
|
|
23
35
|
|
|
24
36
|
### Patch Changes
|
|
25
37
|
|
|
26
|
-
- [`758e7d99631`](https://bitbucket.org/atlassian/atlassian-frontend/commits/758e7d99631) - Fixed submit button locking mechanism when the description field is hidden and a default description value has been provided
|
|
38
|
+
- [#38141](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38141) [`758e7d99631`](https://bitbucket.org/atlassian/atlassian-frontend/commits/758e7d99631) - Fixed submit button locking mechanism when the description field is hidden and a default description value has been provided
|
|
27
39
|
|
|
28
40
|
## 13.0.1
|
|
29
41
|
|
|
30
42
|
### Patch Changes
|
|
31
43
|
|
|
32
|
-
- [`2441f8995ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2441f8995ee) - [ux] Allow close icon to be tab-selected. Issue type select still retains initial focus
|
|
44
|
+
- [#35554](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35554) [`2441f8995ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2441f8995ee) - [ux] Allow close icon to be tab-selected. Issue type select still retains initial focus
|
|
33
45
|
|
|
34
46
|
## 13.0.0
|
|
35
47
|
|
|
36
48
|
### Major Changes
|
|
37
49
|
|
|
38
|
-
- [`a823baa34dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a823baa34dc) - Only send Atlassian Account ID, never use hashed email
|
|
50
|
+
- [#34955](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34955) [`a823baa34dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a823baa34dc) - Only send Atlassian Account ID, never use hashed email
|
|
39
51
|
The `email` property has been removed, only an Atlassian Account ID will ever be sent in `aaidOrHash` to avoid interception and submitting feedback as another user.
|
|
40
52
|
|
|
41
53
|
## 12.2.3
|
|
42
54
|
|
|
43
55
|
### Patch Changes
|
|
44
56
|
|
|
45
|
-
- [`db4b539c969`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db4b539c969) - update internationalization formatting
|
|
57
|
+
- [#34959](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34959) [`db4b539c969`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db4b539c969) - update internationalization formatting
|
|
46
58
|
|
|
47
59
|
## 12.2.2
|
|
48
60
|
|
|
49
61
|
### Patch Changes
|
|
50
62
|
|
|
51
|
-
- [`a6e64a7df16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6e64a7df16) - [ux] fix opt-in messages
|
|
63
|
+
- [#34951](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34951) [`a6e64a7df16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6e64a7df16) - [ux] fix opt-in messages
|
|
52
64
|
|
|
53
65
|
## 12.2.1
|
|
54
66
|
|
|
55
67
|
### Patch Changes
|
|
56
68
|
|
|
57
|
-
- [`44d70ecadb6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/44d70ecadb6) - [ux] Fix enroll message
|
|
69
|
+
- [#34871](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34871) [`44d70ecadb6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/44d70ecadb6) - [ux] Fix enroll message
|
|
58
70
|
|
|
59
71
|
## 12.2.0
|
|
60
72
|
|
|
61
73
|
### Minor Changes
|
|
62
74
|
|
|
63
|
-
- [`32649ca71ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/32649ca71ad) - [ux] Update the 'can be contacted' opt-in language
|
|
75
|
+
- [#34252](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34252) [`32649ca71ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/32649ca71ad) - [ux] Update the 'can be contacted' opt-in language
|
|
64
76
|
|
|
65
77
|
## 12.1.3
|
|
66
78
|
|
|
67
79
|
### Patch Changes
|
|
68
80
|
|
|
69
|
-
- [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
81
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443) [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
70
82
|
|
|
71
83
|
## 12.1.2
|
|
72
84
|
|
|
73
85
|
### Patch Changes
|
|
74
86
|
|
|
75
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
87
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
76
88
|
|
|
77
89
|
## 12.1.1
|
|
78
90
|
|
|
79
91
|
### Patch Changes
|
|
80
92
|
|
|
81
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
93
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
82
94
|
|
|
83
95
|
## 12.1.0
|
|
84
96
|
|
|
85
97
|
### Minor Changes
|
|
86
98
|
|
|
87
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
99
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
88
100
|
|
|
89
101
|
### Patch Changes
|
|
90
102
|
|
|
@@ -94,7 +106,7 @@
|
|
|
94
106
|
|
|
95
107
|
### Major Changes
|
|
96
108
|
|
|
97
|
-
- [`278c2413bf4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/278c2413bf4) - Adding and renaming properties to the component. This was introduced to support teams defining and using their own values for the checkboxes.
|
|
109
|
+
- [#32479](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32479) [`278c2413bf4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/278c2413bf4) - Adding and renaming properties to the component. This was introduced to support teams defining and using their own values for the checkboxes.
|
|
98
110
|
|
|
99
111
|
If you overwrite the `canBeContactedDefaultValue` or `enrollInResearchDefaultValue`, you'll need to update the property name in use
|
|
100
112
|
|
|
@@ -109,19 +121,19 @@
|
|
|
109
121
|
|
|
110
122
|
### Major Changes
|
|
111
123
|
|
|
112
|
-
- [`2753f3d9acc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2753f3d9acc) - Use entrypointId instead of embeddedKey and requestTypeId; use API v2
|
|
124
|
+
- [#29949](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29949) [`2753f3d9acc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2753f3d9acc) - Use entrypointId instead of embeddedKey and requestTypeId; use API v2
|
|
113
125
|
|
|
114
126
|
## 10.10.0
|
|
115
127
|
|
|
116
128
|
### Minor Changes
|
|
117
129
|
|
|
118
|
-
- [`854cc74fad4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/854cc74fad4) - [ux] Fix padding around modal close icon
|
|
130
|
+
- [#29877](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29877) [`854cc74fad4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/854cc74fad4) - [ux] Fix padding around modal close icon
|
|
119
131
|
|
|
120
132
|
## 10.9.0
|
|
121
133
|
|
|
122
134
|
### Minor Changes
|
|
123
135
|
|
|
124
|
-
- [`add53eec671`](https://bitbucket.org/atlassian/atlassian-frontend/commits/add53eec671) - [ux] Disabling the submit button while feedback is being submitted
|
|
136
|
+
- [#29873](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29873) [`add53eec671`](https://bitbucket.org/atlassian/atlassian-frontend/commits/add53eec671) - [ux] Disabling the submit button while feedback is being submitted
|
|
125
137
|
|
|
126
138
|
## 10.8.3
|
|
127
139
|
|
|
@@ -133,37 +145,37 @@
|
|
|
133
145
|
|
|
134
146
|
### Patch Changes
|
|
135
147
|
|
|
136
|
-
- [`5c0a3df1927`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c0a3df1927) - [ux] Don't close feedback modal if escape key is pressed
|
|
148
|
+
- [#29251](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29251) [`5c0a3df1927`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c0a3df1927) - [ux] Don't close feedback modal if escape key is pressed
|
|
137
149
|
|
|
138
150
|
## 10.8.1
|
|
139
151
|
|
|
140
152
|
### Patch Changes
|
|
141
153
|
|
|
142
|
-
- [`89da7b835e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89da7b835e1) - [ux] Don't close if clicked outside modal, add 'x' button to header
|
|
154
|
+
- [#29129](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29129) [`89da7b835e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89da7b835e1) - [ux] Don't close if clicked outside modal, add 'x' button to header
|
|
143
155
|
|
|
144
156
|
## 10.8.0
|
|
145
157
|
|
|
146
158
|
### Minor Changes
|
|
147
159
|
|
|
148
|
-
- [`9fcfa8846e9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9fcfa8846e9) - Add properties to allow custom feedback models
|
|
160
|
+
- [#29096](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29096) [`9fcfa8846e9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9fcfa8846e9) - Add properties to allow custom feedback models
|
|
149
161
|
|
|
150
162
|
## 10.7.1
|
|
151
163
|
|
|
152
164
|
### Patch Changes
|
|
153
165
|
|
|
154
|
-
- [`3b897f937e4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3b897f937e4) - add option to exclude entitlement detail and email
|
|
166
|
+
- [#28849](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28849) [`3b897f937e4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3b897f937e4) - add option to exclude entitlement detail and email
|
|
155
167
|
|
|
156
168
|
## 10.7.0
|
|
157
169
|
|
|
158
170
|
### Minor Changes
|
|
159
171
|
|
|
160
|
-
- [`27bfb6f0bb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27bfb6f0bb1) - allow separate entries for gateway and feedback urls
|
|
172
|
+
- [#28756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28756) [`27bfb6f0bb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27bfb6f0bb1) - allow separate entries for gateway and feedback urls
|
|
161
173
|
|
|
162
174
|
## 10.6.10
|
|
163
175
|
|
|
164
176
|
### Patch Changes
|
|
165
177
|
|
|
166
|
-
- [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
178
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324) [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
167
179
|
|
|
168
180
|
## 10.6.9
|
|
169
181
|
|
|
@@ -193,49 +205,49 @@
|
|
|
193
205
|
|
|
194
206
|
### Patch Changes
|
|
195
207
|
|
|
196
|
-
- [`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) - Consolidate In Product Help & Self-Help Experiences ownership
|
|
208
|
+
- [#26424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26424) [`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) - Consolidate In Product Help & Self-Help Experiences ownership
|
|
197
209
|
|
|
198
210
|
## 10.6.4
|
|
199
211
|
|
|
200
212
|
### Patch Changes
|
|
201
213
|
|
|
202
|
-
- [`086761a9ac0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/086761a9ac0) - always send credentials in fetch
|
|
214
|
+
- [#26473](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26473) [`086761a9ac0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/086761a9ac0) - always send credentials in fetch
|
|
203
215
|
|
|
204
216
|
## 10.6.3
|
|
205
217
|
|
|
206
218
|
### Patch Changes
|
|
207
219
|
|
|
208
|
-
- [`9ecee5db726`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9ecee5db726) - Add support for Trello.
|
|
220
|
+
- [#25502](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25502) [`9ecee5db726`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9ecee5db726) - Add support for Trello.
|
|
209
221
|
|
|
210
222
|
## 10.6.2
|
|
211
223
|
|
|
212
224
|
### Patch Changes
|
|
213
225
|
|
|
214
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
226
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
215
227
|
|
|
216
228
|
## 10.6.1
|
|
217
229
|
|
|
218
230
|
### Patch Changes
|
|
219
231
|
|
|
220
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
232
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
221
233
|
|
|
222
234
|
## 10.6.0
|
|
223
235
|
|
|
224
236
|
### Minor Changes
|
|
225
237
|
|
|
226
|
-
- [`346e6dfc562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/346e6dfc562) - Add imported Buffer as webpack workaround
|
|
238
|
+
- [#22901](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22901) [`346e6dfc562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/346e6dfc562) - Add imported Buffer as webpack workaround
|
|
227
239
|
|
|
228
240
|
## 10.5.3
|
|
229
241
|
|
|
230
242
|
### Patch Changes
|
|
231
243
|
|
|
232
|
-
- [`92ec4fcb6f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92ec4fcb6f9) - [ux] Fix message translations not being displayed for the user's language.
|
|
244
|
+
- [#22401](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22401) [`92ec4fcb6f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92ec4fcb6f9) - [ux] Fix message translations not being displayed for the user's language.
|
|
233
245
|
|
|
234
246
|
## 10.5.2
|
|
235
247
|
|
|
236
248
|
### Patch Changes
|
|
237
249
|
|
|
238
|
-
- [`8e34fbcfb52`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e34fbcfb52) - Prevent unnecessary duplicate http call in feedback collector
|
|
250
|
+
- [#22022](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22022) [`8e34fbcfb52`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e34fbcfb52) - Prevent unnecessary duplicate http call in feedback collector
|
|
239
251
|
|
|
240
252
|
## 10.5.1
|
|
241
253
|
|
|
@@ -247,25 +259,25 @@
|
|
|
247
259
|
|
|
248
260
|
### Minor Changes
|
|
249
261
|
|
|
250
|
-
- [`11dd69e5a0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11dd69e5a0f) - Fix details for Bitbucket Cloud feedback
|
|
262
|
+
- [#21587](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21587) [`11dd69e5a0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11dd69e5a0f) - Fix details for Bitbucket Cloud feedback
|
|
251
263
|
|
|
252
264
|
## 10.4.1
|
|
253
265
|
|
|
254
266
|
### Patch Changes
|
|
255
267
|
|
|
256
|
-
- [`55b7d39a841`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55b7d39a841) - Send Cloud Tenant ID with feedback (if available)
|
|
268
|
+
- [#21216](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21216) [`55b7d39a841`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55b7d39a841) - Send Cloud Tenant ID with feedback (if available)
|
|
257
269
|
|
|
258
270
|
## 10.4.0
|
|
259
271
|
|
|
260
272
|
### Minor Changes
|
|
261
273
|
|
|
262
|
-
- [`271e4374f58`](https://bitbucket.org/atlassian/atlassian-frontend/commits/271e4374f58) - [ux] Add support for i18n
|
|
274
|
+
- [#20901](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20901) [`271e4374f58`](https://bitbucket.org/atlassian/atlassian-frontend/commits/271e4374f58) - [ux] Add support for i18n
|
|
263
275
|
|
|
264
276
|
## 10.3.2
|
|
265
277
|
|
|
266
278
|
### Patch Changes
|
|
267
279
|
|
|
268
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
280
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
269
281
|
- Updated dependencies
|
|
270
282
|
|
|
271
283
|
## 10.3.1
|
|
@@ -278,19 +290,19 @@
|
|
|
278
290
|
|
|
279
291
|
### Minor Changes
|
|
280
292
|
|
|
281
|
-
- [`7891017f3f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7891017f3f9) - use hash of userid or email instead of sending PII
|
|
293
|
+
- [#20102](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20102) [`7891017f3f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7891017f3f9) - use hash of userid or email instead of sending PII
|
|
282
294
|
|
|
283
295
|
## 10.2.0
|
|
284
296
|
|
|
285
297
|
### Minor Changes
|
|
286
298
|
|
|
287
|
-
- [`1781fc857bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1781fc857bd) - add email from logged in user
|
|
299
|
+
- [#20100](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20100) [`1781fc857bd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1781fc857bd) - add email from logged in user
|
|
288
300
|
|
|
289
301
|
## 10.1.0
|
|
290
302
|
|
|
291
303
|
### Minor Changes
|
|
292
304
|
|
|
293
|
-
- [`b35b73e9670`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b35b73e9670) - Use correct requestTypeId for feedback collector
|
|
305
|
+
- [#19962](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19962) [`b35b73e9670`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b35b73e9670) - Use correct requestTypeId for feedback collector
|
|
294
306
|
|
|
295
307
|
## 10.0.1
|
|
296
308
|
|
|
@@ -302,7 +314,7 @@
|
|
|
302
314
|
|
|
303
315
|
### Major Changes
|
|
304
316
|
|
|
305
|
-
- [`2f210d2f476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2f210d2f476) - [ux] Add feedback button and place it above proforma form builder
|
|
317
|
+
- [#19806](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19806) [`2f210d2f476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2f210d2f476) - [ux] Add feedback button and place it above proforma form builder
|
|
306
318
|
|
|
307
319
|
## 9.0.2
|
|
308
320
|
|
|
@@ -314,13 +326,13 @@
|
|
|
314
326
|
|
|
315
327
|
### Patch Changes
|
|
316
328
|
|
|
317
|
-
- [`90a4afb3339`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90a4afb3339) - Updating only a comment
|
|
329
|
+
- [#19035](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19035) [`90a4afb3339`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90a4afb3339) - Updating only a comment
|
|
318
330
|
|
|
319
331
|
## 9.0.0
|
|
320
332
|
|
|
321
333
|
### Major Changes
|
|
322
334
|
|
|
323
|
-
- [`de5ad5f78ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de5ad5f78ba) - Use Stargate proxy instead of Cookie
|
|
335
|
+
- [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`de5ad5f78ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de5ad5f78ba) - Use Stargate proxy instead of Cookie
|
|
324
336
|
|
|
325
337
|
### Patch Changes
|
|
326
338
|
|
|
@@ -330,7 +342,7 @@
|
|
|
330
342
|
|
|
331
343
|
### Patch Changes
|
|
332
344
|
|
|
333
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
345
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
334
346
|
- Updated dependencies
|
|
335
347
|
|
|
336
348
|
## 8.0.1
|
|
@@ -343,7 +355,7 @@
|
|
|
343
355
|
|
|
344
356
|
### Major Changes
|
|
345
357
|
|
|
346
|
-
- [`286af9264f7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/286af9264f7) - **Note**: It is a re-release of the wrongly `patched` version `7.1.2` that should have been a `major` release.
|
|
358
|
+
- [#17576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17576) [`286af9264f7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/286af9264f7) - **Note**: It is a re-release of the wrongly `patched` version `7.1.2` that should have been a `major` release.
|
|
347
359
|
|
|
348
360
|
## Breaking Changes
|
|
349
361
|
|
|
@@ -368,7 +380,7 @@
|
|
|
368
380
|
|
|
369
381
|
### Patch Changes
|
|
370
382
|
|
|
371
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
383
|
+
- [#17475](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17475) [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
372
384
|
|
|
373
385
|
## 7.1.2
|
|
374
386
|
|
|
@@ -376,7 +388,7 @@
|
|
|
376
388
|
|
|
377
389
|
_WRONG RELEASE TYPE - DON'T USE_
|
|
378
390
|
|
|
379
|
-
- [`be25f4abde4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be25f4abde4) - ## Breaking Changes
|
|
391
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`be25f4abde4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be25f4abde4) - ## Breaking Changes
|
|
380
392
|
|
|
381
393
|
The new `cookie` property is **required**. This is property is a simple string of the user's cloud session token. Please pass in the entire key/value pair of the cookie. Like:
|
|
382
394
|
|
|
@@ -406,7 +418,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
406
418
|
|
|
407
419
|
### Minor Changes
|
|
408
420
|
|
|
409
|
-
- [`dc5c87fae7d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc5c87fae7d) - Instrumented feedback-collector with the new theming package, `@atlaskit/tokens`.
|
|
421
|
+
- [#14319](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14319) [`dc5c87fae7d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc5c87fae7d) - Instrumented feedback-collector with the new theming package, `@atlaskit/tokens`.
|
|
410
422
|
|
|
411
423
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
412
424
|
|
|
@@ -420,7 +432,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
420
432
|
|
|
421
433
|
### Major Changes
|
|
422
434
|
|
|
423
|
-
- [`b000daa6f08`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b000daa6f08) - [ux] Refactor to use new modal dialog API. This includes button order being reversed so that the primary button is on the right.
|
|
435
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`b000daa6f08`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b000daa6f08) - [ux] Refactor to use new modal dialog API. This includes button order being reversed so that the primary button is on the right.
|
|
424
436
|
|
|
425
437
|
### Patch Changes
|
|
426
438
|
|
|
@@ -432,7 +444,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
432
444
|
|
|
433
445
|
### Minor Changes
|
|
434
446
|
|
|
435
|
-
- [`d8083af448f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8083af448f) - Updated flexibility for localisation and copy custimisation through additional optional props: description, title, submitButtonLabel, cancelButtonLabel, selectOptionDetails
|
|
447
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`d8083af448f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8083af448f) - Updated flexibility for localisation and copy custimisation through additional optional props: description, title, submitButtonLabel, cancelButtonLabel, selectOptionDetails
|
|
436
448
|
|
|
437
449
|
### Patch Changes
|
|
438
450
|
|
|
@@ -448,7 +460,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
448
460
|
|
|
449
461
|
### Patch Changes
|
|
450
462
|
|
|
451
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
463
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
452
464
|
|
|
453
465
|
## 6.1.10
|
|
454
466
|
|
|
@@ -460,20 +472,20 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
460
472
|
|
|
461
473
|
### Patch Changes
|
|
462
474
|
|
|
463
|
-
- [`76f16d562bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76f16d562bc) - Removed styled-components as a peerDependency
|
|
475
|
+
- [#12205](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12205) [`76f16d562bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76f16d562bc) - Removed styled-components as a peerDependency
|
|
464
476
|
|
|
465
477
|
## 6.1.8
|
|
466
478
|
|
|
467
479
|
### Patch Changes
|
|
468
480
|
|
|
469
|
-
- [`b71e86a459f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b71e86a459f) - [ux] fixes bug in feedback collector examples where flag would not autodismiss
|
|
481
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`b71e86a459f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b71e86a459f) - [ux] fixes bug in feedback collector examples where flag would not autodismiss
|
|
470
482
|
- Updated dependencies
|
|
471
483
|
|
|
472
484
|
## 6.1.7
|
|
473
485
|
|
|
474
486
|
### Patch Changes
|
|
475
487
|
|
|
476
|
-
- [`82f5dd62177`](https://bitbucket.org/atlassian/atlassian-frontend/commits/82f5dd62177) - Removed axios as a dev dependency since it's no longer used
|
|
488
|
+
- [#9414](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9414) [`82f5dd62177`](https://bitbucket.org/atlassian/atlassian-frontend/commits/82f5dd62177) - Removed axios as a dev dependency since it's no longer used
|
|
477
489
|
|
|
478
490
|
## 6.1.6
|
|
479
491
|
|
|
@@ -485,7 +497,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
485
497
|
|
|
486
498
|
### Patch Changes
|
|
487
499
|
|
|
488
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
500
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
489
501
|
|
|
490
502
|
## 6.1.4
|
|
491
503
|
|
|
@@ -497,7 +509,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
497
509
|
|
|
498
510
|
### Patch Changes
|
|
499
511
|
|
|
500
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
512
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
501
513
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
502
514
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
503
515
|
|
|
@@ -517,7 +529,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
517
529
|
|
|
518
530
|
### Minor Changes
|
|
519
531
|
|
|
520
|
-
- [`ae57065429`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ae57065429) - Updated flexibility for localisation and copy custimisation through additional optional props: showTypeField, feedbackTitle, feedbackTitleDetails, enrolInResearchLabel, canBeContactedLabel, summaryPlaceholder
|
|
532
|
+
- [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424) [`ae57065429`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ae57065429) - Updated flexibility for localisation and copy custimisation through additional optional props: showTypeField, feedbackTitle, feedbackTitleDetails, enrolInResearchLabel, canBeContactedLabel, summaryPlaceholder
|
|
521
533
|
|
|
522
534
|
### Patch Changes
|
|
523
535
|
|
|
@@ -527,7 +539,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
527
539
|
|
|
528
540
|
### Patch Changes
|
|
529
541
|
|
|
530
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
542
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
531
543
|
|
|
532
544
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
533
545
|
to prevent duplicates of tslib being bundled.
|
|
@@ -536,7 +548,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
536
548
|
|
|
537
549
|
### Patch Changes
|
|
538
550
|
|
|
539
|
-
- [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
551
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
540
552
|
- Updated dependencies
|
|
541
553
|
|
|
542
554
|
## 6.0.1
|
|
@@ -549,7 +561,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
549
561
|
|
|
550
562
|
### Major Changes
|
|
551
563
|
|
|
552
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
564
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
553
565
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
554
566
|
|
|
555
567
|
### Patch Changes
|
|
@@ -560,7 +572,7 @@ _WRONG RELEASE TYPE - DON'T USE_
|
|
|
560
572
|
|
|
561
573
|
### Patch Changes
|
|
562
574
|
|
|
563
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
575
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
564
576
|
|
|
565
577
|
## 5.0.1
|
|
566
578
|
|
|
@@ -23,8 +23,8 @@ var _Truncate = _interopRequireDefault(require("../utils/Truncate"));
|
|
|
23
23
|
var _FeedbackForm = _interopRequireDefault(require("./FeedbackForm"));
|
|
24
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
25
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
|
-
function ownKeys(
|
|
27
|
-
function _objectSpread(
|
|
26
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
29
29
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
30
|
var MAX_SUMMARY_LENGTH_CHARS = 100;
|
|
@@ -136,7 +136,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
136
136
|
}, {
|
|
137
137
|
key: "getPackageVersion",
|
|
138
138
|
value: function getPackageVersion() {
|
|
139
|
-
return "13.0.
|
|
139
|
+
return "13.0.7" || 'Unknown, at least 11.0.0';
|
|
140
140
|
}
|
|
141
141
|
}, {
|
|
142
142
|
key: "getEntitlementInformation",
|
|
@@ -13,8 +13,8 @@ var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-ci
|
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
14
|
var _messages = require("../messages");
|
|
15
15
|
var _IntlProviderWithResolvedMessages = require("./IntlProviderWithResolvedMessages");
|
|
16
|
-
function ownKeys(
|
|
17
|
-
function _objectSpread(
|
|
16
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
var FeedbackFlag = function FeedbackFlag(_ref) {
|
|
19
19
|
var description = _ref.description,
|
|
20
20
|
title = _ref.title;
|
|
@@ -28,8 +28,8 @@ var _IntlProviderWithResolvedMessages = require("./IntlProviderWithResolvedMessa
|
|
|
28
28
|
var _excluded = ["locale"];
|
|
29
29
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
-
function ownKeys(
|
|
32
|
-
function _objectSpread(
|
|
31
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
33
|
var FeedbackForm = function FeedbackForm(_ref) {
|
|
34
34
|
var _ref$showTypeField = _ref.showTypeField,
|
|
35
35
|
showTypeField = _ref$showTypeField === void 0 ? true : _ref$showTypeField,
|
|
@@ -100,11 +100,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
100
100
|
value: 'suggestion'
|
|
101
101
|
}];
|
|
102
102
|
};
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
label: (record === null || record === void 0 ? void 0 : record.empty.selectOptionLabel) || formatMessage(_messages.messages.selectionOptionDefaultLabel),
|
|
106
|
-
value: 'empty'
|
|
107
|
-
};
|
|
103
|
+
var getDefaultPlaceholder = function getDefaultPlaceholder(record) {
|
|
104
|
+
return (record === null || record === void 0 ? void 0 : record.empty.selectOptionLabel) || formatMessage(_messages.messages.selectionOptionDefaultPlaceholder);
|
|
108
105
|
};
|
|
109
106
|
var focusRef = (0, _react.useRef)();
|
|
110
107
|
return /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
@@ -146,32 +143,38 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
146
143
|
}, /*#__PURE__*/_react.default.createElement(_close.default, {
|
|
147
144
|
label: "Close Modal",
|
|
148
145
|
primaryColor: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
149
|
-
}))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/_react.default.createElement(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
146
|
+
}))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
147
|
+
name: "topic",
|
|
148
|
+
label: formatMessage(_messages.messages.selectionOptionDefaultLabel)
|
|
149
|
+
}, function (_ref4) {
|
|
150
|
+
var fieldProps = _ref4.fieldProps;
|
|
151
|
+
return /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, fieldProps, {
|
|
152
|
+
onChange: function onChange(option) {
|
|
153
|
+
if (!option || option instanceof Array) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
setType(option.value);
|
|
157
|
+
},
|
|
158
|
+
menuPortalTarget: document.body,
|
|
159
|
+
styles: {
|
|
160
|
+
menuPortal: function menuPortal(base) {
|
|
161
|
+
return _objectSpread(_objectSpread({}, base), {}, {
|
|
162
|
+
zIndex: 9999
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
options: getSelectOptions(feedbackGroupLabels)
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
,
|
|
169
|
+
ref: focusRef,
|
|
170
|
+
placeholder: getDefaultPlaceholder(feedbackGroupLabels)
|
|
171
|
+
}));
|
|
169
172
|
}) : null, showDefaultTextFields && canShowTextField && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
170
173
|
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] : null,
|
|
171
174
|
isRequired: true,
|
|
172
175
|
name: "description"
|
|
173
|
-
}, function (
|
|
174
|
-
var fieldProps =
|
|
176
|
+
}, function (_ref5) {
|
|
177
|
+
var fieldProps = _ref5.fieldProps;
|
|
175
178
|
return /*#__PURE__*/_react.default.createElement(_textarea.default, (0, _extends2.default)({}, fieldProps, {
|
|
176
179
|
name: "foo",
|
|
177
180
|
minimumRows: 6,
|
|
@@ -183,8 +186,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
183
186
|
}));
|
|
184
187
|
}), !anonymousFeedback && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
185
188
|
name: "can-be-contacted"
|
|
186
|
-
}, function (
|
|
187
|
-
var fieldProps =
|
|
189
|
+
}, function (_ref6) {
|
|
190
|
+
var fieldProps = _ref6.fieldProps;
|
|
188
191
|
return /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, (0, _extends2.default)({}, fieldProps, {
|
|
189
192
|
label: canBeContactedLabel || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.canBeContactedLabel, {
|
|
190
193
|
values: {
|
|
@@ -202,8 +205,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
202
205
|
}));
|
|
203
206
|
}), /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
204
207
|
name: "enroll-in-research-group"
|
|
205
|
-
}, function (
|
|
206
|
-
var fieldProps =
|
|
208
|
+
}, function (_ref7) {
|
|
209
|
+
var fieldProps = _ref7.fieldProps;
|
|
207
210
|
return /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, (0, _extends2.default)({}, fieldProps, {
|
|
208
211
|
label: enrolInResearchLabel || formatMessage(_messages.messages.enrolInResearchLabel),
|
|
209
212
|
onChange: function onChange(event) {
|
|
@@ -228,9 +231,9 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
228
231
|
}, submitButtonLabel || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.submitButtonLabel))));
|
|
229
232
|
}));
|
|
230
233
|
};
|
|
231
|
-
var FeedbackFormWithIntl = function FeedbackFormWithIntl(
|
|
232
|
-
var locale =
|
|
233
|
-
props = (0, _objectWithoutProperties2.default)(
|
|
234
|
+
var FeedbackFormWithIntl = function FeedbackFormWithIntl(_ref8) {
|
|
235
|
+
var locale = _ref8.locale,
|
|
236
|
+
props = (0, _objectWithoutProperties2.default)(_ref8, _excluded);
|
|
234
237
|
return /*#__PURE__*/_react.default.createElement(_IntlProviderWithResolvedMessages.IntlProviderWithResolvedMessages, {
|
|
235
238
|
locale: locale
|
|
236
239
|
}, /*#__PURE__*/_react.default.createElement(FeedbackForm, props));
|
package/dist/cjs/messages.js
CHANGED
|
@@ -88,8 +88,13 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
88
88
|
},
|
|
89
89
|
selectionOptionDefaultLabel: {
|
|
90
90
|
id: 'feedback-collector.option.default.label',
|
|
91
|
-
defaultMessage: '
|
|
92
|
-
description: 'The feedback dropdown list
|
|
91
|
+
defaultMessage: 'Select feedback',
|
|
92
|
+
description: 'The feedback dropdown list label'
|
|
93
|
+
},
|
|
94
|
+
selectionOptionDefaultPlaceholder: {
|
|
95
|
+
id: 'feedback-collector.option.default.placeholder',
|
|
96
|
+
defaultMessage: 'Choose one',
|
|
97
|
+
description: 'The feedback dropdown list placeholder'
|
|
93
98
|
},
|
|
94
99
|
feedbackIconLabel: {
|
|
95
100
|
id: 'proforma-form-builder.feedback-icon-label',
|
|
@@ -81,7 +81,7 @@ export default class FeedbackCollector extends Component {
|
|
|
81
81
|
return FeedbackCollector.defaultProps.url;
|
|
82
82
|
}
|
|
83
83
|
getPackageVersion() {
|
|
84
|
-
return "13.0.
|
|
84
|
+
return "13.0.7" || 'Unknown, at least 11.0.0';
|
|
85
85
|
}
|
|
86
86
|
async getEntitlementInformation() {
|
|
87
87
|
var _entitlementDetails, _entitlementDetails2, _productName, _entitlement, _productEntitlement;
|
|
@@ -61,10 +61,7 @@ const FeedbackForm = ({
|
|
|
61
61
|
label: (record === null || record === void 0 ? void 0 : record.suggestion.selectOptionLabel) || formatMessage(messages.selectionOptionSuggestionLabel),
|
|
62
62
|
value: 'suggestion'
|
|
63
63
|
}];
|
|
64
|
-
const
|
|
65
|
-
label: (record === null || record === void 0 ? void 0 : record.empty.selectOptionLabel) || formatMessage(messages.selectionOptionDefaultLabel),
|
|
66
|
-
value: 'empty'
|
|
67
|
-
});
|
|
64
|
+
const getDefaultPlaceholder = record => (record === null || record === void 0 ? void 0 : record.empty.selectOptionLabel) || formatMessage(messages.selectionOptionDefaultPlaceholder);
|
|
68
65
|
const focusRef = useRef();
|
|
69
66
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
70
67
|
shouldCloseOnOverlayClick: false,
|
|
@@ -95,7 +92,12 @@ const FeedbackForm = ({
|
|
|
95
92
|
}, /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
96
93
|
label: "Close Modal",
|
|
97
94
|
primaryColor: `var(--ds-text-subtle, ${N500})`
|
|
98
|
-
}))), /*#__PURE__*/React.createElement(ModalBody, null, feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/React.createElement(
|
|
95
|
+
}))), /*#__PURE__*/React.createElement(ModalBody, null, feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/React.createElement(Field, {
|
|
96
|
+
name: "topic",
|
|
97
|
+
label: formatMessage(messages.selectionOptionDefaultLabel)
|
|
98
|
+
}, ({
|
|
99
|
+
fieldProps
|
|
100
|
+
}) => /*#__PURE__*/React.createElement(Select, _extends({}, fieldProps, {
|
|
99
101
|
onChange: option => {
|
|
100
102
|
if (!option || option instanceof Array) {
|
|
101
103
|
return;
|
|
@@ -109,12 +111,12 @@ const FeedbackForm = ({
|
|
|
109
111
|
zIndex: 9999
|
|
110
112
|
})
|
|
111
113
|
},
|
|
112
|
-
defaultValue: getDefaultSelectValue(feedbackGroupLabels),
|
|
113
114
|
options: getSelectOptions(feedbackGroupLabels)
|
|
114
115
|
// @ts-ignore
|
|
115
116
|
,
|
|
116
|
-
ref: focusRef
|
|
117
|
-
|
|
117
|
+
ref: focusRef,
|
|
118
|
+
placeholder: getDefaultPlaceholder(feedbackGroupLabels)
|
|
119
|
+
}))) : null, showDefaultTextFields && canShowTextField && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Field, {
|
|
118
120
|
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] : null,
|
|
119
121
|
isRequired: true,
|
|
120
122
|
name: "description"
|
package/dist/es2019/messages.js
CHANGED
|
@@ -82,8 +82,13 @@ export const messages = defineMessages({
|
|
|
82
82
|
},
|
|
83
83
|
selectionOptionDefaultLabel: {
|
|
84
84
|
id: 'feedback-collector.option.default.label',
|
|
85
|
-
defaultMessage: '
|
|
86
|
-
description: 'The feedback dropdown list
|
|
85
|
+
defaultMessage: 'Select feedback',
|
|
86
|
+
description: 'The feedback dropdown list label'
|
|
87
|
+
},
|
|
88
|
+
selectionOptionDefaultPlaceholder: {
|
|
89
|
+
id: 'feedback-collector.option.default.placeholder',
|
|
90
|
+
defaultMessage: 'Choose one',
|
|
91
|
+
description: 'The feedback dropdown list placeholder'
|
|
87
92
|
},
|
|
88
93
|
feedbackIconLabel: {
|
|
89
94
|
id: 'proforma-form-builder.feedback-icon-label',
|
|
@@ -8,8 +8,8 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
15
|
import { Buffer } from 'buffer';
|
|
@@ -126,7 +126,7 @@ var FeedbackCollector = /*#__PURE__*/function (_Component) {
|
|
|
126
126
|
}, {
|
|
127
127
|
key: "getPackageVersion",
|
|
128
128
|
value: function getPackageVersion() {
|
|
129
|
-
return "13.0.
|
|
129
|
+
return "13.0.7" || 'Unknown, at least 11.0.0';
|
|
130
130
|
}
|
|
131
131
|
}, {
|
|
132
132
|
key: "getEntitlementInformation",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { AutoDismissFlag } from '@atlaskit/flag';
|
|
@@ -4,8 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
6
|
var _excluded = ["locale"];
|
|
7
|
-
function ownKeys(
|
|
8
|
-
function _objectSpread(
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import React, { useRef, useState } from 'react';
|
|
11
11
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
@@ -90,11 +90,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
90
90
|
value: 'suggestion'
|
|
91
91
|
}];
|
|
92
92
|
};
|
|
93
|
-
var
|
|
94
|
-
return
|
|
95
|
-
label: (record === null || record === void 0 ? void 0 : record.empty.selectOptionLabel) || formatMessage(messages.selectionOptionDefaultLabel),
|
|
96
|
-
value: 'empty'
|
|
97
|
-
};
|
|
93
|
+
var getDefaultPlaceholder = function getDefaultPlaceholder(record) {
|
|
94
|
+
return (record === null || record === void 0 ? void 0 : record.empty.selectOptionLabel) || formatMessage(messages.selectionOptionDefaultPlaceholder);
|
|
98
95
|
};
|
|
99
96
|
var focusRef = useRef();
|
|
100
97
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
@@ -136,32 +133,38 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
136
133
|
}, /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
137
134
|
label: "Close Modal",
|
|
138
135
|
primaryColor: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
139
|
-
}))), /*#__PURE__*/React.createElement(ModalBody, null, feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/React.createElement(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
136
|
+
}))), /*#__PURE__*/React.createElement(ModalBody, null, feedbackTitleDetails, customContent, showTypeField ? /*#__PURE__*/React.createElement(Field, {
|
|
137
|
+
name: "topic",
|
|
138
|
+
label: formatMessage(messages.selectionOptionDefaultLabel)
|
|
139
|
+
}, function (_ref4) {
|
|
140
|
+
var fieldProps = _ref4.fieldProps;
|
|
141
|
+
return /*#__PURE__*/React.createElement(Select, _extends({}, fieldProps, {
|
|
142
|
+
onChange: function onChange(option) {
|
|
143
|
+
if (!option || option instanceof Array) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
setType(option.value);
|
|
147
|
+
},
|
|
148
|
+
menuPortalTarget: document.body,
|
|
149
|
+
styles: {
|
|
150
|
+
menuPortal: function menuPortal(base) {
|
|
151
|
+
return _objectSpread(_objectSpread({}, base), {}, {
|
|
152
|
+
zIndex: 9999
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
options: getSelectOptions(feedbackGroupLabels)
|
|
157
|
+
// @ts-ignore
|
|
158
|
+
,
|
|
159
|
+
ref: focusRef,
|
|
160
|
+
placeholder: getDefaultPlaceholder(feedbackGroupLabels)
|
|
161
|
+
}));
|
|
159
162
|
}) : null, showDefaultTextFields && canShowTextField && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Field, {
|
|
160
163
|
label: showTypeField ? getFieldLabels(feedbackGroupLabels)[type] : null,
|
|
161
164
|
isRequired: true,
|
|
162
165
|
name: "description"
|
|
163
|
-
}, function (
|
|
164
|
-
var fieldProps =
|
|
166
|
+
}, function (_ref5) {
|
|
167
|
+
var fieldProps = _ref5.fieldProps;
|
|
165
168
|
return /*#__PURE__*/React.createElement(TextArea, _extends({}, fieldProps, {
|
|
166
169
|
name: "foo",
|
|
167
170
|
minimumRows: 6,
|
|
@@ -173,8 +176,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
173
176
|
}));
|
|
174
177
|
}), !anonymousFeedback && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Field, {
|
|
175
178
|
name: "can-be-contacted"
|
|
176
|
-
}, function (
|
|
177
|
-
var fieldProps =
|
|
179
|
+
}, function (_ref6) {
|
|
180
|
+
var fieldProps = _ref6.fieldProps;
|
|
178
181
|
return /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
|
|
179
182
|
label: canBeContactedLabel || /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.canBeContactedLabel, {
|
|
180
183
|
values: {
|
|
@@ -192,8 +195,8 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
192
195
|
}));
|
|
193
196
|
}), /*#__PURE__*/React.createElement(Field, {
|
|
194
197
|
name: "enroll-in-research-group"
|
|
195
|
-
}, function (
|
|
196
|
-
var fieldProps =
|
|
198
|
+
}, function (_ref7) {
|
|
199
|
+
var fieldProps = _ref7.fieldProps;
|
|
197
200
|
return /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
|
|
198
201
|
label: enrolInResearchLabel || formatMessage(messages.enrolInResearchLabel),
|
|
199
202
|
onChange: function onChange(event) {
|
|
@@ -218,9 +221,9 @@ var FeedbackForm = function FeedbackForm(_ref) {
|
|
|
218
221
|
}, submitButtonLabel || /*#__PURE__*/React.createElement(FormattedMessage, messages.submitButtonLabel))));
|
|
219
222
|
}));
|
|
220
223
|
};
|
|
221
|
-
var FeedbackFormWithIntl = function FeedbackFormWithIntl(
|
|
222
|
-
var locale =
|
|
223
|
-
props = _objectWithoutProperties(
|
|
224
|
+
var FeedbackFormWithIntl = function FeedbackFormWithIntl(_ref8) {
|
|
225
|
+
var locale = _ref8.locale,
|
|
226
|
+
props = _objectWithoutProperties(_ref8, _excluded);
|
|
224
227
|
return /*#__PURE__*/React.createElement(IntlProviderWithResolvedMessages, {
|
|
225
228
|
locale: locale
|
|
226
229
|
}, /*#__PURE__*/React.createElement(FeedbackForm, props));
|
package/dist/esm/messages.js
CHANGED
|
@@ -82,8 +82,13 @@ export var messages = defineMessages({
|
|
|
82
82
|
},
|
|
83
83
|
selectionOptionDefaultLabel: {
|
|
84
84
|
id: 'feedback-collector.option.default.label',
|
|
85
|
-
defaultMessage: '
|
|
86
|
-
description: 'The feedback dropdown list
|
|
85
|
+
defaultMessage: 'Select feedback',
|
|
86
|
+
description: 'The feedback dropdown list label'
|
|
87
|
+
},
|
|
88
|
+
selectionOptionDefaultPlaceholder: {
|
|
89
|
+
id: 'feedback-collector.option.default.placeholder',
|
|
90
|
+
defaultMessage: 'Choose one',
|
|
91
|
+
description: 'The feedback dropdown list placeholder'
|
|
87
92
|
},
|
|
88
93
|
feedbackIconLabel: {
|
|
89
94
|
id: 'proforma-form-builder.feedback-icon-label',
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -84,6 +84,11 @@ export declare const messages: {
|
|
|
84
84
|
defaultMessage: string;
|
|
85
85
|
description: string;
|
|
86
86
|
};
|
|
87
|
+
selectionOptionDefaultPlaceholder: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
87
92
|
feedbackIconLabel: {
|
|
88
93
|
id: string;
|
|
89
94
|
defaultMessage: string;
|
|
@@ -84,6 +84,11 @@ export declare const messages: {
|
|
|
84
84
|
defaultMessage: string;
|
|
85
85
|
description: string;
|
|
86
86
|
};
|
|
87
|
+
selectionOptionDefaultPlaceholder: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
87
92
|
feedbackIconLabel: {
|
|
88
93
|
id: string;
|
|
89
94
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/feedback-collector",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.7",
|
|
4
4
|
"description": "A component that collects feedback across Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/button": "^16.
|
|
37
|
+
"@atlaskit/button": "^16.10.0",
|
|
38
38
|
"@atlaskit/checkbox": "^12.6.0",
|
|
39
39
|
"@atlaskit/flag": "^15.2.0",
|
|
40
40
|
"@atlaskit/form": "^8.11.0",
|
|
41
41
|
"@atlaskit/icon": "^21.12.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
42
|
+
"@atlaskit/modal-dialog": "^12.7.0",
|
|
43
43
|
"@atlaskit/section-message": "^6.4.0",
|
|
44
|
-
"@atlaskit/select": "^16.
|
|
44
|
+
"@atlaskit/select": "^16.7.0",
|
|
45
45
|
"@atlaskit/textarea": "^4.7.0",
|
|
46
|
-
"@atlaskit/theme": "^12.
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/theme": "^12.6.0",
|
|
47
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
50
|
},
|