@atlaskit/contextual-survey 2.2.15 → 2.2.17
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 +157 -55
- package/afm-jira/tsconfig.json +45 -0
- package/dist/cjs/components/FeedbackAcknowledgement.js +2 -0
- package/dist/cjs/components/FeedbackScoreButtons.js +42 -6
- package/dist/cjs/components/SignUpPrompt.js +6 -1
- package/dist/cjs/components/SignUpSuccess.js +2 -0
- package/dist/cjs/components/SuccessContainer.js +11 -4
- package/dist/cjs/components/SurveyContainer.js +17 -4
- package/dist/cjs/components/SurveyForm.js +4 -0
- package/dist/cjs/components/SurveyMarshal.js +7 -0
- package/dist/es2019/components/FeedbackAcknowledgement.js +2 -0
- package/dist/es2019/components/FeedbackScoreButtons.js +41 -36
- package/dist/es2019/components/SignUpPrompt.js +6 -1
- package/dist/es2019/components/SignUpSuccess.js +2 -0
- package/dist/es2019/components/SuccessContainer.js +11 -8
- package/dist/es2019/components/SurveyContainer.js +17 -12
- package/dist/es2019/components/SurveyForm.js +4 -0
- package/dist/es2019/components/SurveyMarshal.js +6 -0
- package/dist/esm/components/FeedbackAcknowledgement.js +2 -0
- package/dist/esm/components/FeedbackScoreButtons.js +41 -6
- package/dist/esm/components/SignUpPrompt.js +6 -1
- package/dist/esm/components/SignUpSuccess.js +2 -0
- package/dist/esm/components/SuccessContainer.js +11 -4
- package/dist/esm/components/SurveyContainer.js +17 -4
- package/dist/esm/components/SurveyForm.js +4 -0
- package/dist/esm/components/SurveyMarshal.js +6 -0
- package/dist/types/components/ContextualSurvey.d.ts +1 -1
- package/dist/types/components/SurveyForm.d.ts +3 -3
- package/dist/types/components/SurveyMarshal.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/ContextualSurvey.d.ts +1 -1
- package/dist/types-ts4.5/components/SurveyForm.d.ts +3 -3
- package/dist/types-ts4.5/components/SurveyMarshal.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/docs/0-intro.tsx +33 -31
- package/package.json +73 -75
- package/report.api.md +33 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,52 @@
|
|
|
1
1
|
# @atlaskit/contextual-survey
|
|
2
2
|
|
|
3
|
+
## 2.2.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.2.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.2.15
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [#84829](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84829)
|
|
19
|
+
- [#84829](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84829)
|
|
20
|
+
[`a6299ec57bc3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a6299ec57bc3) -
|
|
21
|
+
Internal change to replace hardcoded font fallback values with an exported constant. There is no
|
|
22
|
+
expected visual difference.
|
|
8
23
|
|
|
9
24
|
## 2.2.14
|
|
10
25
|
|
|
11
26
|
### Patch Changes
|
|
12
27
|
|
|
13
|
-
- [#83176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83176)
|
|
28
|
+
- [#83176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83176)
|
|
29
|
+
[`5c64e4657ef3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c64e4657ef3) -
|
|
30
|
+
[ux] Minor changes to replace deprecated font tokens with new tokens. There may be some very
|
|
31
|
+
slight differences in font size if the previous value was incorrectly applied, and slight
|
|
32
|
+
differences in line height to match the new typography system.
|
|
14
33
|
- Updated dependencies
|
|
15
34
|
|
|
16
35
|
## 2.2.13
|
|
17
36
|
|
|
18
37
|
### Patch Changes
|
|
19
38
|
|
|
20
|
-
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
39
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
40
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
41
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
21
42
|
|
|
22
43
|
## 2.2.12
|
|
23
44
|
|
|
24
45
|
### Patch Changes
|
|
25
46
|
|
|
26
|
-
- [#69022](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69022)
|
|
47
|
+
- [#69022](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69022)
|
|
48
|
+
[`395c74147990`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/395c74147990) -
|
|
49
|
+
Migrate packages to use declarative entry points
|
|
27
50
|
|
|
28
51
|
## 2.2.11
|
|
29
52
|
|
|
@@ -35,13 +58,17 @@
|
|
|
35
58
|
|
|
36
59
|
### Patch Changes
|
|
37
60
|
|
|
38
|
-
- [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029)
|
|
61
|
+
- [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029)
|
|
62
|
+
[`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) -
|
|
63
|
+
Update dependencies that were impacted by HOT-106483 to latest.
|
|
39
64
|
|
|
40
65
|
## 2.2.9
|
|
41
66
|
|
|
42
67
|
### Patch Changes
|
|
43
68
|
|
|
44
|
-
- [#57124](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57124)
|
|
69
|
+
- [#57124](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57124)
|
|
70
|
+
[`7ee324f9de67`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7ee324f9de67) -
|
|
71
|
+
Upgrade Emotion v10 (@emotion/core) to Emotion v11 (@emotion/react). No behaviour change expected.
|
|
45
72
|
|
|
46
73
|
## 2.2.8
|
|
47
74
|
|
|
@@ -77,26 +104,34 @@
|
|
|
77
104
|
|
|
78
105
|
### Patch Changes
|
|
79
106
|
|
|
80
|
-
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
107
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
108
|
+
[`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
|
|
109
|
+
version.json
|
|
81
110
|
- Updated dependencies
|
|
82
111
|
|
|
83
112
|
## 2.2.2
|
|
84
113
|
|
|
85
114
|
### Patch Changes
|
|
86
115
|
|
|
87
|
-
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
116
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
117
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
118
|
+
legacy types are published for TS 4.5-4.8
|
|
88
119
|
|
|
89
120
|
## 2.2.1
|
|
90
121
|
|
|
91
122
|
### Patch Changes
|
|
92
123
|
|
|
93
|
-
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
124
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
125
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
126
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
94
127
|
|
|
95
128
|
## 2.2.0
|
|
96
129
|
|
|
97
130
|
### Minor Changes
|
|
98
131
|
|
|
99
|
-
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
132
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
133
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
134
|
+
minor dependency bump
|
|
100
135
|
|
|
101
136
|
### Patch Changes
|
|
102
137
|
|
|
@@ -106,13 +141,18 @@
|
|
|
106
141
|
|
|
107
142
|
### Patch Changes
|
|
108
143
|
|
|
109
|
-
- [#33208](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33208)
|
|
144
|
+
- [#33208](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33208)
|
|
145
|
+
[`f655e8ed2d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f655e8ed2d2) - Internal
|
|
146
|
+
change to enforce token usage for spacing properties. There is no expected visual or behaviour
|
|
147
|
+
change.
|
|
110
148
|
|
|
111
149
|
## 2.1.11
|
|
112
150
|
|
|
113
151
|
### Patch Changes
|
|
114
152
|
|
|
115
|
-
- [#32162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32162)
|
|
153
|
+
- [#32162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32162)
|
|
154
|
+
[`edf6745b956`](https://bitbucket.org/atlassian/atlassian-frontend/commits/edf6745b956) - Migrated
|
|
155
|
+
use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
116
156
|
|
|
117
157
|
## 2.1.10
|
|
118
158
|
|
|
@@ -124,7 +164,10 @@
|
|
|
124
164
|
|
|
125
165
|
### Patch Changes
|
|
126
166
|
|
|
127
|
-
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
167
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
168
|
+
[`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds
|
|
169
|
+
for this package now pass through a tokens babel plugin, removing runtime invocations of the
|
|
170
|
+
tokens() function and improving performance.
|
|
128
171
|
|
|
129
172
|
## 2.1.8
|
|
130
173
|
|
|
@@ -148,13 +191,17 @@
|
|
|
148
191
|
|
|
149
192
|
### Patch Changes
|
|
150
193
|
|
|
151
|
-
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
194
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
195
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
196
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
152
197
|
|
|
153
198
|
## 2.1.4
|
|
154
199
|
|
|
155
200
|
### Patch Changes
|
|
156
201
|
|
|
157
|
-
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
202
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
203
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
204
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
158
205
|
|
|
159
206
|
## 2.1.3
|
|
160
207
|
|
|
@@ -166,7 +213,9 @@
|
|
|
166
213
|
|
|
167
214
|
### Patch Changes
|
|
168
215
|
|
|
169
|
-
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
216
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
217
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
218
|
+
to TypeScript 4.2.4
|
|
170
219
|
- Updated dependencies
|
|
171
220
|
|
|
172
221
|
## 2.1.1
|
|
@@ -179,10 +228,13 @@
|
|
|
179
228
|
|
|
180
229
|
### Minor Changes
|
|
181
230
|
|
|
182
|
-
- [#19924](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19924)
|
|
231
|
+
- [#19924](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19924)
|
|
232
|
+
[`d943a822f6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d943a822f6a) - [ux]
|
|
233
|
+
Instrumented `@atlaskit/contextual-survey` with the new theming package, `@atlaskit/tokens`.
|
|
183
234
|
|
|
184
|
-
New tokens will be visible only in applications configured to use the new Tokens API (currently in
|
|
185
|
-
These changes are intended to be interoperable with the legacy theme implementation.
|
|
235
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in
|
|
236
|
+
alpha). These changes are intended to be interoperable with the legacy theme implementation.
|
|
237
|
+
Legacy dark mode users should expect no visual or breaking changes.
|
|
186
238
|
|
|
187
239
|
## 2.0.11
|
|
188
240
|
|
|
@@ -200,7 +252,9 @@
|
|
|
200
252
|
|
|
201
253
|
### Patch Changes
|
|
202
254
|
|
|
203
|
-
- [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510)
|
|
255
|
+
- [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510)
|
|
256
|
+
[`cad4332df17`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cad4332df17) - [ux]
|
|
257
|
+
Fixed flickering in context survey by removing theme overrides
|
|
204
258
|
- Updated dependencies
|
|
205
259
|
|
|
206
260
|
## 2.0.8
|
|
@@ -213,7 +267,9 @@
|
|
|
213
267
|
|
|
214
268
|
### Patch Changes
|
|
215
269
|
|
|
216
|
-
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
270
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
271
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
272
|
+
packages using babel rather than tsc
|
|
217
273
|
|
|
218
274
|
## 2.0.6
|
|
219
275
|
|
|
@@ -225,9 +281,12 @@
|
|
|
225
281
|
|
|
226
282
|
### Patch Changes
|
|
227
283
|
|
|
228
|
-
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
229
|
-
|
|
230
|
-
|
|
284
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
285
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
286
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
287
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
288
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
289
|
+
`devDependencies` to denote version that the package was built with.
|
|
231
290
|
|
|
232
291
|
## 2.0.4
|
|
233
292
|
|
|
@@ -251,17 +310,22 @@
|
|
|
251
310
|
|
|
252
311
|
### Patch Changes
|
|
253
312
|
|
|
254
|
-
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
313
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
314
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
315
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
255
316
|
|
|
256
|
-
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
257
|
-
to prevent duplicates of tslib being bundled.
|
|
317
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
318
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
258
319
|
|
|
259
320
|
## 2.0.0
|
|
260
321
|
|
|
261
322
|
### Major Changes
|
|
262
323
|
|
|
263
|
-
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
264
|
-
|
|
324
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
325
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
326
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
327
|
+
IE11. For more information see:
|
|
328
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
265
329
|
|
|
266
330
|
### Patch Changes
|
|
267
331
|
|
|
@@ -271,13 +335,17 @@
|
|
|
271
335
|
|
|
272
336
|
### Patch Changes
|
|
273
337
|
|
|
274
|
-
- [#2884](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2884)
|
|
338
|
+
- [#2884](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2884)
|
|
339
|
+
[`3ba793cffa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ba793cffa) - Update all
|
|
340
|
+
the theme imports in contextual-survey
|
|
275
341
|
|
|
276
342
|
## 1.0.9
|
|
277
343
|
|
|
278
344
|
### Patch Changes
|
|
279
345
|
|
|
280
|
-
- [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677)
|
|
346
|
+
- [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677)
|
|
347
|
+
[`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade
|
|
348
|
+
react-transition-group to latest
|
|
281
349
|
|
|
282
350
|
## 1.0.8
|
|
283
351
|
|
|
@@ -293,7 +361,8 @@
|
|
|
293
361
|
|
|
294
362
|
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
295
363
|
|
|
296
|
-
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
364
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
365
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
297
366
|
|
|
298
367
|
- @atlaskit/docs@8.3.2
|
|
299
368
|
- @atlaskit/button@13.3.7
|
|
@@ -308,7 +377,8 @@
|
|
|
308
377
|
|
|
309
378
|
### Patch Changes
|
|
310
379
|
|
|
311
|
-
- Updated dependencies
|
|
380
|
+
- Updated dependencies
|
|
381
|
+
[c0102a3ea2](https://bitbucket.org/atlassian/atlassian-frontend/commits/c0102a3ea2):
|
|
312
382
|
- @atlaskit/icon@20.0.0
|
|
313
383
|
- @atlaskit/form@7.1.1
|
|
314
384
|
- @atlaskit/docs@8.3.1
|
|
@@ -322,15 +392,23 @@
|
|
|
322
392
|
|
|
323
393
|
- [patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
324
394
|
|
|
325
|
-
Pull in update to form to fix a bug which could cause the internal fieldId to be incorrectly set-
|
|
395
|
+
Pull in update to form to fix a bug which could cause the internal fieldId to be incorrectly set-
|
|
396
|
+
[patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
326
397
|
|
|
327
|
-
Form has been converted to Typescript. TypeScript consumers will now get static type safety. Flow
|
|
398
|
+
Form has been converted to Typescript. TypeScript consumers will now get static type safety. Flow
|
|
399
|
+
types are no longer provided. No API changes.- Updated dependencies
|
|
400
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
328
401
|
|
|
329
|
-
- Updated dependencies
|
|
330
|
-
|
|
331
|
-
- Updated dependencies
|
|
332
|
-
|
|
333
|
-
- Updated dependencies
|
|
402
|
+
- Updated dependencies
|
|
403
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
404
|
+
- Updated dependencies
|
|
405
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
406
|
+
- Updated dependencies
|
|
407
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
408
|
+
- Updated dependencies
|
|
409
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
410
|
+
- Updated dependencies
|
|
411
|
+
[24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
|
|
334
412
|
- @atlaskit/tooltip@15.2.0
|
|
335
413
|
- @atlaskit/form@7.0.0
|
|
336
414
|
- @atlaskit/checkbox@10.1.4
|
|
@@ -346,7 +424,8 @@
|
|
|
346
424
|
|
|
347
425
|
## 1.0.3
|
|
348
426
|
|
|
349
|
-
- Updated dependencies
|
|
427
|
+
- Updated dependencies
|
|
428
|
+
[97bab7fd28](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97bab7fd28):
|
|
350
429
|
- @atlaskit/button@13.3.1
|
|
351
430
|
- @atlaskit/form@6.2.3
|
|
352
431
|
- @atlaskit/checkbox@10.0.0
|
|
@@ -358,7 +437,8 @@
|
|
|
358
437
|
|
|
359
438
|
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
360
439
|
|
|
361
|
-
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
440
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
441
|
+
non-relative imports as relative imports
|
|
362
442
|
|
|
363
443
|
## 1.0.1
|
|
364
444
|
|
|
@@ -378,46 +458,68 @@
|
|
|
378
458
|
|
|
379
459
|
### New component for placement: `<SurveyMarshal />`
|
|
380
460
|
|
|
381
|
-
We no longer require consumers to know anything about `react-transition-group` to use this
|
|
461
|
+
We no longer require consumers to know anything about `react-transition-group` to use this
|
|
462
|
+
package. The `<SurveyMarshal />` takes care of the placement and mounting / unmounting animation
|
|
463
|
+
of the component. It accepts a _function as a child_ which needs to return the
|
|
464
|
+
`<ContextualSurvey />`. This pattern also allows the `<ContextualSurvey />` to not be evaluated
|
|
465
|
+
when it is not mounted
|
|
382
466
|
|
|
383
467
|
```js
|
|
384
468
|
import { SurveyMarshal, ContextualSurvey } from '@atlaskit/contextual-survey';
|
|
385
469
|
|
|
386
|
-
<SurveyMarshal shouldShow={showSurvey}>
|
|
387
|
-
{() => <ContextualSurvey />}
|
|
388
|
-
</SurveyMarshal>;
|
|
470
|
+
<SurveyMarshal shouldShow={showSurvey}>{() => <ContextualSurvey />}</SurveyMarshal>;
|
|
389
471
|
```
|
|
390
472
|
|
|
391
473
|
### Other
|
|
392
474
|
|
|
393
|
-
- `getUserHasAnsweredMailingList: () => boolean | () => Promise<boolean>` has been streamlined to
|
|
394
|
-
|
|
475
|
+
- `getUserHasAnsweredMailingList: () => boolean | () => Promise<boolean>` has been streamlined to
|
|
476
|
+
just be `() => Promise<boolean>`.
|
|
477
|
+
- ~~`onSignUp() => Promise<void>`~~ has become `onMailingListAnswer(answer) => Promise<void>`.
|
|
478
|
+
Previously `onSignUp` was only called if the user selected they wanted to sign up.
|
|
479
|
+
`onMailingListAnswer` will be called when the user selects they want to sign up, as well as if
|
|
480
|
+
they select that they do not want to sign up.
|
|
395
481
|
- 💄 `<ContextualSurvey />` now animates in as well as out
|
|
396
482
|
- 💄 No more scrollbars during closing animation
|
|
397
483
|
- 💄 Fixing spacing for `FeedbackAcknowledgement` screen
|
|
398
484
|
- 💄 Audit dismiss button alignment
|
|
399
485
|
- 🛠Preventing double calls to `onDismiss()`
|
|
400
|
-
- 🛠`onDismiss()` now provided with a `enum:DismissTrigger` to give more information about the
|
|
401
|
-
|
|
402
|
-
- 🛠If
|
|
486
|
+
- 🛠`onDismiss()` now provided with a `enum:DismissTrigger` to give more information about the
|
|
487
|
+
reason for the dismiss
|
|
488
|
+
- 🛠If `<ContextualSurvey />` is dismissed while `onSubmit` is resolving, then
|
|
489
|
+
`getUserHasAnsweredMailingList()` is not called. We do this as we won't be showing the email
|
|
490
|
+
sign up
|
|
491
|
+
- 🛠If the user marks that they do not want to be contacted, then
|
|
492
|
+
`getUserHasAnsweredMailingList()` is not called. Previously `getUserHasAnsweredMailingList()`
|
|
493
|
+
was always called _regardless_ of whether the user wanted to be contacted. The email sign up is
|
|
494
|
+
only showed if the user states that they want to be contacted and if
|
|
495
|
+
`getUserHasAnsweredMailingList` returns `false`. We now don't call
|
|
496
|
+
`getUserHasAnsweredMailingList` if the user has stated they don't want to be contacted as it is
|
|
497
|
+
a precondition.
|
|
403
498
|
- 🚀 The user is able to dismiss the form at any time using the `escape` key
|
|
404
499
|
- 🕵️ After clicking a score the response `textarea` is given browser focus.
|
|
405
|
-
- ✅ New behaviour for the _can contact_ checkbox. It is now not selected by default. When a user
|
|
500
|
+
- ✅ New behaviour for the _can contact_ checkbox. It is now not selected by default. When a user
|
|
501
|
+
types into the response text area for the first time we swap it to checked. From that point the
|
|
502
|
+
user is welcome to change it's value and we do not automatically swap it to checked again. This
|
|
503
|
+
allows people to select a score but not be contacted for it. It also recognises that the
|
|
504
|
+
engagement platform would like to be able to respond to people who provide feedback.
|
|
406
505
|
- ♿️ Added `aria-pressed` to currently selected score
|
|
407
506
|
- 📖 Documentation explaining application flow
|
|
408
507
|
- 👩🔬 Added automated test for happy path
|
|
409
|
-
- ❌ No longer exporting `surveyWidth` and `surveyMargin`. All placement is handled by
|
|
508
|
+
- ❌ No longer exporting `surveyWidth` and `surveyMargin`. All placement is handled by
|
|
509
|
+
`<SurveyMarshal />`
|
|
410
510
|
|
|
411
511
|
## 0.1.3
|
|
412
512
|
|
|
413
|
-
- Updated dependencies
|
|
513
|
+
- Updated dependencies
|
|
514
|
+
[87a2638655](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/87a2638655):
|
|
414
515
|
- @atlaskit/button@13.0.10
|
|
415
516
|
- @atlaskit/form@6.1.2
|
|
416
517
|
- @atlaskit/checkbox@9.0.0
|
|
417
518
|
|
|
418
519
|
## 0.1.2
|
|
419
520
|
|
|
420
|
-
- Updated dependencies
|
|
521
|
+
- Updated dependencies
|
|
522
|
+
[06326ef3f7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06326ef3f7):
|
|
421
523
|
- @atlaskit/docs@8.1.3
|
|
422
524
|
- @atlaskit/button@13.0.9
|
|
423
525
|
- @atlaskit/checkbox@8.0.5
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__contextual-survey/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../design-system/button/afm-jira/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../design-system/checkbox/afm-jira/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/form/afm-jira/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/textarea/afm-jira/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -9,8 +9,10 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _typography = require("@atlaskit/theme/typography");
|
|
10
10
|
var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
13
14
|
var styles = (0, _react.css)({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
16
|
font: "var(--ds-font-heading-xsmall, ".concat(_typography.fontFallback.heading.xsmall, ")"),
|
|
15
17
|
marginTop: 0
|
|
16
18
|
});
|
|
@@ -5,19 +5,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _react = require("@emotion/react");
|
|
10
9
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
11
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
11
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
14
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
15
|
+
var styles = (0, _react.css)({
|
|
16
|
+
textAlign: 'right'
|
|
17
|
+
});
|
|
15
18
|
var tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
|
|
16
19
|
var _default = exports.default = function _default(_ref) {
|
|
17
20
|
var onChange = _ref.onChange,
|
|
18
21
|
value = _ref.value;
|
|
19
22
|
return (0, _react.jsx)("div", null, (0, _react.jsx)("div", {
|
|
20
|
-
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
css: (0, _react.css)({
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'space-between',
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
|
+
'& > * + *': {
|
|
29
|
+
marginLeft: "var(--ds-space-100, 8px)"
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
|
+
'& > *': {
|
|
33
|
+
flex: 1,
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
|
+
'& > button': {
|
|
36
|
+
justifyContent: 'center'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
})
|
|
21
40
|
}, Array.from({
|
|
22
41
|
length: 7
|
|
23
42
|
}, function (_, i) {
|
|
@@ -38,11 +57,28 @@ var _default = exports.default = function _default(_ref) {
|
|
|
38
57
|
shouldFitContainer: true
|
|
39
58
|
}, score));
|
|
40
59
|
})), (0, _react.jsx)("div", {
|
|
41
|
-
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
|
+
css: (0, _react.css)({
|
|
62
|
+
fontSize: '12px',
|
|
63
|
+
fontWeight: 600,
|
|
64
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
65
|
+
display: 'flex',
|
|
66
|
+
marginTop: "var(--ds-space-100, 8px)",
|
|
67
|
+
marginBottom: "var(--ds-space-300, 24px)",
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
69
|
+
'& > span': {
|
|
70
|
+
width: "var(--ds-space-1000, 80px)"
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
42
73
|
"aria-hidden": true
|
|
43
74
|
}, (0, _react.jsx)("span", null, "Strongly disagree"), (0, _react.jsx)("span", {
|
|
44
|
-
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
76
|
+
css: (0, _react.css)({
|
|
77
|
+
textAlign: 'center',
|
|
78
|
+
margin: '0 auto',
|
|
79
|
+
padding: "0 ".concat("var(--ds-space-600, 48px)")
|
|
80
|
+
})
|
|
45
81
|
}, "Neutral"), (0, _react.jsx)("span", {
|
|
46
|
-
css:
|
|
82
|
+
css: styles
|
|
47
83
|
}, "Strongly agree")));
|
|
48
84
|
};
|
|
@@ -15,7 +15,10 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
15
15
|
var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
|
|
16
16
|
/** @jsx jsx */
|
|
17
17
|
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
+
|
|
18
20
|
var styles = (0, _react2.css)({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
22
|
font: "var(--ds-font-heading-xsmall, ".concat(_typography.fontFallback.heading.xsmall, ")"),
|
|
20
23
|
margin: 0
|
|
21
24
|
});
|
|
@@ -48,11 +51,13 @@ var _default = exports.default = function _default(_ref) {
|
|
|
48
51
|
css: styles
|
|
49
52
|
}, "Thanks for your feedback"), (0, _react2.jsx)("p", null, "Are you interested in participating in our research?"), (0, _react2.jsx)("p", null, "Sign up for the", ' ', (0, _react2.jsx)("a", {
|
|
50
53
|
href: "https://www.atlassian.com/research-group"
|
|
51
|
-
}, "Atlassian Research Group"),
|
|
54
|
+
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."), (0, _react2.jsx)("div", {
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
56
|
css: (0, _react2.css)({
|
|
53
57
|
marginTop: "var(--ds-space-400, 32px)",
|
|
54
58
|
display: 'flex',
|
|
55
59
|
justifyContent: 'flex-end',
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
56
61
|
'& > * + *': {
|
|
57
62
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
58
63
|
}
|
|
@@ -10,8 +10,10 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _typography = require("@atlaskit/theme/typography");
|
|
11
11
|
var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
var styles = (0, _react.css)({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
17
|
font: "var(--ds-font-heading-xsmall, ".concat(_typography.fontFallback.heading.xsmall, ")"),
|
|
16
18
|
margin: 0
|
|
17
19
|
});
|
|
@@ -5,18 +5,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _react = require("@emotion/react");
|
|
10
9
|
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
|
|
11
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
|
-
var _templateObject, _templateObject2;
|
|
13
11
|
/** @jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
13
|
var _default = exports.default = function _default(_ref) {
|
|
15
14
|
var children = _ref.children;
|
|
16
15
|
return (0, _react.jsx)("section", {
|
|
17
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
+
css: (0, _react.css)({
|
|
18
|
+
marginLeft: "var(--ds-space-500, 40px)"
|
|
19
|
+
})
|
|
18
20
|
}, (0, _react.jsx)("div", {
|
|
19
|
-
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
+
css: (0, _react.css)({
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
top: "var(--ds-space-300, 24px)",
|
|
25
|
+
left: "var(--ds-space-300, 24px)"
|
|
26
|
+
})
|
|
20
27
|
}, (0, _react.jsx)(_checkCircle.default, {
|
|
21
28
|
label: "",
|
|
22
29
|
"aria-hidden": true,
|