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