@atlaskit/media-table 15.0.18 → 15.0.20
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 +420 -408
- package/compass.yml +4 -3
- package/dist/cjs/component/mediaTable.js +5 -2
- package/dist/cjs/component/nameCell.js +15 -11
- package/dist/cjs/component/styles.js +10 -0
- package/dist/es2019/component/mediaTable.js +4 -1
- package/dist/es2019/component/nameCell.js +15 -11
- package/dist/es2019/component/styles.js +9 -0
- package/dist/esm/component/mediaTable.js +4 -1
- package/dist/esm/component/nameCell.js +15 -11
- package/dist/esm/component/styles.js +9 -0
- package/dist/types/component/downloadButton.d.ts +1 -1
- package/dist/types/component/mediaTable.d.ts +2 -2
- package/dist/types/component/nameCell.d.ts +3 -3
- package/dist/types/component/previewButton.d.ts +1 -1
- package/dist/types/types.d.ts +4 -4
- package/dist/types/util/generateHeadValues.d.ts +1 -1
- package/dist/types/util/generateRowValues.d.ts +1 -1
- package/dist/types/util/getValidTableProps.d.ts +1 -1
- package/dist/types/util/index.d.ts +1 -1
- package/dist/types-ts4.5/component/downloadButton.d.ts +1 -1
- package/dist/types-ts4.5/component/mediaTable.d.ts +2 -2
- package/dist/types-ts4.5/component/nameCell.d.ts +3 -3
- package/dist/types-ts4.5/component/previewButton.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +4 -4
- package/dist/types-ts4.5/util/generateHeadValues.d.ts +1 -1
- package/dist/types-ts4.5/util/generateRowValues.d.ts +1 -1
- package/dist/types-ts4.5/util/getValidTableProps.d.ts +1 -1
- package/dist/types-ts4.5/util/index.d.ts +1 -1
- package/example-helpers/helpers.tsx +95 -107
- package/example-helpers/styles.tsx +18 -23
- package/package.json +77 -79
- package/report.api.md +43 -44
package/CHANGELOG.md
CHANGED
|
@@ -1,813 +1,825 @@
|
|
|
1
1
|
# @atlaskit/media-table
|
|
2
2
|
|
|
3
|
+
## 15.0.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.0.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 15.0.18
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- Updated dependencies
|
|
8
20
|
|
|
9
21
|
## 15.0.17
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
25
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
26
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
27
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
16
28
|
|
|
17
29
|
## 15.0.16
|
|
18
30
|
|
|
19
31
|
### Patch Changes
|
|
20
32
|
|
|
21
|
-
-
|
|
33
|
+
- Updated dependencies
|
|
22
34
|
|
|
23
35
|
## 15.0.15
|
|
24
36
|
|
|
25
37
|
### Patch Changes
|
|
26
38
|
|
|
27
|
-
-
|
|
39
|
+
- Updated dependencies
|
|
28
40
|
|
|
29
41
|
## 15.0.14
|
|
30
42
|
|
|
31
43
|
### Patch Changes
|
|
32
44
|
|
|
33
|
-
-
|
|
45
|
+
- Updated dependencies
|
|
34
46
|
|
|
35
47
|
## 15.0.13
|
|
36
48
|
|
|
37
49
|
### Patch Changes
|
|
38
50
|
|
|
39
|
-
-
|
|
51
|
+
- Updated dependencies
|
|
40
52
|
|
|
41
53
|
## 15.0.12
|
|
42
54
|
|
|
43
55
|
### Patch Changes
|
|
44
56
|
|
|
45
|
-
-
|
|
57
|
+
- Updated dependencies
|
|
46
58
|
|
|
47
59
|
## 15.0.11
|
|
48
60
|
|
|
49
61
|
### Patch Changes
|
|
50
62
|
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
63
|
+
- [#41659](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41659)
|
|
64
|
+
[`a0c97a19dba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a0c97a19dba) - Remove
|
|
65
|
+
unused utils and depreciated exports in mediaClient.
|
|
66
|
+
- Updated dependencies
|
|
55
67
|
|
|
56
68
|
## 15.0.10
|
|
57
69
|
|
|
58
70
|
### Patch Changes
|
|
59
71
|
|
|
60
|
-
-
|
|
72
|
+
- Updated dependencies
|
|
61
73
|
|
|
62
74
|
## 15.0.9
|
|
63
75
|
|
|
64
76
|
### Patch Changes
|
|
65
77
|
|
|
66
|
-
-
|
|
78
|
+
- Updated dependencies
|
|
67
79
|
|
|
68
80
|
## 15.0.8
|
|
69
81
|
|
|
70
82
|
### Patch Changes
|
|
71
83
|
|
|
72
|
-
-
|
|
84
|
+
- Updated dependencies
|
|
73
85
|
|
|
74
86
|
## 15.0.7
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
90
|
+
- [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
|
|
91
|
+
[`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out
|
|
92
|
+
of peer dependency enforcement
|
|
81
93
|
|
|
82
94
|
## 15.0.6
|
|
83
95
|
|
|
84
96
|
### Patch Changes
|
|
85
97
|
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
98
|
+
- [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
|
|
99
|
+
[`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
|
|
100
|
+
postinstall check to enforce internal peer dependencies
|
|
89
101
|
|
|
90
102
|
## 15.0.5
|
|
91
103
|
|
|
92
104
|
### Patch Changes
|
|
93
105
|
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
106
|
+
- [#33728](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33728)
|
|
107
|
+
[`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal
|
|
108
|
+
change to enforce token usage for spacing properties. There is no expected visual or behaviour
|
|
109
|
+
change.
|
|
98
110
|
|
|
99
111
|
## 15.0.4
|
|
100
112
|
|
|
101
113
|
### Patch Changes
|
|
102
114
|
|
|
103
|
-
-
|
|
115
|
+
- Updated dependencies
|
|
104
116
|
|
|
105
117
|
## 15.0.3
|
|
106
118
|
|
|
107
119
|
### Patch Changes
|
|
108
120
|
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
121
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
122
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
123
|
+
legacy types are published for TS 4.5-4.8
|
|
124
|
+
- Updated dependencies
|
|
113
125
|
|
|
114
126
|
## 15.0.2
|
|
115
127
|
|
|
116
128
|
### Patch Changes
|
|
117
129
|
|
|
118
|
-
-
|
|
130
|
+
- Updated dependencies
|
|
119
131
|
|
|
120
132
|
## 15.0.1
|
|
121
133
|
|
|
122
134
|
### Patch Changes
|
|
123
135
|
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
-
|
|
136
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
137
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
138
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
139
|
+
- Updated dependencies
|
|
128
140
|
|
|
129
141
|
## 15.0.0
|
|
130
142
|
|
|
131
143
|
### Minor Changes
|
|
132
144
|
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
145
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
146
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
147
|
+
minor dependency bump
|
|
136
148
|
|
|
137
149
|
### Patch Changes
|
|
138
150
|
|
|
139
|
-
-
|
|
151
|
+
- Updated dependencies
|
|
140
152
|
|
|
141
153
|
## 14.1.7
|
|
142
154
|
|
|
143
155
|
### Patch Changes
|
|
144
156
|
|
|
145
|
-
-
|
|
157
|
+
- Updated dependencies
|
|
146
158
|
|
|
147
159
|
## 14.1.6
|
|
148
160
|
|
|
149
161
|
### Patch Changes
|
|
150
162
|
|
|
151
|
-
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
-
|
|
163
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248)
|
|
164
|
+
[`c3eba8c788d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3eba8c788d) - Updates
|
|
165
|
+
Media Viewer input data object
|
|
166
|
+
- Updated dependencies
|
|
155
167
|
|
|
156
168
|
## 14.1.5
|
|
157
169
|
|
|
158
170
|
### Patch Changes
|
|
159
171
|
|
|
160
|
-
-
|
|
172
|
+
- Updated dependencies
|
|
161
173
|
|
|
162
174
|
## 14.1.4
|
|
163
175
|
|
|
164
176
|
### Patch Changes
|
|
165
177
|
|
|
166
|
-
-
|
|
178
|
+
- Updated dependencies
|
|
167
179
|
|
|
168
180
|
## 14.1.3
|
|
169
181
|
|
|
170
182
|
### Patch Changes
|
|
171
183
|
|
|
172
|
-
-
|
|
184
|
+
- Updated dependencies
|
|
173
185
|
|
|
174
186
|
## 14.1.2
|
|
175
187
|
|
|
176
188
|
### Patch Changes
|
|
177
189
|
|
|
178
|
-
-
|
|
190
|
+
- Updated dependencies
|
|
179
191
|
|
|
180
192
|
## 14.1.1
|
|
181
193
|
|
|
182
194
|
### Patch Changes
|
|
183
195
|
|
|
184
|
-
-
|
|
196
|
+
- Updated dependencies
|
|
185
197
|
|
|
186
198
|
## 14.1.0
|
|
187
199
|
|
|
188
200
|
### Minor Changes
|
|
189
201
|
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
202
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712)
|
|
203
|
+
[`2c1a0c45a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c1a0c45a0b) - [ux]
|
|
204
|
+
Instrumented `@atlaskit/media-table` with the new theming package, `@atlaskit/tokens`.
|
|
193
205
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
206
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in
|
|
207
|
+
alpha). These changes are intended to be interoperable with the legacy theme implementation.
|
|
208
|
+
Legacy dark mode users should expect no visual or breaking changes.
|
|
197
209
|
|
|
198
210
|
### Patch Changes
|
|
199
211
|
|
|
200
|
-
-
|
|
201
|
-
|
|
202
|
-
-
|
|
212
|
+
- [`7fc3932cc78`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fc3932cc78) - [ux]
|
|
213
|
+
Removed hover and focus state styling as the base component applies those already.
|
|
214
|
+
- Updated dependencies
|
|
203
215
|
|
|
204
216
|
## 14.0.0
|
|
205
217
|
|
|
206
218
|
### Major Changes
|
|
207
219
|
|
|
208
|
-
-
|
|
209
|
-
|
|
210
|
-
|
|
220
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710)
|
|
221
|
+
[`64a9be7d742`](https://bitbucket.org/atlassian/atlassian-frontend/commits/64a9be7d742) - [ux] Add
|
|
222
|
+
a preconfiguration for columns with the key 'preview' to display a media preview button
|
|
211
223
|
|
|
212
224
|
### Minor Changes
|
|
213
225
|
|
|
214
|
-
-
|
|
215
|
-
|
|
226
|
+
- [`692477d9854`](https://bitbucket.org/atlassian/atlassian-frontend/commits/692477d9854) - [ux]
|
|
227
|
+
Adds row selection & row highlighting to media table component
|
|
216
228
|
|
|
217
229
|
### Patch Changes
|
|
218
230
|
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
-
|
|
231
|
+
- [`153829bfcb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153829bfcb3) - Upgrade
|
|
232
|
+
caching algorithm library lru-fast to lru_map.
|
|
233
|
+
- Updated dependencies
|
|
222
234
|
|
|
223
235
|
## 13.0.2
|
|
224
236
|
|
|
225
237
|
### Patch Changes
|
|
226
238
|
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
-
|
|
239
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
240
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
241
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
242
|
+
- Updated dependencies
|
|
231
243
|
|
|
232
244
|
## 13.0.1
|
|
233
245
|
|
|
234
246
|
### Patch Changes
|
|
235
247
|
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
-
|
|
248
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
249
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
250
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
251
|
+
- Updated dependencies
|
|
240
252
|
|
|
241
253
|
## 13.0.0
|
|
242
254
|
|
|
243
255
|
### Major Changes
|
|
244
256
|
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
257
|
+
- [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
|
|
258
|
+
[`af775dcb785`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af775dcb785) -
|
|
259
|
+
[MEX-1034] Migrated from styled-components library to @emotion/react in @atlaskit/media-table
|
|
248
260
|
|
|
249
261
|
### Patch Changes
|
|
250
262
|
|
|
251
|
-
-
|
|
263
|
+
- Updated dependencies
|
|
252
264
|
|
|
253
265
|
## 12.0.1
|
|
254
266
|
|
|
255
267
|
### Patch Changes
|
|
256
268
|
|
|
257
|
-
-
|
|
269
|
+
- Updated dependencies
|
|
258
270
|
|
|
259
271
|
## 12.0.0
|
|
260
272
|
|
|
261
273
|
### Patch Changes
|
|
262
274
|
|
|
263
|
-
-
|
|
275
|
+
- Updated dependencies
|
|
264
276
|
|
|
265
277
|
## 11.0.1
|
|
266
278
|
|
|
267
279
|
### Patch Changes
|
|
268
280
|
|
|
269
|
-
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
-
|
|
281
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
282
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
283
|
+
to TypeScript 4.2.4
|
|
284
|
+
- Updated dependencies
|
|
273
285
|
|
|
274
286
|
## 11.0.0
|
|
275
287
|
|
|
276
288
|
### Minor Changes
|
|
277
289
|
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
290
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618)
|
|
291
|
+
[`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove
|
|
292
|
+
RxJs peer dependency
|
|
293
|
+
- [`118f3af101f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/118f3af101f) - Media
|
|
294
|
+
Client APIs has been updated to use MediaSubscribable which provides subscription functionality
|
|
295
|
+
(similar to RxJs observables). It exposes subscribe method that is called with MediaObserver as an
|
|
296
|
+
argument and returns MediaSubscription. MediaSubscription exposes unsubscribe method.
|
|
285
297
|
|
|
286
|
-
|
|
287
|
-
|
|
298
|
+
getFileState: The returned type of this function has changed from RxJs ReplaySubject to
|
|
299
|
+
MediaSubscribable.
|
|
288
300
|
|
|
289
|
-
|
|
290
|
-
|
|
301
|
+
```
|
|
302
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
291
303
|
|
|
292
|
-
|
|
304
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
293
305
|
|
|
294
|
-
|
|
306
|
+
const fileStateSubscribable: MediaSubscribable<FileState> = mediaClient.file.getFileState(id);
|
|
295
307
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
308
|
+
const mediaObserver: MediaObserver<FileState> = {
|
|
309
|
+
next: (fileState) => {
|
|
310
|
+
nextCallback(fileState)
|
|
311
|
+
},
|
|
312
|
+
error: (error) => {
|
|
313
|
+
errorCallback(error)
|
|
314
|
+
},
|
|
315
|
+
};
|
|
304
316
|
|
|
305
|
-
|
|
317
|
+
const subscription: MediaSubscription = fileStateSubscribable.subscribe(mediaObserver);
|
|
306
318
|
|
|
307
|
-
|
|
308
|
-
|
|
319
|
+
subscription.unsubscribe();
|
|
320
|
+
```
|
|
309
321
|
|
|
310
|
-
|
|
311
|
-
|
|
322
|
+
upload: The returned type of this function has changed from RxJs ReplaySubject to
|
|
323
|
+
MediaSubscribable.
|
|
312
324
|
|
|
313
|
-
|
|
314
|
-
|
|
325
|
+
```
|
|
326
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
315
327
|
|
|
316
|
-
|
|
328
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
317
329
|
|
|
318
|
-
|
|
330
|
+
const uploadFileSubscribable: MediaSubscribable<FileState> = mediaClient.file.upload(uploadableFile);
|
|
319
331
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
332
|
+
const mediaObserver: MediaObserver<FileState> = {
|
|
333
|
+
next: (fileState) => {
|
|
334
|
+
nextCallback(fileState)
|
|
335
|
+
},
|
|
336
|
+
error: (error) => {
|
|
337
|
+
errorCallback(error)
|
|
338
|
+
},
|
|
339
|
+
};
|
|
328
340
|
|
|
329
|
-
|
|
341
|
+
const subscription: MediaSubscription = uploadFileSubscribable.subscribe(mediaObserver);
|
|
330
342
|
|
|
331
|
-
|
|
332
|
-
|
|
343
|
+
subscription.unsubscribe();
|
|
344
|
+
```
|
|
333
345
|
|
|
334
|
-
|
|
335
|
-
|
|
346
|
+
getItems: The returned type of this function has changed from RxJs ReplaySubject to
|
|
347
|
+
MediaSubscribable.
|
|
336
348
|
|
|
337
|
-
|
|
338
|
-
|
|
349
|
+
```
|
|
350
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
339
351
|
|
|
340
|
-
|
|
352
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
341
353
|
|
|
342
|
-
|
|
354
|
+
const collectionItemsSubscribable: MediaSubscribable<MediaCollectionItem[]> = mediaClient.collection.getItems(collectionName);
|
|
343
355
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
356
|
+
const mediaObserver: MediaObserver<MediaCollectionItem[]> = {
|
|
357
|
+
next: (items) => {
|
|
358
|
+
nextCallback(items)
|
|
359
|
+
},
|
|
360
|
+
error: (error) => {
|
|
361
|
+
errorCallback(error)
|
|
362
|
+
},
|
|
363
|
+
};
|
|
352
364
|
|
|
353
|
-
|
|
365
|
+
const subscription: MediaSubscription = collectionItemsSubscribable.subscribe(mediaObserver);
|
|
354
366
|
|
|
355
|
-
|
|
356
|
-
|
|
367
|
+
subscription.unsubscribe();
|
|
368
|
+
```
|
|
357
369
|
|
|
358
370
|
### Patch Changes
|
|
359
371
|
|
|
360
|
-
-
|
|
372
|
+
- Updated dependencies
|
|
361
373
|
|
|
362
374
|
## 10.0.3
|
|
363
375
|
|
|
364
376
|
### Patch Changes
|
|
365
377
|
|
|
366
|
-
-
|
|
378
|
+
- Updated dependencies
|
|
367
379
|
|
|
368
380
|
## 10.0.2
|
|
369
381
|
|
|
370
382
|
### Patch Changes
|
|
371
383
|
|
|
372
|
-
-
|
|
373
|
-
|
|
374
|
-
|
|
384
|
+
- [#19261](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19261)
|
|
385
|
+
[`6a5dc78b511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a5dc78b511) - Remove
|
|
386
|
+
dateformat from media packages
|
|
375
387
|
|
|
376
388
|
## 10.0.1
|
|
377
389
|
|
|
378
390
|
### Patch Changes
|
|
379
391
|
|
|
380
|
-
-
|
|
392
|
+
- Updated dependencies
|
|
381
393
|
|
|
382
394
|
## 10.0.0
|
|
383
395
|
|
|
384
396
|
### Major Changes
|
|
385
397
|
|
|
386
|
-
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
### Patch Changes
|
|
431
|
-
|
|
432
|
-
-
|
|
398
|
+
- [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810)
|
|
399
|
+
[`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) -
|
|
400
|
+
ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including
|
|
401
|
+
breaking API changes, types and tests in atlassian-frontend packages
|
|
402
|
+
|
|
403
|
+
What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages
|
|
404
|
+
now rely on consumers installing ^5.18.1, otherwise editor usage of react-intl will mismatch with
|
|
405
|
+
actual installed react-intl APIs. Why change was made: As part of a coordinated upgrade effort
|
|
406
|
+
across AF packages, as react-intl v2 is quite dated. How consumer should update their code: Ensure
|
|
407
|
+
react-intl ^5.18.1 is installed in consuming applications.
|
|
408
|
+
|
|
409
|
+
Upgrade guide: To consume atlassian-frontend packages that use react-intl5 setup a second provider
|
|
410
|
+
for the new version, using an npm alias
|
|
411
|
+
|
|
412
|
+
```js
|
|
413
|
+
"react-intl": "^2.6.0",
|
|
414
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
```js
|
|
418
|
+
import { IntlProvider } from 'react-intl';
|
|
419
|
+
import { IntlProvider as IntlNextProvider } from 'react-intl-next';
|
|
420
|
+
|
|
421
|
+
return (
|
|
422
|
+
<IntlProvider
|
|
423
|
+
key={locale}
|
|
424
|
+
data-test-language={locale}
|
|
425
|
+
locale={locale}
|
|
426
|
+
defaultLocale={DEFAULT_LOCALE}
|
|
427
|
+
messages={messages}
|
|
428
|
+
>
|
|
429
|
+
<IntlNextProvider
|
|
430
|
+
key={locale}
|
|
431
|
+
data-test-language={locale}
|
|
432
|
+
locale={locale}
|
|
433
|
+
defaultLocale={DEFAULT_LOCALE}
|
|
434
|
+
messages={messages}
|
|
435
|
+
>
|
|
436
|
+
{children}
|
|
437
|
+
</IntlNextProvider>
|
|
438
|
+
</IntlProvider>
|
|
439
|
+
);
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Patch Changes
|
|
443
|
+
|
|
444
|
+
- Updated dependencies
|
|
433
445
|
|
|
434
446
|
## 9.0.3
|
|
435
447
|
|
|
436
448
|
### Patch Changes
|
|
437
449
|
|
|
438
|
-
-
|
|
439
|
-
|
|
440
|
-
|
|
450
|
+
- [#15694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15694)
|
|
451
|
+
[`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal
|
|
452
|
+
upgrade of memoize-one to 6.0.0
|
|
441
453
|
|
|
442
454
|
## 9.0.2
|
|
443
455
|
|
|
444
456
|
### Patch Changes
|
|
445
457
|
|
|
446
|
-
-
|
|
458
|
+
- Updated dependencies
|
|
447
459
|
|
|
448
460
|
## 9.0.1
|
|
449
461
|
|
|
450
462
|
### Patch Changes
|
|
451
463
|
|
|
452
|
-
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
-
|
|
464
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864)
|
|
465
|
+
[`b90c0237824`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b90c0237824) - Update
|
|
466
|
+
package.jsons to remove unused dependencies.
|
|
467
|
+
- Updated dependencies
|
|
456
468
|
|
|
457
469
|
## 9.0.0
|
|
458
470
|
|
|
459
471
|
### Patch Changes
|
|
460
472
|
|
|
461
|
-
-
|
|
473
|
+
- Updated dependencies
|
|
462
474
|
|
|
463
475
|
## 8.0.7
|
|
464
476
|
|
|
465
477
|
### Patch Changes
|
|
466
478
|
|
|
467
|
-
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
-
|
|
479
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113)
|
|
480
|
+
[`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added
|
|
481
|
+
RxJS compatiblity notice in Media docs
|
|
482
|
+
- Updated dependencies
|
|
471
483
|
|
|
472
484
|
## 8.0.6
|
|
473
485
|
|
|
474
486
|
### Patch Changes
|
|
475
487
|
|
|
476
|
-
-
|
|
477
|
-
|
|
478
|
-
|
|
488
|
+
- [#10206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10206)
|
|
489
|
+
[`153f5588cab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153f5588cab) -
|
|
490
|
+
VULN-328572 - Upgrade dateformat to address security vuln
|
|
479
491
|
|
|
480
492
|
## 8.0.5
|
|
481
493
|
|
|
482
494
|
### Patch Changes
|
|
483
495
|
|
|
484
|
-
-
|
|
496
|
+
- Updated dependencies
|
|
485
497
|
|
|
486
498
|
## 8.0.4
|
|
487
499
|
|
|
488
500
|
### Patch Changes
|
|
489
501
|
|
|
490
|
-
-
|
|
502
|
+
- Updated dependencies
|
|
491
503
|
|
|
492
504
|
## 8.0.3
|
|
493
505
|
|
|
494
506
|
### Patch Changes
|
|
495
507
|
|
|
496
|
-
-
|
|
508
|
+
- Updated dependencies
|
|
497
509
|
|
|
498
510
|
## 8.0.2
|
|
499
511
|
|
|
500
512
|
### Patch Changes
|
|
501
513
|
|
|
502
|
-
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
-
|
|
514
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571)
|
|
515
|
+
[`6d0d354481`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d0d354481) - BENTO-7803
|
|
516
|
+
Prevent download button from opening the media preview
|
|
517
|
+
- Updated dependencies
|
|
506
518
|
|
|
507
519
|
## 8.0.1
|
|
508
520
|
|
|
509
521
|
### Patch Changes
|
|
510
522
|
|
|
511
|
-
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
-
|
|
523
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
524
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
525
|
+
packages using babel rather than tsc
|
|
526
|
+
- Updated dependencies
|
|
515
527
|
|
|
516
528
|
## 8.0.0
|
|
517
529
|
|
|
518
530
|
### Patch Changes
|
|
519
531
|
|
|
520
|
-
-
|
|
532
|
+
- Updated dependencies
|
|
521
533
|
|
|
522
534
|
## 7.0.0
|
|
523
535
|
|
|
524
536
|
### Major Changes
|
|
525
537
|
|
|
526
|
-
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
538
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516)
|
|
539
|
+
[`4fe0ee2c04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fe0ee2c04) - API
|
|
540
|
+
change: Move rowProps prop to each individual row item to allow different props to be applied to
|
|
541
|
+
each table row
|
|
530
542
|
|
|
531
543
|
### Patch Changes
|
|
532
544
|
|
|
533
|
-
-
|
|
534
|
-
|
|
535
|
-
-
|
|
545
|
+
- [`0135387fdd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0135387fdd) - BENTO-7391
|
|
546
|
+
Add eventType in media-table DownloadButton analytics call
|
|
547
|
+
- Updated dependencies
|
|
536
548
|
|
|
537
549
|
## 6.0.2
|
|
538
550
|
|
|
539
551
|
### Patch Changes
|
|
540
552
|
|
|
541
|
-
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
-
|
|
553
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
554
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
555
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
556
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
557
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
558
|
+
`devDependencies` to denote version that the package was built with.
|
|
559
|
+
- Updated dependencies
|
|
548
560
|
|
|
549
561
|
## 6.0.1
|
|
550
562
|
|
|
551
563
|
### Patch Changes
|
|
552
564
|
|
|
553
|
-
-
|
|
565
|
+
- Updated dependencies
|
|
554
566
|
|
|
555
567
|
## 6.0.0
|
|
556
568
|
|
|
557
569
|
### Minor Changes
|
|
558
570
|
|
|
559
|
-
-
|
|
560
|
-
|
|
561
|
-
|
|
571
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
|
|
572
|
+
[`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated
|
|
573
|
+
to declarative entry points
|
|
562
574
|
|
|
563
575
|
### Patch Changes
|
|
564
576
|
|
|
565
|
-
-
|
|
577
|
+
- Updated dependencies
|
|
566
578
|
|
|
567
579
|
## 5.2.3
|
|
568
580
|
|
|
569
581
|
### Patch Changes
|
|
570
582
|
|
|
571
|
-
-
|
|
583
|
+
- Updated dependencies
|
|
572
584
|
|
|
573
585
|
## 5.2.2
|
|
574
586
|
|
|
575
587
|
### Patch Changes
|
|
576
588
|
|
|
577
|
-
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
-
|
|
581
|
-
|
|
582
|
-
-
|
|
583
|
-
|
|
584
|
-
-
|
|
589
|
+
- [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424)
|
|
590
|
+
[`a7eb47bc69`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7eb47bc69) - Add
|
|
591
|
+
analytic channel to download button analyticsEvent
|
|
592
|
+
- [`92094dd855`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92094dd855) - Remove
|
|
593
|
+
faulty import in mediaTable
|
|
594
|
+
- [`9254b203f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9254b203f9) - Removing
|
|
595
|
+
unused code to be published
|
|
596
|
+
- Updated dependencies
|
|
585
597
|
|
|
586
598
|
## 5.2.1
|
|
587
599
|
|
|
588
600
|
### Patch Changes
|
|
589
601
|
|
|
590
|
-
-
|
|
591
|
-
|
|
592
|
-
|
|
602
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
603
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
604
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
593
605
|
|
|
594
|
-
|
|
595
|
-
|
|
606
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
607
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
596
608
|
|
|
597
609
|
## 5.2.0
|
|
598
610
|
|
|
599
611
|
### Minor Changes
|
|
600
612
|
|
|
601
|
-
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
-
|
|
610
|
-
|
|
613
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823)
|
|
614
|
+
[`c026e59e68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c026e59e68) - Move
|
|
615
|
+
truncateText helper from media-card to media-ui and expose entry point. Export optional NameCell
|
|
616
|
+
component from MediaTable.
|
|
617
|
+
- [`89a1c63251`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89a1c63251) - Add the
|
|
618
|
+
rowProps property, which enables consumers to apply properties to the underlying row component.
|
|
619
|
+
Move truncateText helper from media-card to media-ui and expose entry point. Export optional
|
|
620
|
+
NameCell component from MediaTable.
|
|
621
|
+
- [`6c3c26f10c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c3c26f10c) - Add fixed
|
|
622
|
+
width to download button column in media-table
|
|
611
623
|
|
|
612
624
|
### Patch Changes
|
|
613
625
|
|
|
614
|
-
-
|
|
615
|
-
|
|
616
|
-
-
|
|
617
|
-
|
|
618
|
-
-
|
|
626
|
+
- [`fa6fb5dfbb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa6fb5dfbb) - Removing
|
|
627
|
+
unused code to be published
|
|
628
|
+
- [`dff687b37a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dff687b37a) - Expose
|
|
629
|
+
onKeyPress prop for dynamic-table and use it to show mediaViewer
|
|
630
|
+
- Updated dependencies
|
|
619
631
|
|
|
620
632
|
## 5.1.1
|
|
621
633
|
|
|
622
634
|
### Patch Changes
|
|
623
635
|
|
|
624
|
-
-
|
|
625
|
-
|
|
626
|
-
|
|
636
|
+
- [#3892](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3892)
|
|
637
|
+
[`ff9c75810c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff9c75810c) - Remove
|
|
638
|
+
faulty import in mediaTable
|
|
627
639
|
|
|
628
640
|
## 5.1.0
|
|
629
641
|
|
|
630
642
|
### Minor Changes
|
|
631
643
|
|
|
632
|
-
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
-
|
|
636
|
-
|
|
637
|
-
-
|
|
638
|
-
|
|
639
|
-
|
|
644
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
645
|
+
[`0934ad8798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0934ad8798) - Add
|
|
646
|
+
onPreviewOpen and onPreviewClose props
|
|
647
|
+
- [`6cf40e50ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6cf40e50ea) - Add UI
|
|
648
|
+
analyticsEvent to individual row download button and table row click
|
|
649
|
+
- [`6c554b874b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c554b874b) - Remove
|
|
650
|
+
obsolete collectionName from RowData type. The collectionName should be included in the item
|
|
651
|
+
identifier if it is required.
|
|
640
652
|
|
|
641
653
|
## 5.0.0
|
|
642
654
|
|
|
643
655
|
### Major Changes
|
|
644
656
|
|
|
645
|
-
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
657
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
658
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
659
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
660
|
+
IE11. For more information see:
|
|
661
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
650
662
|
|
|
651
663
|
### Patch Changes
|
|
652
664
|
|
|
653
|
-
-
|
|
665
|
+
- Updated dependencies
|
|
654
666
|
|
|
655
667
|
## 4.0.0
|
|
656
668
|
|
|
657
669
|
### Major Changes
|
|
658
670
|
|
|
659
|
-
-
|
|
660
|
-
|
|
661
|
-
|
|
671
|
+
- [#2763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2763)
|
|
672
|
+
[`198b19dcc7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/198b19dcc7) - Refactor
|
|
673
|
+
items to take a FileIdentifier instead of string id
|
|
662
674
|
|
|
663
675
|
### Minor Changes
|
|
664
676
|
|
|
665
|
-
-
|
|
666
|
-
|
|
667
|
-
-
|
|
668
|
-
|
|
677
|
+
- [`f4b74d89c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4b74d89c1) - Add i18n
|
|
678
|
+
support to media-table
|
|
679
|
+
- [`e44e4959b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e44e4959b3) - Expose
|
|
680
|
+
sortKey and sortOrder as props. Add props documentation
|
|
669
681
|
|
|
670
682
|
### Patch Changes
|
|
671
683
|
|
|
672
|
-
-
|
|
684
|
+
- Updated dependencies
|
|
673
685
|
|
|
674
686
|
## 3.0.1
|
|
675
687
|
|
|
676
688
|
### Patch Changes
|
|
677
689
|
|
|
678
|
-
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
-
|
|
690
|
+
- [#2443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2443)
|
|
691
|
+
[`51aa5587ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51aa5587ef) - bump
|
|
692
|
+
media-client: Remove stack traces from media analytic events
|
|
693
|
+
- Updated dependencies
|
|
682
694
|
|
|
683
695
|
## 3.0.0
|
|
684
696
|
|
|
685
697
|
### Major Changes
|
|
686
698
|
|
|
687
|
-
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
699
|
+
- [#2841](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2841)
|
|
700
|
+
[`4af9cf854d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4af9cf854d) - Refactor
|
|
701
|
+
items to take a FileIdentifier instead of string id Add i18n support to media-table Expose sortKey
|
|
702
|
+
and sortOrder as props. Add props documentation Add isFixedSize to DynamicTableStateless prop Add
|
|
703
|
+
temporary workaround for FileIdentifier type
|
|
692
704
|
|
|
693
705
|
## 2.0.0
|
|
694
706
|
|
|
695
707
|
### Major Changes
|
|
696
708
|
|
|
697
|
-
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
id: 'e558199f-f982-4d23-93eb-313be5998d1b',
|
|
709
|
+
- [#2629](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2629)
|
|
710
|
+
[`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - - New
|
|
711
|
+
implementation of MediaTable with upgraded API
|
|
712
|
+
|
|
713
|
+
**New API Requirements**
|
|
714
|
+
|
|
715
|
+
- `items`: The content of items we want to display on each row
|
|
716
|
+
|
|
717
|
+
```
|
|
718
|
+
RowData {
|
|
719
|
+
[key: string]: React.ReactNode | string;
|
|
720
|
+
collectionName?: string;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
MediaTableItem {
|
|
724
|
+
id: string;
|
|
725
|
+
data: RowData;
|
|
726
|
+
}[]
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
- `columns`: The columns that we want to display for the table. If download button is required,
|
|
730
|
+
need to have the 'download' key defined in columns (MediaTable will override whats in content
|
|
731
|
+
for download).
|
|
732
|
+
|
|
733
|
+
```
|
|
734
|
+
HeadType = {
|
|
735
|
+
cells: [
|
|
736
|
+
{
|
|
737
|
+
key: string | 'download';
|
|
738
|
+
width?: number;
|
|
739
|
+
content: React.ReactNode | string;
|
|
740
|
+
isSortable: boolean;
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
NOTE: Objecty property key in RowData must match with the key in the columns for it to be
|
|
747
|
+
displayed in the table. E.g. Below would only render `file` data in the table, as the columns do
|
|
748
|
+
not have the `trial` key defined within the cells array.
|
|
749
|
+
|
|
750
|
+
```
|
|
751
|
+
const items: MediaTableItem[] = [
|
|
752
|
+
{
|
|
753
|
+
data: {
|
|
754
|
+
file: 'test1',
|
|
755
|
+
trial: 'hi',
|
|
746
756
|
},
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
const columns: HeadType = {
|
|
750
|
-
cells: [
|
|
751
|
-
{
|
|
752
|
-
key: 'file',
|
|
753
|
-
width: 50,
|
|
754
|
-
content: 'File name',
|
|
755
|
-
isSortable: true,
|
|
756
|
-
},
|
|
757
|
-
],
|
|
758
|
-
};
|
|
759
|
-
```
|
|
760
|
-
|
|
761
|
-
**Example Usage**
|
|
762
|
-
|
|
763
|
-
```
|
|
764
|
-
const items: MediaTableItem[] = [
|
|
765
|
-
{
|
|
766
|
-
data: {
|
|
767
|
-
file: 'test1',
|
|
757
|
+
id: 'e558199f-f982-4d23-93eb-313be5998d1b',
|
|
768
758
|
},
|
|
769
|
-
|
|
759
|
+
];
|
|
760
|
+
|
|
761
|
+
const columns: HeadType = {
|
|
762
|
+
cells: [
|
|
763
|
+
{
|
|
764
|
+
key: 'file',
|
|
765
|
+
width: 50,
|
|
766
|
+
content: 'File name',
|
|
767
|
+
isSortable: true,
|
|
768
|
+
},
|
|
769
|
+
],
|
|
770
|
+
};
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
**Example Usage**
|
|
774
|
+
|
|
775
|
+
```
|
|
776
|
+
const items: MediaTableItem[] = [
|
|
777
|
+
{
|
|
778
|
+
data: {
|
|
779
|
+
file: 'test1',
|
|
770
780
|
},
|
|
771
|
-
|
|
781
|
+
id: 'e558199f-f982-4d23-93eb-313be5998d1b',
|
|
782
|
+
},
|
|
783
|
+
]
|
|
772
784
|
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
785
|
+
const columns: HeadType = {
|
|
786
|
+
cells: [
|
|
787
|
+
{
|
|
788
|
+
key: 'file',
|
|
789
|
+
width: 50,
|
|
790
|
+
content: 'File name',
|
|
791
|
+
isSortable: true,
|
|
792
|
+
},
|
|
793
|
+
],
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
<MediaTable
|
|
797
|
+
items={items}
|
|
798
|
+
mediaClientConfig={mediaClientConfig}
|
|
799
|
+
columns={columns}
|
|
800
|
+
itemsPerPage={6}
|
|
801
|
+
totalItems={10}
|
|
802
|
+
isLoading={false}
|
|
803
|
+
/>
|
|
804
|
+
```
|
|
793
805
|
|
|
794
806
|
### Minor Changes
|
|
795
807
|
|
|
796
|
-
-
|
|
797
|
-
|
|
798
|
-
-
|
|
799
|
-
|
|
808
|
+
- [`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - Add
|
|
809
|
+
support for isLoading, pageNumber, onSetPage, and onSort props
|
|
810
|
+
- [`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - Add
|
|
811
|
+
support for pageNumber, itemsPerPage and totalItems props
|
|
800
812
|
|
|
801
813
|
## 1.1.0
|
|
802
814
|
|
|
803
815
|
### Minor Changes
|
|
804
816
|
|
|
805
|
-
-
|
|
806
|
-
|
|
807
|
-
|
|
817
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137)
|
|
818
|
+
[`2c36ac5f82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c36ac5f82) - NOISSUE
|
|
819
|
+
Add es2019 module to media-table package.json
|
|
808
820
|
|
|
809
821
|
### Patch Changes
|
|
810
822
|
|
|
811
|
-
-
|
|
812
|
-
|
|
813
|
-
-
|
|
823
|
+
- [`98f462e2aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98f462e2aa) - Bumping
|
|
824
|
+
use the latest version of @atlaskit/spinner
|
|
825
|
+
- Updated dependencies
|