@atlaskit/status 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +49 -37
  2. package/dist/cjs/components/Status.js +2 -3
  3. package/dist/cjs/components/StatusPicker.js +27 -6
  4. package/dist/cjs/components/analytics.js +4 -6
  5. package/dist/cjs/components/constants.js +1 -2
  6. package/dist/cjs/components/i18n.js +2 -3
  7. package/dist/cjs/components/internal/color-palette.js +3 -4
  8. package/dist/cjs/components/internal/color.js +2 -3
  9. package/dist/cjs/i18n/cs.js +2 -3
  10. package/dist/cjs/i18n/da.js +2 -3
  11. package/dist/cjs/i18n/de.js +2 -3
  12. package/dist/cjs/i18n/en.js +2 -3
  13. package/dist/cjs/i18n/en_GB.js +2 -3
  14. package/dist/cjs/i18n/en_ZZ.js +2 -3
  15. package/dist/cjs/i18n/es.js +2 -3
  16. package/dist/cjs/i18n/et.js +2 -3
  17. package/dist/cjs/i18n/fi.js +2 -3
  18. package/dist/cjs/i18n/fr.js +2 -3
  19. package/dist/cjs/i18n/hu.js +2 -3
  20. package/dist/cjs/i18n/is.js +2 -3
  21. package/dist/cjs/i18n/it.js +2 -3
  22. package/dist/cjs/i18n/ja.js +2 -3
  23. package/dist/cjs/i18n/ko.js +2 -3
  24. package/dist/cjs/i18n/languages.js +2 -3
  25. package/dist/cjs/i18n/nb.js +2 -3
  26. package/dist/cjs/i18n/nl.js +2 -3
  27. package/dist/cjs/i18n/pl.js +2 -3
  28. package/dist/cjs/i18n/pt_BR.js +2 -3
  29. package/dist/cjs/i18n/pt_PT.js +2 -3
  30. package/dist/cjs/i18n/ro.js +2 -3
  31. package/dist/cjs/i18n/ru.js +2 -3
  32. package/dist/cjs/i18n/sk.js +2 -3
  33. package/dist/cjs/i18n/sv.js +2 -3
  34. package/dist/cjs/i18n/th.js +2 -3
  35. package/dist/cjs/i18n/tr.js +2 -3
  36. package/dist/cjs/i18n/uk.js +2 -3
  37. package/dist/cjs/i18n/vi.js +2 -3
  38. package/dist/cjs/i18n/zh.js +2 -3
  39. package/dist/cjs/i18n/zh_TW.js +2 -3
  40. package/dist/es2019/components/StatusPicker.js +22 -4
  41. package/dist/es2019/components/analytics.js +1 -1
  42. package/dist/esm/components/StatusPicker.js +26 -4
  43. package/dist/esm/components/analytics.js +1 -1
  44. package/dist/esm/components/internal/color-palette.js +1 -1
  45. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,65 +1,77 @@
1
1
  # @atlaskit/status
2
2
 
3
+ ## 1.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42325) [`58f1fd91d09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/58f1fd91d09) - ED-20512 Set Focus on status input field when tab is pressed
8
+
9
+ ## 1.4.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#40997](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40997) [`02b9339abb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02b9339abb1) - add type definition to newColorIndex
14
+
3
15
  ## 1.4.1
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [`beb32df5147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/beb32df5147) - [ECA11Y-45] [ECA11Y-22] Change the tab key handling the status popup to improve accessibility.
19
+ - [#40389](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40389) [`beb32df5147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/beb32df5147) - [ECA11Y-45] [ECA11Y-22] Change the tab key handling the status popup to improve accessibility.
8
20
 
9
21
  ## 1.4.0
10
22
 
11
23
  ### Minor Changes
12
24
 
13
- - [`11861bb36d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11861bb36d4) - [ux] [ECA11Y-44] [ECA11Y-22] [ECA11Y-19] Change the focus order in the status popup to improve accessibility.
25
+ - [#40207](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40207) [`11861bb36d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11861bb36d4) - [ux] [ECA11Y-44] [ECA11Y-22] [ECA11Y-19] Change the focus order in the status popup to improve accessibility.
14
26
 
