@atlaskit/media-card 77.11.3 → 77.12.1
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 +20 -0
- package/dist/cjs/card/card.js +5 -5
- package/dist/cjs/card/cardView.js +6 -10
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/styles.js +1 -12
- package/dist/cjs/card/ui/wrapper/imageContainer.js +52 -0
- package/dist/cjs/card/ui/wrapper/index.js +8 -1
- package/dist/cjs/card/ui/wrapper/styles.js +1 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +12 -17
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +5 -9
- package/dist/cjs/card/v2/fileCard.js +66 -20
- package/dist/cjs/card/v2/svgView/helpers.js +16 -0
- package/dist/cjs/card/v2/svgView/index.js +12 -0
- package/dist/cjs/card/v2/svgView/svgView.js +134 -0
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +5 -5
- package/dist/es2019/card/cardView.js +8 -12
- package/dist/es2019/card/inlinePlayerWrapperStyles.js +12 -12
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/styles.js +0 -11
- package/dist/es2019/card/ui/wrapper/imageContainer.js +44 -0
- package/dist/es2019/card/ui/wrapper/index.js +2 -1
- package/dist/es2019/card/ui/wrapper/styles.js +21 -21
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +13 -18
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +6 -10
- package/dist/es2019/card/v2/fileCard.js +51 -8
- package/dist/es2019/card/v2/svgView/helpers.js +12 -0
- package/dist/es2019/card/v2/svgView/index.js +1 -0
- package/dist/es2019/card/v2/svgView/svgView.js +113 -0
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +5 -5
- package/dist/esm/card/cardView.js +8 -12
- package/dist/esm/card/inlinePlayerWrapperStyles.js +1 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/styles.js +0 -11
- package/dist/esm/card/ui/wrapper/imageContainer.js +45 -0
- package/dist/esm/card/ui/wrapper/index.js +2 -1
- package/dist/esm/card/ui/wrapper/styles.js +1 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +13 -18
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +6 -10
- package/dist/esm/card/v2/fileCard.js +66 -20
- package/dist/esm/card/v2/svgView/helpers.js +10 -0
- package/dist/esm/card/v2/svgView/index.js +1 -0
- package/dist/esm/card/v2/svgView/svgView.js +123 -0
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/ui/iconWrapper/styles.d.ts +1 -1
- package/dist/types/card/ui/styles.d.ts +0 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types/card/ui/wrapper/imageContainer.d.ts +15 -0
- package/dist/types/card/ui/wrapper/index.d.ts +1 -0
- package/dist/types/card/v2/svgView/helpers.d.ts +3 -0
- package/dist/types/card/v2/svgView/index.d.ts +1 -0
- package/dist/types/card/v2/svgView/svgView.d.ts +31 -0
- package/dist/types/utils/preventClickThrough.d.ts +1 -1
- package/dist/types/utils/viewportDetector.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/styles.d.ts +0 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer.d.ts +15 -0
- package/dist/types-ts4.5/card/ui/wrapper/index.d.ts +1 -0
- package/dist/types-ts4.5/card/v2/svgView/helpers.d.ts +3 -0
- package/dist/types-ts4.5/card/v2/svgView/index.d.ts +1 -0
- package/dist/types-ts4.5/card/v2/svgView/svgView.d.ts +31 -0
- package/dist/types-ts4.5/utils/preventClickThrough.d.ts +1 -1
- package/dist/types-ts4.5/utils/viewportDetector.d.ts +1 -1
- package/example-helpers/DelayedRender.tsx +19 -19
- package/example-helpers/cardViewWrapper.tsx +18 -22
- package/example-helpers/cards.tsx +268 -331
- package/example-helpers/developmentUseMessage.tsx +8 -9
- package/example-helpers/index.tsx +100 -124
- package/example-helpers/selectableCard.tsx +32 -35
- package/example-helpers/ssrHelpers.tsx +19 -29
- package/example-helpers/styles.ts +73 -73
- package/example-helpers/svg-helpers/cardContainer.tsx +24 -0
- package/example-helpers/svg-helpers/controls.tsx +21 -0
- package/example-helpers/svg-helpers/delayApiResponses.ts +31 -0
- package/example-helpers/svg-helpers/dimensionPicker.tsx +116 -0
- package/example-helpers/svg-helpers/index.ts +7 -0
- package/example-helpers/svg-helpers/svgContainer.tsx +32 -0
- package/example-helpers/svg-helpers/toggle.tsx +42 -0
- package/example-helpers/svg-helpers/uploader.ts +44 -0
- package/package.json +13 -5
- package/report.api.md +227 -232
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
createStorybookMediaClientConfig,
|
|
5
|
+
imageFileId,
|
|
6
|
+
unknownFileId,
|
|
7
|
+
errorFileId,
|
|
8
|
+
videoFileId,
|
|
9
|
+
audioFileId,
|
|
10
|
+
docFileId,
|
|
11
|
+
smallImageFileId,
|
|
12
|
+
wideImageFileId,
|
|
13
|
+
largeImageFileId,
|
|
14
14
|
} from '@atlaskit/media-test-helpers';
|
|
15
15
|
import { type FileIdentifier } from '@atlaskit/media-client';
|
|
16
16
|
|
|
@@ -21,82 +21,74 @@ const mediaClientConfig = createStorybookMediaClientConfig();
|
|
|
21
21
|
// standard
|
|
22
22
|
const successIdentifier: FileIdentifier = imageFileId;
|
|
23
23
|
export const standardCards = [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
{
|
|
25
|
+
title: 'Image',
|
|
26
|
+
content: (
|
|
27
|
+
<Card
|
|
28
|
+
identifier={successIdentifier}
|
|
29
|
+
mediaClientConfig={mediaClientConfig}
|
|
30
|
+
appearance="image"
|
|
31
|
+
/>
|
|
32
|
+
),
|
|
33
|
+
},
|
|
34
34
|
];
|
|
35
35
|
|
|
36
36
|
export const cardWithContextId = [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
{
|
|
38
|
+
title: 'Image with parameter',
|
|
39
|
+
content: (
|
|
40
|
+
<Card
|
|
41
|
+
identifier={successIdentifier}
|
|
42
|
+
mediaClientConfig={mediaClientConfig}
|
|
43
|
+
appearance="image"
|
|
44
|
+
contextId="some-id"
|
|
45
|
+
/>
|
|
46
|
+
),
|
|
47
|
+
},
|
|
48
48
|
];
|
|
49
49
|
|
|
50
50
|
//error cards
|
|
51
51
|
export const errorCardsDark = [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
appearance="image"
|
|
59
|
-
/>
|
|
60
|
-
),
|
|
61
|
-
},
|
|
52
|
+
{
|
|
53
|
+
title: 'Image',
|
|
54
|
+
content: (
|
|
55
|
+
<Card identifier={errorFileId} mediaClientConfig={mediaClientConfig} appearance="image" />
|
|
56
|
+
),
|
|
57
|
+
},
|
|
62
58
|
];
|
|
63
59
|
|
|
64
60
|
export const errorCards = [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
appearance="image"
|
|
83
|
-
/>
|
|
84
|
-
),
|
|
85
|
-
},
|
|
61
|
+
{
|
|
62
|
+
title: 'Image',
|
|
63
|
+
content: (
|
|
64
|
+
<Card identifier={errorFileId} mediaClientConfig={mediaClientConfig} appearance="image" />
|
|
65
|
+
),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: 'Image with alt text',
|
|
69
|
+
content: (
|
|
70
|
+
<Card
|
|
71
|
+
identifier={errorFileId}
|
|
72
|
+
mediaClientConfig={mediaClientConfig}
|
|
73
|
+
alt="When an image fails to load, you will see the alt text value here (if present)"
|
|
74
|
+
appearance="image"
|
|
75
|
+
/>
|
|
76
|
+
),
|
|
77
|
+
},
|
|
86
78
|
];
|
|
87
79
|
|
|
88
80
|
export const menuCards = [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
81
|
+
{
|
|
82
|
+
title: 'Image',
|
|
83
|
+
content: (
|
|
84
|
+
<Card
|
|
85
|
+
identifier={successIdentifier}
|
|
86
|
+
mediaClientConfig={mediaClientConfig}
|
|
87
|
+
appearance="image"
|
|
88
|
+
actions={actions}
|
|
89
|
+
/>
|
|
90
|
+
),
|
|
91
|
+
},
|
|
100
92
|
];
|
|
101
93
|
|
|
102
94
|
// api cards
|
|
@@ -104,316 +96,261 @@ export const apiCards = createApiCards('image', successIdentifier);
|
|
|
104
96
|
|
|
105
97
|
// no thumbnail
|
|
106
98
|
export const noThumbnailCards = [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
appearance="image"
|
|
114
|
-
/>
|
|
115
|
-
),
|
|
116
|
-
},
|
|
99
|
+
{
|
|
100
|
+
title: 'Image',
|
|
101
|
+
content: (
|
|
102
|
+
<Card identifier={unknownFileId} mediaClientConfig={mediaClientConfig} appearance="image" />
|
|
103
|
+
),
|
|
104
|
+
},
|
|
117
105
|
];
|
|
118
106
|
|
|
119
107
|
// lazy load
|
|
120
108
|
export const lazyLoadCards = [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
109
|
+
{
|
|
110
|
+
title: 'Lazy',
|
|
111
|
+
content: (
|
|
112
|
+
<Card
|
|
113
|
+
isLazy={true}
|
|
114
|
+
identifier={successIdentifier}
|
|
115
|
+
mediaClientConfig={mediaClientConfig}
|
|
116
|
+
appearance="image"
|
|
117
|
+
/>
|
|
118
|
+
),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: 'No lazy',
|
|
122
|
+
content: (
|
|
123
|
+
<Card
|
|
124
|
+
isLazy={false}
|
|
125
|
+
identifier={successIdentifier}
|
|
126
|
+
mediaClientConfig={mediaClientConfig}
|
|
127
|
+
appearance="image"
|
|
128
|
+
/>
|
|
129
|
+
),
|
|
130
|
+
},
|
|
143
131
|
];
|
|
144
132
|
|
|
145
133
|
// no hover state cards
|
|
146
134
|
export const noHoverStateCards = [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
135
|
+
{
|
|
136
|
+
title: 'Overlay disabled',
|
|
137
|
+
content: (
|
|
138
|
+
<Card
|
|
139
|
+
identifier={successIdentifier}
|
|
140
|
+
mediaClientConfig={mediaClientConfig}
|
|
141
|
+
appearance="image"
|
|
142
|
+
disableOverlay={true}
|
|
143
|
+
/>
|
|
144
|
+
),
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
title: 'Selected',
|
|
148
|
+
content: (
|
|
149
|
+
<Card
|
|
150
|
+
identifier={successIdentifier}
|
|
151
|
+
mediaClientConfig={mediaClientConfig}
|
|
152
|
+
appearance="image"
|
|
153
|
+
disableOverlay={true}
|
|
154
|
+
selectable={true}
|
|
155
|
+
selected={true}
|
|
156
|
+
/>
|
|
157
|
+
),
|
|
158
|
+
},
|
|
171
159
|
];
|
|
172
160
|
|
|
173
161
|
// collection and no collection configuration of files
|
|
174
162
|
export const fileWithNoCollection: FileIdentifier = {
|
|
175
|
-
|
|
176
|
-
|
|
163
|
+
mediaItemType: 'file',
|
|
164
|
+
id: 'e84c54a4-38b2-463f-ae27-5ba043c3e4c2',
|
|
177
165
|
};
|
|
178
166
|
|
|
179
167
|
export const collectionConfigCards = [
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
title: 'File within collection',
|
|
191
|
-
content: (
|
|
192
|
-
<Card
|
|
193
|
-
identifier={successIdentifier}
|
|
194
|
-
mediaClientConfig={mediaClientConfig}
|
|
195
|
-
/>
|
|
196
|
-
),
|
|
197
|
-
},
|
|
168
|
+
{
|
|
169
|
+
title: 'Standalone file (NO collection)',
|
|
170
|
+
content: <Card identifier={fileWithNoCollection} mediaClientConfig={mediaClientConfig} />,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
title: 'File within collection',
|
|
174
|
+
content: <Card identifier={successIdentifier} mediaClientConfig={mediaClientConfig} />,
|
|
175
|
+
},
|
|
198
176
|
];
|
|
199
177
|
|
|
200
178
|
const divStyle = {
|
|
201
|
-
|
|
202
|
-
|
|
179
|
+
width: '100px',
|
|
180
|
+
height: '100px',
|
|
203
181
|
};
|
|
204
182
|
const dimensions = { height: 50, width: 50 };
|
|
205
183
|
|
|
206
184
|
export const lightDefaultCards = [
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
185
|
+
{
|
|
186
|
+
title: 'Medium Loading',
|
|
187
|
+
content: (
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
189
|
+
<div style={divStyle}>
|
|
190
|
+
<CardLoading />
|
|
191
|
+
</div>
|
|
192
|
+
),
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
title: 'Medium Error',
|
|
196
|
+
content: (
|
|
197
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
198
|
+
<div style={divStyle}>
|
|
199
|
+
<CardError />
|
|
200
|
+
</div>
|
|
201
|
+
),
|
|
202
|
+
},
|
|
225
203
|
];
|
|
226
204
|
|
|
227
205
|
export const lightResizedCards = [
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
206
|
+
{
|
|
207
|
+
title: 'Medium Loading',
|
|
208
|
+
content: <CardLoading dimensions={dimensions} />,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
title: 'Medium Error',
|
|
212
|
+
content: <CardError dimensions={dimensions} />,
|
|
213
|
+
},
|
|
236
214
|
];
|
|
237
215
|
|
|
238
216
|
// file cards
|
|
239
217
|
export const videoFileCard = (
|
|
240
|
-
|
|
218
|
+
<Card mediaClientConfig={mediaClientConfig} identifier={videoFileId} />
|
|
241
219
|
);
|
|
242
220
|
|
|
243
221
|
export const imageFileCard = (
|
|
244
|
-
|
|
222
|
+
<Card mediaClientConfig={mediaClientConfig} identifier={imageFileId} />
|
|
245
223
|
);
|
|
246
224
|
|
|
247
225
|
export const audioFileCard = (
|
|
248
|
-
|
|
226
|
+
<Card mediaClientConfig={mediaClientConfig} identifier={audioFileId} />
|
|
249
227
|
);
|
|
250
228
|
|
|
251
|
-
export const docFileCard =
|
|
252
|
-
<Card mediaClientConfig={mediaClientConfig} identifier={docFileId} />
|
|
253
|
-
);
|
|
229
|
+
export const docFileCard = <Card mediaClientConfig={mediaClientConfig} identifier={docFileId} />;
|
|
254
230
|
|
|
255
231
|
export const unknownFileCard = (
|
|
256
|
-
|
|
232
|
+
<Card mediaClientConfig={mediaClientConfig} identifier={unknownFileId} />
|
|
257
233
|
);
|
|
258
234
|
|
|
259
235
|
export const resizingDefaultCards = [
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
<Card
|
|
273
|
-
identifier={wideImageFileId}
|
|
274
|
-
mediaClientConfig={mediaClientConfig}
|
|
275
|
-
/>
|
|
276
|
-
),
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
title: 'Large',
|
|
280
|
-
content: (
|
|
281
|
-
<Card
|
|
282
|
-
identifier={largeImageFileId}
|
|
283
|
-
mediaClientConfig={mediaClientConfig}
|
|
284
|
-
/>
|
|
285
|
-
),
|
|
286
|
-
},
|
|
236
|
+
{
|
|
237
|
+
title: 'Small',
|
|
238
|
+
content: <Card identifier={smallImageFileId} mediaClientConfig={mediaClientConfig} />,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
title: 'Wide',
|
|
242
|
+
content: <Card identifier={wideImageFileId} mediaClientConfig={mediaClientConfig} />,
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
title: 'Large',
|
|
246
|
+
content: <Card identifier={largeImageFileId} mediaClientConfig={mediaClientConfig} />,
|
|
247
|
+
},
|
|
287
248
|
];
|
|
288
249
|
|
|
289
250
|
export const croppedCards = [
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
),
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
title: 'Large',
|
|
312
|
-
content: (
|
|
313
|
-
<Card
|
|
314
|
-
identifier={largeImageFileId}
|
|
315
|
-
mediaClientConfig={mediaClientConfig}
|
|
316
|
-
resizeMode="crop"
|
|
317
|
-
/>
|
|
318
|
-
),
|
|
319
|
-
},
|
|
251
|
+
{
|
|
252
|
+
title: 'Small',
|
|
253
|
+
content: (
|
|
254
|
+
<Card identifier={smallImageFileId} mediaClientConfig={mediaClientConfig} resizeMode="crop" />
|
|
255
|
+
),
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
title: 'Wide',
|
|
259
|
+
content: (
|
|
260
|
+
<Card identifier={wideImageFileId} mediaClientConfig={mediaClientConfig} resizeMode="crop" />
|
|
261
|
+
),
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
title: 'Large',
|
|
265
|
+
content: (
|
|
266
|
+
<Card identifier={largeImageFileId} mediaClientConfig={mediaClientConfig} resizeMode="crop" />
|
|
267
|
+
),
|
|
268
|
+
},
|
|
320
269
|
];
|
|
321
270
|
|
|
322
271
|
export const fitCards = [
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
),
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
title: 'Large',
|
|
345
|
-
content: (
|
|
346
|
-
<Card
|
|
347
|
-
identifier={largeImageFileId}
|
|
348
|
-
mediaClientConfig={mediaClientConfig}
|
|
349
|
-
resizeMode="fit"
|
|
350
|
-
/>
|
|
351
|
-
),
|
|
352
|
-
},
|
|
272
|
+
{
|
|
273
|
+
title: 'Small',
|
|
274
|
+
content: (
|
|
275
|
+
<Card identifier={smallImageFileId} mediaClientConfig={mediaClientConfig} resizeMode="fit" />
|
|
276
|
+
),
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
title: 'Wide',
|
|
280
|
+
content: (
|
|
281
|
+
<Card identifier={wideImageFileId} mediaClientConfig={mediaClientConfig} resizeMode="fit" />
|
|
282
|
+
),
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
title: 'Large',
|
|
286
|
+
content: (
|
|
287
|
+
<Card identifier={largeImageFileId} mediaClientConfig={mediaClientConfig} resizeMode="fit" />
|
|
288
|
+
),
|
|
289
|
+
},
|
|
353
290
|
];
|
|
354
291
|
|
|
355
292
|
export const fullFitCards = [
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
293
|
+
{
|
|
294
|
+
title: 'Small',
|
|
295
|
+
content: (
|
|
296
|
+
<Card
|
|
297
|
+
identifier={smallImageFileId}
|
|
298
|
+
mediaClientConfig={mediaClientConfig}
|
|
299
|
+
resizeMode="full-fit"
|
|
300
|
+
/>
|
|
301
|
+
),
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
title: 'Wide',
|
|
305
|
+
content: (
|
|
306
|
+
<Card
|
|
307
|
+
identifier={wideImageFileId}
|
|
308
|
+
mediaClientConfig={mediaClientConfig}
|
|
309
|
+
resizeMode="full-fit"
|
|
310
|
+
/>
|
|
311
|
+
),
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
title: 'Large',
|
|
315
|
+
content: (
|
|
316
|
+
<Card
|
|
317
|
+
identifier={largeImageFileId}
|
|
318
|
+
mediaClientConfig={mediaClientConfig}
|
|
319
|
+
resizeMode="full-fit"
|
|
320
|
+
/>
|
|
321
|
+
),
|
|
322
|
+
},
|
|
386
323
|
];
|
|
387
324
|
|
|
388
325
|
export const stretchyFitCards = [
|
|
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
|
-
|
|
326
|
+
{
|
|
327
|
+
title: 'Small',
|
|
328
|
+
content: (
|
|
329
|
+
<Card
|
|
330
|
+
identifier={smallImageFileId}
|
|
331
|
+
mediaClientConfig={mediaClientConfig}
|
|
332
|
+
resizeMode="stretchy-fit"
|
|
333
|
+
/>
|
|
334
|
+
),
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
title: 'Wide',
|
|
338
|
+
content: (
|
|
339
|
+
<Card
|
|
340
|
+
identifier={wideImageFileId}
|
|
341
|
+
mediaClientConfig={mediaClientConfig}
|
|
342
|
+
resizeMode="stretchy-fit"
|
|
343
|
+
/>
|
|
344
|
+
),
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
title: 'Large',
|
|
348
|
+
content: (
|
|
349
|
+
<Card
|
|
350
|
+
identifier={largeImageFileId}
|
|
351
|
+
mediaClientConfig={mediaClientConfig}
|
|
352
|
+
resizeMode="stretchy-fit"
|
|
353
|
+
/>
|
|
354
|
+
),
|
|
355
|
+
},
|
|
419
356
|
];
|