15
27
  ## 1.3.7
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
31
+ - [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
20
32
 
21
33
  ## 1.3.6
22
34
 
23
35
  ### Patch Changes
24
36
 
25
- - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
37
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
26
38
  - Updated dependencies
27
39
 
28
40
  ## 1.3.5
29
41
 
30
42
  ### Patch Changes
31
43
 
32
- - [`932b50814f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/932b50814f6) - ED-18001: update android style overrides to vertically align status node
44
+ - [#36794](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36794) [`932b50814f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/932b50814f6) - ED-18001: update android style overrides to vertically align status node
33
45
 
34
46
  ## 1.3.4
35
47
 
36
48
  ### Patch Changes
37
49
 
38
- - [`54ce14a4fd3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54ce14a4fd3) - [ED-18129] Duplicate Enzyme mount helper to avoid circular references in Emoji and Status
50
+ - [#35117](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35117) [`54ce14a4fd3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54ce14a4fd3) - [ED-18129] Duplicate Enzyme mount helper to avoid circular references in Emoji and Status
39
51
 
40
52
  ## 1.3.3
41
53
 
42
54
  ### Patch Changes
43
55
 
44
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
56
+ - [#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
45
57
 
46
58
  ## 1.3.2
47
59
 
48
60
  ### Patch Changes
49
61
 
50
- - [`9369cc38a68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9369cc38a68) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
62
+ - [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771) [`9369cc38a68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9369cc38a68) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
51
63
 
52
64
  ## 1.3.1
53
65
 
54
66
  ### Patch Changes
55
67
 
56
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
68
+ - [#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`
57
69
 
58
70
  ## 1.3.0
59
71
 
60
72
  ### Minor Changes
61
73
 
62
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
74
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
63
75
 
64
76
  ### Patch Changes
65
77
 
@@ -69,7 +81,7 @@
69
81
 
70
82
  ### Patch Changes
71
83
 
72
- - [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
84
+ - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
73
85
 
74
86
  ## 1.2.10
75
87
 
@@ -87,19 +99,19 @@
87
99
 
88
100
  ### Patch Changes
89
101
 
90
- - [`ac0f098f7f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac0f098f7f9) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
102
+ - [#28932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28932) [`ac0f098f7f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac0f098f7f9) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
91
103
 
92
104
  ## 1.2.7
93
105
 
94
106
  ### Patch Changes
95
107
 
96
- - [`dde37c411c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dde37c411c8) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
108
+ - [#28981](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28981) [`dde37c411c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dde37c411c8) - Fixes an oversight in DSP-7701 that causes some rendering issues with lozenges on the Hybrid Renderer on Android
97
109
 
98
110
  ## 1.2.6
99
111
 
100
112
  ### Patch Changes
101
113
 
102
- - [`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.
114
+ - [#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.
103
115
 
104
116
  ## 1.2.5
105
117
 
@@ -117,13 +129,13 @@
117
129
 
118
130
  ### Patch Changes
119
131
 
120
- - [`a6900fd8727`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6900fd8727) - DSP-6671 - Separates icon and border color and adds semantic tokens to status color palette. Updated appearances only visible in applications configured to use the new Tokens API (currently in alpha).
132
+ - [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`a6900fd8727`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a6900fd8727) - DSP-6671 - Separates icon and border color and adds semantic tokens to status color palette. Updated appearances only visible in applications configured to use the new Tokens API (currently in alpha).
121
133
 
122
134
  ## 1.2.2
123
135
 
124
136
  ### Patch Changes
125
137
 
126
- - [`5d2eeac35f7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d2eeac35f7) - Fixes a browser specific bug that occurred in android chromium that led to the component losing focus unexpectedly when selected for editing.
138
+ - [#27076](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27076) [`5d2eeac35f7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d2eeac35f7) - Fixes a browser specific bug that occurred in android chromium that led to the component losing focus unexpectedly when selected for editing.
127
139
 
128
140
  ## 1.2.1
129
141
 
@@ -135,7 +147,7 @@
135
147
 
136
148
  ### Minor Changes
137
149
 
138
- - [`b3be5346e02`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3be5346e02) - Status warning color picker updated to match the color of the underlying lozenge.
150
+ - [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`b3be5346e02`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3be5346e02) - Status warning color picker updated to match the color of the underlying lozenge.
139
151
 
140
152
  ### Patch Changes
141
153
 
@@ -145,26 +157,26 @@
145
157
 
146
158
  ### Patch Changes
147
159
 
148
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
160
+ - [#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`
149
161
 
150
162
  ## 1.1.5
151
163
 
152
164
  ### Patch Changes
153
165
 
154
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
166
+ - [#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`.
155
167
 
156
168
  ## 1.1.4
157
169
 
158
170
  ### Patch Changes
159
171
 
160
- - [`721bc4d7794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/721bc4d7794) - ED-14377 To remove the imports of version.json which is deprecated
172
+ - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`721bc4d7794`](https://bitbucket.org/atlassian/atlassian-frontend/commits/721bc4d7794) - ED-14377 To remove the imports of version.json which is deprecated
161
173
  - [`b3fedfabde4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3fedfabde4) - Changing status colors with tab and shfit-tab
162
174
 
163
175
  ## 1.1.3
164
176
 
165
177
  ### Patch Changes
166
178
 
167
- - [`a4b4e5965d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4b4e5965d9) - [ux] Fixes bug when page scrolls after inserting status in the bottom of the page
179
+ - [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`a4b4e5965d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4b4e5965d9) - [ux] Fixes bug when page scrolls after inserting status in the bottom of the page
168
180
 
169
181
  ## 1.1.2
170
182
 
@@ -176,13 +188,13 @@
176
188
 
177
189
  ### Patch Changes
178
190
 
179
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
191
+ - [#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
180
192
 
181
193
  ## 1.1.0
182
194
 
183
195
  ### Minor Changes
184
196
 
185
- - [`af2dcdc462f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af2dcdc462f) - [ux] Instrumented `@atlaskit/status` with the new theming package, `@atlaskit/tokens`.
197
+ - [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`af2dcdc462f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af2dcdc462f) - [ux] Instrumented `@atlaskit/status` with the new theming package, `@atlaskit/tokens`.
186
198
 
187
199
  New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
188
200
  These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
@@ -196,20 +208,20 @@
196
208
 
197
209
  ### Patch Changes
198
210
 
199
- - [`56cf7af34be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56cf7af34be) - AK-832 implementation navigation arrows for status color palette
211
+ - [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`56cf7af34be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56cf7af34be) - AK-832 implementation navigation arrows for status color palette
200
212
 
201
213
  ## 1.0.1
202
214
 
203
215
  ### Patch Changes
204
216
 
205
- - [`b5375cd4f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5375cd4f66) - AK-316: add aria-label for the status picker input field
217
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`b5375cd4f66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5375cd4f66) - AK-316: add aria-label for the status picker input field
206
218
  - [`85c4e5a71ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85c4e5a71ee) - [AK-837] added role prop for Status component
207
219
 
208
220
  ## 1.0.0
209
221
 
210
222
  ### Major Changes
211
223
 
212
- - [`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) - ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including breaking API changes, types and tests in atlassian-frontend packages
224
+ - [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810) [`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) - ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including breaking API changes, types and tests in atlassian-frontend packages
213
225
 
214
226
  What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages now rely on consumers installing ^5.18.1, otherwise editor usage of react-intl will mismatch with actual installed react-intl APIs.
215
227
  Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
@@ -251,7 +263,7 @@
251
263
 
252
264
  ### Minor Changes
253
265
 
254
- - [`42c7ac64c39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42c7ac64c39) - AK-654 Set a status link label with input
266
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`42c7ac64c39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42c7ac64c39) - AK-654 Set a status link label with input
255
267
 
256
268
  ### Patch Changes
257
269
 
@@ -267,7 +279,7 @@
267
279
 
268
280
  ### Patch Changes
269
281
 
270
- - [`3dd496d620b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3dd496d620b) - Remove unneeded css prop from status component.
282
+ - [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`3dd496d620b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3dd496d620b) - Remove unneeded css prop from status component.
271
283
  - Updated dependencies
272
284
 
273
285
  ## 0.11.1
@@ -280,7 +292,7 @@
280
292
 
281
293
  ### Minor Changes
282
294
 
283
- - [`7ddbf962bd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ddbf962bd9) - [ux] Updated and added new translations
295
+ - [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762) [`7ddbf962bd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ddbf962bd9) - [ux] Updated and added new translations
284
296
 
285
297
  ## 0.10.7
286
298
 
@@ -292,13 +304,13 @@
292
304
 
293
305
  ### Patch Changes
294
306
 
295
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
307
+ - [#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
296
308
 
297
309
  ## 0.10.5
298
310
 
299
311
  ### Patch Changes
300
312
 
301
- - [`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.
313
+ - [#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.
302
314
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
303
315
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
304
316
 
@@ -306,7 +318,7 @@
306
318
 
307
319
  ### Patch Changes
308
320
 
309
- - [`de40912b0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de40912b0a) - Fix types not resolving correctly due to an incorrect types path in package.json
321
+ - [#5406](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5406) [`de40912b0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de40912b0a) - Fix types not resolving correctly due to an incorrect types path in package.json
310
322
 
311
323
  ## 0.10.3
312
324
 
@@ -318,7 +330,7 @@
318
330
 
319
331
  ### Patch Changes
320
332
 
321
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
333
+ - [#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
322
334
 
323
335
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
324
336
  to prevent duplicates of tslib being bundled.
@@ -327,13 +339,13 @@
327
339
 
328
340
  ### Patch Changes
329
341
 
330
- - [`d03bff2147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d03bff2147) - updated translations
342
+ - [#3369](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3369) [`d03bff2147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d03bff2147) - updated translations
331
343
 
332
344
  ## 0.10.0
333
345
 
334
346
  ### Minor Changes
335
347
 
336
- - [`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.
348
+ - [#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.
337
349
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
338
350
 
339
351
  ### Patch Changes
@@ -344,13 +356,13 @@
344
356
 
345
357
  ### Patch Changes
346
358
 
347
- - [`fc83c36503`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc83c36503) - Update translation files via Traduki build
359
+ - [#2576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2576) [`fc83c36503`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc83c36503) - Update translation files via Traduki build
348
360
 
349
361
  ## 0.9.24
350
362
 
351
363
  ### Patch Changes
352
364
 
353
- - [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
365
+ - [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
354
366
 
355
367
  ## 0.9.23
356
368
 
@@ -112,7 +112,7 @@ var StatusInternal = /*#__PURE__*/function (_PureComponent) {
112
112
  return StatusInternal;
113
113
  }(_react.PureComponent);
114
114
  (0, _defineProperty2.default)(StatusInternal, "displayName", 'StatusInternal');
115
- var Status = (0, _analyticsNext.withAnalyticsEvents)({
115
+ var Status = exports.Status = (0, _analyticsNext.withAnalyticsEvents)({
116
116
  onClick: function onClick(createEvent, props) {
117
117
  var localId = props.localId;
118
118
  return (0, _analytics.createStatusAnalyticsAndFire)(createEvent)({
@@ -133,5 +133,4 @@ var Status = (0, _analyticsNext.withAnalyticsEvents)({
133
133
  }
134
134
  });
135
135
  }
136
- })(StatusInternal);
137
- exports.Status = Status;
136
+ })(StatusInternal);
@@ -49,13 +49,21 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
49
49
  }
50
50
  });
51
51
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleInputRef", function (ref) {
52
+ _this.inputRef = ref;
52
53
  if (ref && _this.props.autoFocus) {
53
- // Defer to prevent editor scrolling to top (See FS-3227, also ED-2992)
54
- setTimeout(function () {
55
- ref.focus();
56
- }, 50);
54
+ _this.focusInput();
57
55
  }
58
56
  });
57
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "focusInput", function () {
58
+ if (!_this.inputRef) {
59
+ return;
60
+ }
61
+ // Defer to prevent editor scrolling to top
62
+ _this.autofocusTimeout = setTimeout(function () {
63
+ var _this$inputRef;
64
+ (_this$inputRef = _this.inputRef) === null || _this$inputRef === void 0 || _this$inputRef.focus();
65
+ });
66
+ });
59
67
  return _this;
60
68
  }
61
69
  (0, _createClass2.default)(Picker, [{
@@ -89,11 +97,24 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
89
97
  selectedColor: selectedColor
90
98
  }));
91
99
  }
100
+ }, {
101
+ key: "componentDidUpdate",
102
+ value: function componentDidUpdate() {
103
+ if (this.inputRef && this.props.autoFocus) {
104
+ this.focusInput();
105
+ }
106
+ }
107
+ }, {
108
+ key: "componentWillUnmount",
109
+ value: function componentWillUnmount() {
110
+ if (this.autofocusTimeout !== undefined) {
111
+ clearTimeout(this.autofocusTimeout);
112
+ }
113
+ }
92
114
  }]);
93
115
  return Picker;
94
116
  }(_react.PureComponent);
95
117
  (0, _defineProperty2.default)(Picker, "defaultProps", {
96
118
  autoFocus: true
97
119
  });
98
- var StatusPicker = (0, _reactIntlNext.injectIntl)(Picker);
99
- exports.StatusPicker = StatusPicker;
120
+ var StatusPicker = exports.StatusPicker = (0, _reactIntlNext.injectIntl)(Picker);
@@ -8,11 +8,10 @@ exports.createStatusAnalyticsAndFire = exports.ELEMENTS_CHANNEL = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  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; }
10
10
  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; }
11
- var ELEMENTS_CHANNEL = 'fabric-elements';
12
- exports.ELEMENTS_CHANNEL = ELEMENTS_CHANNEL;
11
+ var ELEMENTS_CHANNEL = exports.ELEMENTS_CHANNEL = 'fabric-elements';
13
12
  var packageName = "@atlaskit/status";
14
- var packageVersion = "1.4.1";
15
- var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
13
+ var packageVersion = "1.4.3";
14
+ var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
16
15
  return function (payload) {
17
16
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
18
17
  eventType: 'ui'
@@ -27,5 +26,4 @@ var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createA
27
26
  event.fire(ELEMENTS_CHANNEL);
28
27
  return event;
29
28
  };
30
- };
31
- exports.createStatusAnalyticsAndFire = createStatusAnalyticsAndFire;
29
+ };
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ANALYTICS_HOVER_DELAY = void 0;
7
- var ANALYTICS_HOVER_DELAY = 1000;
8
- exports.ANALYTICS_HOVER_DELAY = ANALYTICS_HOVER_DELAY;
7
+ var ANALYTICS_HOVER_DELAY = exports.ANALYTICS_HOVER_DELAY = 1000;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.messages = void 0;
7
7
  var _reactIntlNext = require("react-intl-next");
8
- var messages = (0, _reactIntlNext.defineMessages)({
8
+ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
9
  neutralColor: {
10
10
  id: 'fabric.status.color.grey',
11
11
  defaultMessage: 'Grey',
@@ -41,5 +41,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
41
41
  defaultMessage: 'Set a status',
42
42
  description: 'Aria label text for the status input field'
43
43
  }
44
- });
45
- exports.messages = messages;
44
+ });
@@ -23,7 +23,7 @@ var VK_RIGHT = 39; //ArrowRight
23
23
  var VK_UP = 38; //ArrowUp
24
24
  var VK_DOWN = 40; //ArrowDown
25
25
  var VK_TAB = 9;
26
- var _default = function _default(_ref) {
26
+ var _default = exports.default = function _default(_ref) {
27
27
  var _ref$cols = _ref.cols,
28
28
  cols = _ref$cols === void 0 ? 7 : _ref$cols,
29
29
  onClick = _ref.onClick,
@@ -66,7 +66,7 @@ var _default = function _default(_ref) {
66
66
  }
67
67
  setCurrentFocusedColor(newColorIndex);
68
68
  var newRef = colorRefs.current[newColorIndex];
69
- newRef === null || newRef === void 0 ? void 0 : newRef.focus();
69
+ newRef === null || newRef === void 0 || newRef.focus();
70
70
  }, [currentFocusedColor, setCurrentFocusedColor, colorRefs]);
71
71
  return (
72
72
  /**
@@ -105,5 +105,4 @@ var _default = function _default(_ref) {
105
105
  });
106
106
  }))
107
107
  );
108
- };
109
- exports.default = _default;
108
+ };
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
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 buttonStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 24px;\n width: 24px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n box-sizing: border-box;\n overflow: hidden;\n"])), "var(--ds-background-neutral, ".concat(_colors.N900, ")"), "var(--ds-border, ".concat(_colors.N0, ")"));
31
31
  var buttonWrapperStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid transparent;\n margin: 0 ", ";\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:hover {\n border: 1px solid ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(_colors.N50, ")"));
32
- var Color = /*#__PURE__*/function (_PureComponent) {
32
+ var Color = exports.default = /*#__PURE__*/function (_PureComponent) {
33
33
  (0, _inherits2.default)(Color, _PureComponent);
34
34
  var _super = _createSuper(Color);
35
35
  function Color() {
@@ -111,5 +111,4 @@ var Color = /*#__PURE__*/function (_PureComponent) {
111
111
  }
112
112
  }]);
113
113
  return Color;
114
- }(_react.PureComponent);
115
- exports.default = Color;
114
+ }(_react.PureComponent);
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Czech
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Modrá',
17
17
  'fabric.status.color.green': 'Zelená',
18
18
  'fabric.status.color.grey': 'Šedá',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Červená',
21
21
  'fabric.status.color.yellow': 'Žlutá',
22
22
  'fabric.status.input.label': 'Nastavit stav'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Danish (Denmark)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blå',
17
17
  'fabric.status.color.green': 'Grøn',
18
18
  'fabric.status.color.grey': 'Grå',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rød',
21
21
  'fabric.status.color.yellow': 'Gul',
22
22
  'fabric.status.input.label': 'Angiv en status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //German (Germany)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blau',
17
17
  'fabric.status.color.green': 'Grün',
18
18
  'fabric.status.color.grey': 'Grau',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rot',
21
21
  'fabric.status.color.yellow': 'Gelb',
22
22
  'fabric.status.input.label': 'Status festlegen'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blue',
17
17
  'fabric.status.color.green': 'Green',
18
18
  'fabric.status.color.grey': 'Grey',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Red',
21
21
  'fabric.status.color.yellow': 'Yellow',
22
22
  'fabric.status.input.label': 'Set a status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //English (United Kingdom)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blue',
17
17
  'fabric.status.color.green': 'Green',
18
18
  'fabric.status.color.grey': 'Grey',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Red',
21
21
  'fabric.status.color.yellow': 'Yellow',
22
22
  'fabric.status.input.label': 'Set a status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': '⁣⁢Blue‍⁠‌‌⁠‍⁠؜‍⁠؜؜⁣⁤',
17
17
  'fabric.status.color.green': '⁣⁢Green⁡⁡⁡⁠‌‌⁡‌‌⁣⁤',
18
18
  'fabric.status.color.grey': '⁣⁢Grey⁠‌؜؜⁠‍⁡⁡⁡⁠‌؜⁡⁡⁣⁤',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': '⁣⁢Red⁡‌‌‌‌⁠‍‌؜؜⁡‍⁣⁤',
21
21
  'fabric.status.color.yellow': '⁣⁢Yellow‍⁡‍⁣⁤',
22
22
  'fabric.status.input.label': '⁣⁢Set a status‍‌؜‌⁡‍‍؜‍؜‍⁠⁣⁤'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Spanish (International)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Azul',
17
17
  'fabric.status.color.green': 'Verde',
18
18
  'fabric.status.color.grey': 'Gris',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rojo',
21
21
  'fabric.status.color.yellow': 'Amarillo',
22
22
  'fabric.status.input.label': 'Establecer un estado'
23
- };
24
- exports.default = _default;
23
+ };
@@ -11,12 +11,11 @@ exports.default = void 0;
11
11
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
12
12
  */
13
13
  //Estonian
14
- var _default = {
14
+ var _default = exports.default = {
15
15
  'fabric.status.color.blue': 'Sinine',
16
16
  'fabric.status.color.green': 'Roheline',
17
17
  'fabric.status.color.grey': 'Hall',
18
18
  'fabric.status.color.purple': 'Lilla',
19
19
  'fabric.status.color.red': 'Punane',
20
20
  'fabric.status.color.yellow': 'Kollane'
21
- };
22
- exports.default = _default;
21
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Finnish
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Sininen',
17
17
  'fabric.status.color.green': 'Vihreä',
18
18
  'fabric.status.color.grey': 'Harmaa',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Punainen',
21
21
  'fabric.status.color.yellow': 'Keltainen',
22
22
  'fabric.status.input.label': 'Aseta tila'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //French (France)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Bleu',
17
17
  'fabric.status.color.green': 'Vert',
18
18
  'fabric.status.color.grey': 'Gris',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rouge',
21
21
  'fabric.status.color.yellow': 'Jaune',
22
22
  'fabric.status.input.label': 'Définir un état'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Hungarian
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Kék',
17
17
  'fabric.status.color.green': 'Zöld',
18
18
  'fabric.status.color.grey': 'Szürke',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Piros',
21
21
  'fabric.status.color.yellow': 'Sárga',
22
22
  'fabric.status.input.label': 'Állapot beállítása'
23
- };
24
- exports.default = _default;
23
+ };
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  // Icelandic
8
- var _default = {
8
+ var _default = exports.default = {
9
9
  'fabric.status.color.grey': 'Grár',
10
10
  'fabric.status.color.purple': 'Fjólublár',
11
11
  'fabric.status.color.blue': 'Blár',
12
12
  'fabric.status.color.red': 'Rautt',
13
13
  'fabric.status.color.yellow': 'Gulur',
14
14
  'fabric.status.color.green': 'Grænt'
15
- };
16
- exports.default = _default;
15
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Italian (Italy)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blu',
17
17
  'fabric.status.color.green': 'Verde',
18
18
  'fabric.status.color.grey': 'Grigio',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rosso',
21
21
  'fabric.status.color.yellow': 'Giallo',
22
22
  'fabric.status.input.label': 'Imposta uno stato'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Japanese
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': '青',
17
17
  'fabric.status.color.green': '緑',
18
18
  'fabric.status.color.grey': '灰色',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': '赤',
21
21
  'fabric.status.color.yellow': '黄',
22
22
  'fabric.status.input.label': 'ステータスを設定'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Korean
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': '파란색',
17
17
  'fabric.status.color.green': '녹색',
18
18
  'fabric.status.color.grey': '회색',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': '빨강색',
21
21
  'fabric.status.color.yellow': '노란색',
22
22
  'fabric.status.input.label': '상태 설정'
23
- };
24
- exports.default = _default;
23
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = {
7
+ var _default = exports.default = {
8
8
  zh: 'Chinese',
9
9
  cs: 'Czech',
10
10
  da: 'Danish',
@@ -29,5 +29,4 @@ var _default = {
29
29
  sk: 'Slovak',
30
30
  es: 'Spanish',
31
31
  sv: 'Swedish'
32
- };
33
- exports.default = _default;
32
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Norwegian (Bokmål)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blå',
17
17
  'fabric.status.color.green': 'Grønn',
18
18
  'fabric.status.color.grey': 'Grå',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rød',
21
21
  'fabric.status.color.yellow': 'Gul',
22
22
  'fabric.status.input.label': 'Angi en status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Dutch (Netherlands)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blauw',
17
17
  'fabric.status.color.green': 'Groen',
18
18
  'fabric.status.color.grey': 'Grijs',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Rood',
21
21
  'fabric.status.color.yellow': 'Geel',
22
22
  'fabric.status.input.label': 'Status instellen'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Polish (Poland)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Niebieski',
17
17
  'fabric.status.color.green': 'Zielony',
18
18
  'fabric.status.color.grey': 'Szary',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Czerwony',
21
21
  'fabric.status.color.yellow': 'Żółty',
22
22
  'fabric.status.input.label': 'Ustaw status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Portuguese (Brazil)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Azul',
17
17
  'fabric.status.color.green': 'Verde',
18
18
  'fabric.status.color.grey': 'Cinza',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Vermelho',
21
21
  'fabric.status.color.yellow': 'Amarelo',
22
22
  'fabric.status.input.label': 'Definir status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -11,12 +11,11 @@ exports.default = void 0;
11
11
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
12
12
  */
13
13
  //Portuguese (Portugal)
14
- var _default = {
14
+ var _default = exports.default = {
15
15
  'fabric.status.color.blue': 'Azul',
16
16
  'fabric.status.color.green': 'Verde',
17
17
  'fabric.status.color.grey': 'Cinza',
18
18
  'fabric.status.color.purple': 'Roxo',
19
19
  'fabric.status.color.red': 'Vermelho',
20
20
  'fabric.status.color.yellow': 'Amarelo'
21
- };
22
- exports.default = _default;
21
+ };
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  // Romanian
8
- var _default = {
8
+ var _default = exports.default = {
9
9
  'fabric.status.color.grey': 'Gri',
10
10
  'fabric.status.color.purple': 'Violet',
11
11
  'fabric.status.color.blue': 'Albastru',
12
12
  'fabric.status.color.red': 'Roșu',
13
13
  'fabric.status.color.yellow': 'Galben',
14
14
  'fabric.status.color.green': 'Verde'
15
- };
16
- exports.default = _default;
15
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Russian
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Синий',
17
17
  'fabric.status.color.green': 'Зеленый',
18
18
  'fabric.status.color.grey': 'Серый',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Красный',
21
21
  'fabric.status.color.yellow': 'Желтый',
22
22
  'fabric.status.input.label': 'Задать статус'
23
- };
24
- exports.default = _default;
23
+ };
@@ -11,12 +11,11 @@ exports.default = void 0;
11
11
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
12
12
  */
13
13
  //Slovak
14
- var _default = {
14
+ var _default = exports.default = {
15
15
  'fabric.status.color.blue': 'Modrá',
16
16
  'fabric.status.color.green': 'Zelená',
17
17
  'fabric.status.color.grey': 'Šedá',
18
18
  'fabric.status.color.purple': 'Fialová',
19
19
  'fabric.status.color.red': 'Červená',
20
20
  'fabric.status.color.yellow': 'Žltá'
21
- };
22
- exports.default = _default;
21
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Swedish
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Blå',
17
17
  'fabric.status.color.green': 'Grön',
18
18
  'fabric.status.color.grey': 'Grå',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Röd',
21
21
  'fabric.status.color.yellow': 'Gul',
22
22
  'fabric.status.input.label': 'Ange status'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Thai (Thailand)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'น้ำเงิน',
17
17
  'fabric.status.color.green': 'เขียว',
18
18
  'fabric.status.color.grey': 'เทา',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'แดง',
21
21
  'fabric.status.color.yellow': 'เหลือง',
22
22
  'fabric.status.input.label': 'ตั้งค่าสถานะ'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Turkish (Turkey)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Mavi',
17
17
  'fabric.status.color.green': 'Yeşil',
18
18
  'fabric.status.color.grey': 'Gri',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Kırmızı',
21
21
  'fabric.status.color.yellow': 'Sarı',
22
22
  'fabric.status.input.label': 'Durum ayarlayın'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Ukrainian (Ukraine)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Синій',
17
17
  'fabric.status.color.green': 'Зелений',
18
18
  'fabric.status.color.grey': 'Сірий',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Червоний',
21
21
  'fabric.status.color.yellow': 'Жовтий',
22
22
  'fabric.status.input.label': 'Додати статус'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Vietnamese (Vietnam)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': 'Xanh lam',
17
17
  'fabric.status.color.green': 'Xanh lục',
18
18
  'fabric.status.color.grey': 'Xám',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': 'Đỏ',
21
21
  'fabric.status.color.yellow': 'Vàng',
22
22
  'fabric.status.input.label': 'Đặt trạng thái'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Chinese (Simplified)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': '蓝色',
17
17
  'fabric.status.color.green': '绿色',
18
18
  'fabric.status.color.grey': '灰色',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': '红色',
21
21
  'fabric.status.color.yellow': '黄色',
22
22
  'fabric.status.input.label': '设置状态'
23
- };
24
- exports.default = _default;
23
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Chinese (Traditional)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.status.color.blue': '藍色',
17
17
  'fabric.status.color.green': '綠色',
18
18
  'fabric.status.color.grey': '灰色',
@@ -20,5 +20,4 @@ var _default = {
20
20
  'fabric.status.color.red': '紅色',
21
21
  'fabric.status.color.yellow': '黃色',
22
22
  'fabric.status.input.label': '設定狀態'
23
- };
24
- exports.default = _default;
23
+ };
@@ -24,13 +24,21 @@ class Picker extends PureComponent {
24
24
  }
25
25
  });
26
26
  _defineProperty(this, "handleInputRef", ref => {
27
+ this.inputRef = ref;
27
28
  if (ref && this.props.autoFocus) {
28
- // Defer to prevent editor scrolling to top (See FS-3227, also ED-2992)
29
- setTimeout(() => {
30
- ref.focus();
31
- }, 50);
29
+ this.focusInput();
32
30
  }
33
31
  });
32
+ _defineProperty(this, "focusInput", () => {
33
+ if (!this.inputRef) {
34
+ return;
35
+ }
36
+ // Defer to prevent editor scrolling to top
37
+ this.autofocusTimeout = setTimeout(() => {
38
+ var _this$inputRef;
39
+ (_this$inputRef = this.inputRef) === null || _this$inputRef === void 0 ? void 0 : _this$inputRef.focus();
40
+ });
41
+ });
34
42
  }
35
43
  render() {
36
44
  const {
@@ -62,6 +70,16 @@ class Picker extends PureComponent {
62
70
  selectedColor: selectedColor
63
71
  }));
64
72
  }
73
+ componentDidUpdate() {
74
+ if (this.inputRef && this.props.autoFocus) {
75
+ this.focusInput();
76
+ }
77
+ }
78
+ componentWillUnmount() {
79
+ if (this.autofocusTimeout !== undefined) {
80
+ clearTimeout(this.autofocusTimeout);
81
+ }
82
+ }
65
83
  }
66
84
  _defineProperty(Picker, "defaultProps", {
67
85
  autoFocus: true
@@ -1,6 +1,6 @@
1
1
  export const ELEMENTS_CHANNEL = 'fabric-elements';
2
2
  const packageName = "@atlaskit/status";
3
- const packageVersion = "1.4.1";
3
+ const packageVersion = "1.4.3";
4
4
  export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
5
5
  const statusPayload = {
6
6
  ...payload,
@@ -39,13 +39,21 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
39
39
  }
40
40
  });
41
41
  _defineProperty(_assertThisInitialized(_this), "handleInputRef", function (ref) {
42
+ _this.inputRef = ref;
42
43
  if (ref && _this.props.autoFocus) {
43
- // Defer to prevent editor scrolling to top (See FS-3227, also ED-2992)
44
- setTimeout(function () {
45
- ref.focus();
46
- }, 50);
44
+ _this.focusInput();
47
45
  }
48
46
  });
47
+ _defineProperty(_assertThisInitialized(_this), "focusInput", function () {
48
+ if (!_this.inputRef) {
49
+ return;
50
+ }
51
+ // Defer to prevent editor scrolling to top
52
+ _this.autofocusTimeout = setTimeout(function () {
53
+ var _this$inputRef;
54
+ (_this$inputRef = _this.inputRef) === null || _this$inputRef === void 0 || _this$inputRef.focus();
55
+ });
56
+ });
49
57
  return _this;
50
58
  }
51
59
  _createClass(Picker, [{
@@ -79,6 +87,20 @@ var Picker = /*#__PURE__*/function (_PureComponent) {
79
87
  selectedColor: selectedColor
80
88
  }));
81
89
  }
90
+ }, {
91
+ key: "componentDidUpdate",
92
+ value: function componentDidUpdate() {
93
+ if (this.inputRef && this.props.autoFocus) {
94
+ this.focusInput();
95
+ }
96
+ }
97
+ }, {
98
+ key: "componentWillUnmount",
99
+ value: function componentWillUnmount() {
100
+ if (this.autofocusTimeout !== undefined) {
101
+ clearTimeout(this.autofocusTimeout);
102
+ }
103
+ }
82
104
  }]);
83
105
  return Picker;
84
106
  }(PureComponent);
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
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
  export var ELEMENTS_CHANNEL = 'fabric-elements';
5
5
  var packageName = "@atlaskit/status";
6
- var packageVersion = "1.4.1";
6
+ var packageVersion = "1.4.3";
7
7
  export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
8
8
  return function (payload) {
9
9
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -56,7 +56,7 @@ export default (function (_ref) {
56
56
  }
57
57
  setCurrentFocusedColor(newColorIndex);
58
58
  var newRef = colorRefs.current[newColorIndex];
59
- newRef === null || newRef === void 0 ? void 0 : newRef.focus();
59
+ newRef === null || newRef === void 0 || newRef.focus();
60
60
  }, [currentFocusedColor, setCurrentFocusedColor, colorRefs]);
61
61
  return (
62
62
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/status",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Fabric Status React Components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/lozenge": "^11.4.0",
31
31
  "@atlaskit/textfield": "^5.6.0",
32
32
  "@atlaskit/theme": "^12.6.0",
33
- "@atlaskit/tokens": "^1.25.0",
33
+ "@atlaskit/tokens": "^1.28.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "@emotion/react": "^11.7.1"
36
36
  },