@datocms/svelte 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +33 -6
  2. package/{components → package/components}/StructuredText/StructuredText.svelte.d.ts +1 -1
  3. package/{index.d.ts → package/index.d.ts} +2 -2
  4. package/package.json +222 -70
  5. package/components/Head/__tests__/Head.test.d.ts +0 -1
  6. package/components/Head/__tests__/Head.test.js +0 -11
  7. package/components/Head/__tests__/__fixtures__/head.d.ts +0 -2
  8. package/components/Head/__tests__/__fixtures__/head.js +0 -280
  9. package/components/Head/__tests__/__snapshots__/Head.test.ts.snap +0 -221
  10. package/components/Image/__tests__/Image.svelte.test.d.ts +0 -1
  11. package/components/Image/__tests__/Image.svelte.test.js +0 -44
  12. package/components/Image/__tests__/__fixtures__/image.d.ts +0 -40
  13. package/components/Image/__tests__/__fixtures__/image.js +0 -40
  14. package/components/Image/__tests__/__snapshots__/Image.svelte.test.ts.snap +0 -903
  15. package/components/StructuredText/__tests__/StructuredText.svelte.test.d.ts +0 -1
  16. package/components/StructuredText/__tests__/StructuredText.svelte.test.js +0 -171
  17. package/components/StructuredText/__tests__/__fixtures__/Block.svelte +0 -11
  18. package/components/StructuredText/__tests__/__fixtures__/Block.svelte.d.ts +0 -19
  19. package/components/StructuredText/__tests__/__fixtures__/CustomSpan.svelte +0 -49
  20. package/components/StructuredText/__tests__/__fixtures__/CustomSpan.svelte.d.ts +0 -19
  21. package/components/StructuredText/__tests__/__fixtures__/IncreasedLevelHeading.svelte +0 -8
  22. package/components/StructuredText/__tests__/__fixtures__/IncreasedLevelHeading.svelte.d.ts +0 -19
  23. package/components/StructuredText/__tests__/__fixtures__/InlineItem.svelte +0 -8
  24. package/components/StructuredText/__tests__/__fixtures__/InlineItem.svelte.d.ts +0 -19
  25. package/components/StructuredText/__tests__/__fixtures__/ItemLink.svelte +0 -15
  26. package/components/StructuredText/__tests__/__fixtures__/ItemLink.svelte.d.ts +0 -21
  27. package/components/StructuredText/__tests__/__fixtures__/structuredText.d.ts +0 -7
  28. package/components/StructuredText/__tests__/__fixtures__/structuredText.js +0 -575
  29. package/components/StructuredText/__tests__/__fixtures__/types.d.ts +0 -27
  30. package/components/StructuredText/__tests__/__fixtures__/types.js +0 -1
  31. package/components/StructuredText/__tests__/__snapshots__/StructuredText.svelte.test.ts.snap +0 -531
  32. /package/{components → package/components}/Head/Head.svelte +0 -0
  33. /package/{components → package/components}/Head/Head.svelte.d.ts +0 -0
  34. /package/{components → package/components}/Head/README.md +0 -0
  35. /package/{components → package/components}/Image/Image.svelte +0 -0
  36. /package/{components → package/components}/Image/Image.svelte.d.ts +0 -0
  37. /package/{components → package/components}/Image/Placeholder.svelte +0 -0
  38. /package/{components → package/components}/Image/Placeholder.svelte.d.ts +0 -0
  39. /package/{components → package/components}/Image/README.md +0 -0
  40. /package/{components → package/components}/Image/Sizer.svelte +0 -0
  41. /package/{components → package/components}/Image/Sizer.svelte.d.ts +0 -0
  42. /package/{components → package/components}/Image/Source.svelte +0 -0
  43. /package/{components → package/components}/Image/Source.svelte.d.ts +0 -0
  44. /package/{components → package/components}/StructuredText/Node.svelte +0 -0
  45. /package/{components → package/components}/StructuredText/Node.svelte.d.ts +0 -0
  46. /package/{components → package/components}/StructuredText/README.md +0 -0
  47. /package/{components → package/components}/StructuredText/StructuredText.svelte +0 -0
  48. /package/{components → package/components}/StructuredText/nodes/Blockquote.svelte +0 -0
  49. /package/{components → package/components}/StructuredText/nodes/Blockquote.svelte.d.ts +0 -0
  50. /package/{components → package/components}/StructuredText/nodes/Code.svelte +0 -0
  51. /package/{components → package/components}/StructuredText/nodes/Code.svelte.d.ts +0 -0
  52. /package/{components → package/components}/StructuredText/nodes/Heading.svelte +0 -0
  53. /package/{components → package/components}/StructuredText/nodes/Heading.svelte.d.ts +0 -0
  54. /package/{components → package/components}/StructuredText/nodes/Link.svelte +0 -0
  55. /package/{components → package/components}/StructuredText/nodes/Link.svelte.d.ts +0 -0
  56. /package/{components → package/components}/StructuredText/nodes/List.svelte +0 -0
  57. /package/{components → package/components}/StructuredText/nodes/List.svelte.d.ts +0 -0
  58. /package/{components → package/components}/StructuredText/nodes/ListItem.svelte +0 -0
  59. /package/{components → package/components}/StructuredText/nodes/ListItem.svelte.d.ts +0 -0
  60. /package/{components → package/components}/StructuredText/nodes/Paragraph.svelte +0 -0
  61. /package/{components → package/components}/StructuredText/nodes/Paragraph.svelte.d.ts +0 -0
  62. /package/{components → package/components}/StructuredText/nodes/Root.svelte +0 -0
  63. /package/{components → package/components}/StructuredText/nodes/Root.svelte.d.ts +0 -0
  64. /package/{components → package/components}/StructuredText/nodes/Span.svelte +0 -0
  65. /package/{components → package/components}/StructuredText/nodes/Span.svelte.d.ts +0 -0
  66. /package/{components → package/components}/StructuredText/nodes/ThematicBreak.svelte +0 -0
  67. /package/{components → package/components}/StructuredText/nodes/ThematicBreak.svelte.d.ts +0 -0
  68. /package/{components → package/components}/StructuredText/utils/Lines.svelte +0 -0
  69. /package/{components → package/components}/StructuredText/utils/Lines.svelte.d.ts +0 -0
  70. /package/{index.js → package/index.js} +0 -0
@@ -1,280 +0,0 @@
1
- export const metaTags = [
2
- {
3
- content: 'Remix CMS - The easiest way to manage content with Remix',
4
- attributes: null,
5
- tag: 'title'
6
- },
7
- {
8
- content: null,
9
- attributes: {
10
- property: 'og:title',
11
- content: 'Remix CMS - The easiest way to manage content with Remix'
12
- },
13
- tag: 'meta'
14
- },
15
- {
16
- content: null,
17
- attributes: {
18
- name: 'twitter:title',
19
- content: 'Remix CMS - The easiest way to manage content with Remix'
20
- },
21
- tag: 'meta'
22
- },
23
- {
24
- content: null,
25
- attributes: {
26
- name: 'description',
27
- content: 'Remix makes building scalable and fast React apps simple, pair it with a CMS that shares the same intuitiveness. Start a new Remix + Dato project now.'
28
- },
29
- tag: 'meta'
30
- },
31
- {
32
- content: null,
33
- attributes: {
34
- property: 'og:description',
35
- content: 'Remix makes building scalable and fast React apps simple, pair it with a CMS that shares the same intuitiveness. Start a new Remix + Dato project now.'
36
- },
37
- tag: 'meta'
38
- },
39
- {
40
- content: null,
41
- attributes: {
42
- name: 'twitter:description',
43
- content: 'Remix makes building scalable and fast React apps simple, pair it with a CMS that shares the same intuitiveness. Start a new Remix + Dato project now.'
44
- },
45
- tag: 'meta'
46
- },
47
- {
48
- content: null,
49
- attributes: {
50
- property: 'og:image',
51
- content: 'https://www.datocms-assets.com/205/1642515293-full-logo.svg?fit=max&fm=jpg&w=1000'
52
- },
53
- tag: 'meta'
54
- },
55
- {
56
- content: null,
57
- attributes: {
58
- property: 'og:image:width',
59
- content: '746'
60
- },
61
- tag: 'meta'
62
- },
63
- {
64
- content: null,
65
- attributes: {
66
- property: 'og:image:height',
67
- content: '186'
68
- },
69
- tag: 'meta'
70
- },
71
- {
72
- content: null,
73
- attributes: {
74
- name: 'twitter:image',
75
- content: 'https://www.datocms-assets.com/205/1642515293-full-logo.svg?fit=max&fm=jpg&w=1000'
76
- },
77
- tag: 'meta'
78
- },
79
- {
80
- content: null,
81
- attributes: {
82
- property: 'og:locale',
83
- content: 'en'
84
- },
85
- tag: 'meta'
86
- },
87
- {
88
- content: null,
89
- attributes: {
90
- property: 'og:type',
91
- content: 'article'
92
- },
93
- tag: 'meta'
94
- },
95
- {
96
- content: null,
97
- attributes: {
98
- property: 'og:site_name',
99
- content: 'DatoCMS'
100
- },
101
- tag: 'meta'
102
- },
103
- {
104
- content: null,
105
- attributes: {
106
- property: 'article:modified_time',
107
- content: '2022-01-18T14:02:47Z'
108
- },
109
- tag: 'meta'
110
- },
111
- {
112
- content: null,
113
- attributes: {
114
- name: 'twitter:card',
115
- content: 'summary_large_image'
116
- },
117
- tag: 'meta'
118
- },
119
- {
120
- content: null,
121
- attributes: {
122
- name: 'twitter:site',
123
- content: '@datocms'
124
- },
125
- tag: 'meta'
126
- },
127
- {
128
- attributes: {
129
- sizes: '16x16',
130
- type: 'image/png',
131
- rel: 'icon',
132
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=16&w=16'
133
- },
134
- content: null,
135
- tag: 'link'
136
- },
137
- {
138
- attributes: {
139
- sizes: '32x32',
140
- type: 'image/png',
141
- rel: 'icon',
142
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=32&w=32'
143
- },
144
- content: null,
145
- tag: 'link'
146
- },
147
- {
148
- attributes: {
149
- sizes: '96x96',
150
- type: 'image/png',
151
- rel: 'icon',
152
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=96&w=96'
153
- },
154
- content: null,
155
- tag: 'link'
156
- },
157
- {
158
- attributes: {
159
- sizes: '192x192',
160
- type: 'image/png',
161
- rel: 'icon',
162
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=192&w=192'
163
- },
164
- content: null,
165
- tag: 'link'
166
- },
167
- {
168
- attributes: {
169
- sizes: '57x57',
170
- rel: 'apple-touch-icon',
171
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=57&w=57'
172
- },
173
- content: null,
174
- tag: 'link'
175
- },
176
- {
177
- attributes: {
178
- sizes: '60x60',
179
- rel: 'apple-touch-icon',
180
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=60&w=60'
181
- },
182
- content: null,
183
- tag: 'link'
184
- },
185
- {
186
- attributes: {
187
- sizes: '72x72',
188
- rel: 'apple-touch-icon',
189
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=72&w=72'
190
- },
191
- content: null,
192
- tag: 'link'
193
- },
194
- {
195
- attributes: {
196
- sizes: '76x76',
197
- rel: 'apple-touch-icon',
198
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=76&w=76'
199
- },
200
- content: null,
201
- tag: 'link'
202
- },
203
- {
204
- attributes: {
205
- sizes: '114x114',
206
- rel: 'apple-touch-icon',
207
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=114&w=114'
208
- },
209
- content: null,
210
- tag: 'link'
211
- },
212
- {
213
- attributes: {
214
- sizes: '120x120',
215
- rel: 'apple-touch-icon',
216
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=120&w=120'
217
- },
218
- content: null,
219
- tag: 'link'
220
- },
221
- {
222
- attributes: {
223
- sizes: '144x144',
224
- rel: 'apple-touch-icon',
225
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=144&w=144'
226
- },
227
- content: null,
228
- tag: 'link'
229
- },
230
- {
231
- attributes: {
232
- sizes: '152x152',
233
- rel: 'apple-touch-icon',
234
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=152&w=152'
235
- },
236
- content: null,
237
- tag: 'link'
238
- },
239
- {
240
- attributes: {
241
- sizes: '180x180',
242
- rel: 'apple-touch-icon',
243
- href: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=180&w=180'
244
- },
245
- content: null,
246
- tag: 'link'
247
- },
248
- {
249
- attributes: {
250
- name: 'msapplication-square70x70logo',
251
- content: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=70&w=70'
252
- },
253
- content: null,
254
- tag: 'meta'
255
- },
256
- {
257
- attributes: {
258
- name: 'msapplication-square150x150logo',
259
- content: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=150&w=150'
260
- },
261
- content: null,
262
- tag: 'meta'
263
- },
264
- {
265
- attributes: {
266
- name: 'msapplication-square310x310logo',
267
- content: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=310&w=310'
268
- },
269
- content: null,
270
- tag: 'meta'
271
- },
272
- {
273
- attributes: {
274
- name: 'msapplication-square310x150logo',
275
- content: 'https://www.datocms-assets.com/205/1525789775-dato.png?h=150&w=310'
276
- },
277
- content: null,
278
- tag: 'meta'
279
- }
280
- ];
@@ -1,221 +0,0 @@
1
- // Vitest Snapshot v1
2
-
3
- exports[`Head > renders meta tags 1`] = `
4
- <head>
5
- <title>
6
- Remix CMS - The easiest way to manage content with Remix
7
- </title>
8
-
9
-
10
- <meta
11
- content="Remix CMS - The easiest way to manage content with Remix"
12
- property="og:title"
13
- />
14
-
15
-
16
- <meta
17
- content="Remix CMS - The easiest way to manage content with Remix"
18
- name="twitter:title"
19
- />
20
-
21
-
22
- <meta
23
- content="Remix makes building scalable and fast React apps simple, pair it with a CMS that shares the same intuitiveness. Start a new Remix + Dato project now."
24
- name="description"
25
- />
26
-
27
-
28
- <meta
29
- content="Remix makes building scalable and fast React apps simple, pair it with a CMS that shares the same intuitiveness. Start a new Remix + Dato project now."
30
- property="og:description"
31
- />
32
-
33
-
34
- <meta
35
- content="Remix makes building scalable and fast React apps simple, pair it with a CMS that shares the same intuitiveness. Start a new Remix + Dato project now."
36
- name="twitter:description"
37
- />
38
-
39
-
40
- <meta
41
- content="https://www.datocms-assets.com/205/1642515293-full-logo.svg?fit=max&fm=jpg&w=1000"
42
- property="og:image"
43
- />
44
-
45
-
46
- <meta
47
- content="746"
48
- property="og:image:width"
49
- />
50
-
51
-
52
- <meta
53
- content="186"
54
- property="og:image:height"
55
- />
56
-
57
-
58
- <meta
59
- content="https://www.datocms-assets.com/205/1642515293-full-logo.svg?fit=max&fm=jpg&w=1000"
60
- name="twitter:image"
61
- />
62
-
63
-
64
- <meta
65
- content="en"
66
- property="og:locale"
67
- />
68
-
69
-
70
- <meta
71
- content="article"
72
- property="og:type"
73
- />
74
-
75
-
76
- <meta
77
- content="DatoCMS"
78
- property="og:site_name"
79
- />
80
-
81
-
82
- <meta
83
- content="2022-01-18T14:02:47Z"
84
- property="article:modified_time"
85
- />
86
-
87
-
88
- <meta
89
- content="summary_large_image"
90
- name="twitter:card"
91
- />
92
-
93
-
94
- <meta
95
- content="@datocms"
96
- name="twitter:site"
97
- />
98
-
99
-
100
- <link
101
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=16&w=16"
102
- rel="icon"
103
- sizes="16x16"
104
- type="image/png"
105
- />
106
-
107
-
108
- <link
109
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=32&w=32"
110
- rel="icon"
111
- sizes="32x32"
112
- type="image/png"
113
- />
114
-
115
-
116
- <link
117
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=96&w=96"
118
- rel="icon"
119
- sizes="96x96"
120
- type="image/png"
121
- />
122
-
123
-
124
- <link
125
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=192&w=192"
126
- rel="icon"
127
- sizes="192x192"
128
- type="image/png"
129
- />
130
-
131
-
132
- <link
133
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=57&w=57"
134
- rel="apple-touch-icon"
135
- sizes="57x57"
136
- />
137
-
138
-
139
- <link
140
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=60&w=60"
141
- rel="apple-touch-icon"
142
- sizes="60x60"
143
- />
144
-
145
-
146
- <link
147
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=72&w=72"
148
- rel="apple-touch-icon"
149
- sizes="72x72"
150
- />
151
-
152
-
153
- <link
154
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=76&w=76"
155
- rel="apple-touch-icon"
156
- sizes="76x76"
157
- />
158
-
159
-
160
- <link
161
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=114&w=114"
162
- rel="apple-touch-icon"
163
- sizes="114x114"
164
- />
165
-
166
-
167
- <link
168
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=120&w=120"
169
- rel="apple-touch-icon"
170
- sizes="120x120"
171
- />
172
-
173
-
174
- <link
175
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=144&w=144"
176
- rel="apple-touch-icon"
177
- sizes="144x144"
178
- />
179
-
180
-
181
- <link
182
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=152&w=152"
183
- rel="apple-touch-icon"
184
- sizes="152x152"
185
- />
186
-
187
-
188
- <link
189
- href="https://www.datocms-assets.com/205/1525789775-dato.png?h=180&w=180"
190
- rel="apple-touch-icon"
191
- sizes="180x180"
192
- />
193
-
194
-
195
- <meta
196
- content="https://www.datocms-assets.com/205/1525789775-dato.png?h=70&w=70"
197
- name="msapplication-square70x70logo"
198
- />
199
-
200
-
201
- <meta
202
- content="https://www.datocms-assets.com/205/1525789775-dato.png?h=150&w=150"
203
- name="msapplication-square150x150logo"
204
- />
205
-
206
-
207
- <meta
208
- content="https://www.datocms-assets.com/205/1525789775-dato.png?h=310&w=310"
209
- name="msapplication-square310x310logo"
210
- />
211
-
212
-
213
- <meta
214
- content="https://www.datocms-assets.com/205/1525789775-dato.png?h=150&w=310"
215
- name="msapplication-square310x150logo"
216
- />
217
-
218
-
219
-
220
- </head>
221
- `;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,44 +0,0 @@
1
- import { describe, expect, it, vi } from 'vitest';
2
- import '@testing-library/jest-dom';
3
- import { act, fireEvent, render, screen } from '@testing-library/svelte';
4
- import { mockIntersectionObserver } from 'jsdom-testing-mocks';
5
- import { completeData, minimalData, minimalDataWithRelativeUrl } from './__fixtures__/image';
6
- import { Image } from '../../..';
7
- const io = mockIntersectionObserver();
8
- describe('Image', () => {
9
- ['intrinsic', 'fixed', 'responsive', 'fill'].forEach((layout) => {
10
- Object.entries({ completeData, minimalData, minimalDataWithRelativeUrl }).forEach(([name, data]) => {
11
- describe(`layout=${layout}`, () => {
12
- describe(`data=${name}`, () => {
13
- describe("when the component doesn't intersect the viewport", () => {
14
- it('only renders the placeholder elements ', () => {
15
- const onLoad = vi.fn();
16
- const { container, component } = render(Image, { props: { data, layout } });
17
- component.$on('load', onLoad);
18
- const picture = screen.queryByTestId('picture');
19
- expect(picture).not.toBeInTheDocument();
20
- expect(onLoad).not.toHaveBeenCalled();
21
- expect(container).toMatchSnapshot();
22
- });
23
- });
24
- describe('when the component intersects the viewport', () => {
25
- it('shows the image ', async () => {
26
- const onLoad = vi.fn();
27
- const { container, component } = render(Image, { props: { data, layout } });
28
- component.$on('load', onLoad);
29
- await act(async () => {
30
- io.enterNode(await screen.findByTestId('image'));
31
- });
32
- const picture = screen.getByTestId('picture');
33
- const img = screen.getByTestId('img');
34
- fireEvent.load(img);
35
- expect(picture).toBeInTheDocument();
36
- expect(onLoad).toHaveBeenCalled();
37
- expect(container).toMatchSnapshot();
38
- });
39
- });
40
- });
41
- });
42
- });
43
- });
44
- });
@@ -1,40 +0,0 @@
1
- export declare const completeData: {
2
- alt: string;
3
- aspectRatio: number;
4
- base64: string;
5
- height: number;
6
- sizes: string;
7
- src: string;
8
- srcSet: string;
9
- title: string;
10
- width: number;
11
- };
12
- export declare const minimalData: {
13
- base64: string;
14
- height: number;
15
- src: string;
16
- width: number;
17
- };
18
- export declare const minimalDataWithRelativeUrl: {
19
- base64: string;
20
- height: number;
21
- src: string;
22
- width: number;
23
- };
24
- export declare const completeData2: {
25
- alt: null;
26
- base64: string;
27
- aspectRatio: number;
28
- height: number;
29
- sizes: string;
30
- src: string;
31
- srcSet: string;
32
- title: null;
33
- width: number;
34
- };
35
- export declare const minimalData2: {
36
- base64: string;
37
- height: number;
38
- src: string;
39
- width: number;
40
- };
@@ -1,40 +0,0 @@
1
- export const completeData = {
2
- alt: 'DatoCMS swag',
3
- aspectRatio: 1.7777777777777777,
4
- base64: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHBwgHBgoICAgLFQoLDhgQDg0NDh0eHREYIx8lJCIrHB0dLSs7GikyKSEuKjUlKDk1MjIyHyo4PTc+PDcxPjUBCgsLDg0OHBAQHDsoIig7Ozs7Ozs7OzsvOzs7Ozs7Ozs7Lzs7Ozs7Ozs7OzsvOzs7NTsvLy87NTU1Ly8vLzsvL//AABEIAA0AGAMBIgACEQEDEQH/xAAYAAACAwAAAAAAAAAAAAAAAAAGBwABBP/EACEQAAEEAAYDAAAAAAAAAAAAAAEAAgMEBQYHESEiFWFx/8QAFQEBAQAAAAAAAAAAAAAAAAAAAwL/xAAZEQADAAMAAAAAAAAAAAAAAAAAAQIRITH/2gAMAwEAAhEDEQA/AFxLgDWTsAd1J5TGy7hEYqNAaNgECX7sjLMQAHJTEy1Zcarfia4lJMauAxqBhLY6ZlaOzDurWvUOd3jZPfCiEh4xs//Z',
5
- height: 421,
6
- sizes: '(max-width: 750px) 100vw, 750px',
7
- src: 'https://www.datocms-assets.com/205/image.png?ar=16%3A9&fit=crop&w=750',
8
- srcSet: 'https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=0.25&fit=crop&w=750 187w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=0.5&fit=crop&w=750 375w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=0.75&fit=crop&w=750 562w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=1&fit=crop&w=750 750w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=1.5&fit=crop&w=750 1125w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=2&fit=crop&w=750 1500w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=3&fit=crop&w=750 2250w,↵https://www.datocms-assets.com/205/image.png?ar=16%3A9&dpr=4&fit=crop&w=750 3000w',
9
- title: 'These are awesome, we know that.',
10
- width: 750
11
- };
12
- export const minimalData = {
13
- base64: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHBwgHBgoICAgLFQoLDhgQDg0NDh0eHREYIx8lJCIrHB0dLSs7GikyKSEuKjUlKDk1MjIyHyo4PTc+PDcxPjUBCgsLDg0OHBAQHDsoIig7Ozs7Ozs7OzsvOzs7Ozs7Ozs7Lzs7Ozs7Ozs7OzsvOzs7NTsvLy87NTU1Ly8vLzsvL//AABEIAA0AGAMBIgACEQEDEQH/xAAYAAACAwAAAAAAAAAAAAAAAAAGBwABBP/EACEQAAEEAAYDAAAAAAAAAAAAAAEAAgMEBQYHESEiFWFx/8QAFQEBAQAAAAAAAAAAAAAAAAAAAwL/xAAZEQADAAMAAAAAAAAAAAAAAAAAAQIRITH/2gAMAwEAAhEDEQA/AFxLgDWTsAd1J5TGy7hEYqNAaNgECX7sjLMQAHJTEy1Zcarfia4lJMauAxqBhLY6ZlaOzDurWvUOd3jZPfCiEh4xs//Z',
14
- height: 421,
15
- src: 'https://www.datocms-assets.com/205/image.png?ar=16%3A9&fit=crop&w=750',
16
- width: 750
17
- };
18
- export const minimalDataWithRelativeUrl = {
19
- base64: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHBwgHBgoICAgLFQoLDhgQDg0NDh0eHREYIx8lJCIrHB0dLSs7GikyKSEuKjUlKDk1MjIyHyo4PTc+PDcxPjUBCgsLDg0OHBAQHDsoIig7Ozs7Ozs7OzsvOzs7Ozs7Ozs7Lzs7Ozs7Ozs7OzsvOzs7NTsvLy87NTU1Ly8vLzsvL//AABEIAA0AGAMBIgACEQEDEQH/xAAYAAACAwAAAAAAAAAAAAAAAAAGBwABBP/EACEQAAEEAAYDAAAAAAAAAAAAAAEAAgMEBQYHESEiFWFx/8QAFQEBAQAAAAAAAAAAAAAAAAAAAwL/xAAZEQADAAMAAAAAAAAAAAAAAAAAAQIRITH/2gAMAwEAAhEDEQA/AFxLgDWTsAd1J5TGy7hEYqNAaNgECX7sjLMQAHJTEy1Zcarfia4lJMauAxqBhLY6ZlaOzDurWvUOd3jZPfCiEh4xs//Z',
20
- height: 421,
21
- src: '/205/image.png?ar=16%3A9&fit=crop&w=750',
22
- width: 750
23
- };
24
- export const completeData2 = {
25
- alt: null,
26
- base64: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHBwgHBgoIFAgLChEXDg0VDg0NGRUVDREVFxMZHRYVFiEaHysjGh0oHRUWJDUlKC0vMjIyHSI4PTcwPCsxMi8BCgsLDg0OFRAQHC8cIigvLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vL//AABEIABAAGAMBIgACEQEDEQH/xAAYAAACAwAAAAAAAAAAAAAAAAAABQEDBv/EAB0QAAEEAgMAAAAAAAAAAAAAAAQAAQIDETEFEhP/xAAVAQEBAAAAAAAAAAAAAAAAAAACAf/EABoRAAICAwAAAAAAAAAAAAAAAAABAgMSEzH/2gAMAwEAAhEDEQA/AN2QdCbbVNRUYvtJOXukFX2yo4Ilz3zlVzZFTHrHt17WMhBA3lDKEc5C1Vn/2Q==',
27
- aspectRatio: 1.5,
28
- height: 3456,
29
- sizes: '(max-width: 5184px) 100vw, 5184px',
30
- src: 'https://www.datocms-assets.com/23796/1612503468-jairph-ypl0a8v9qgo-unsplash.jpg',
31
- srcSet: 'https://www.datocms-assets.com/23796/1612503468-jairph-ypl0a8v9qgo-unsplash.jpg?dpr=0.25 1296w,https://www.datocms-assets.com/23796/1612503468-jairph-ypl0a8v9qgo-unsplash.jpg?dpr=0.5 2592w,https://www.datocms-assets.com/23796/1612503468-jairph-ypl0a8v9qgo-unsplash.jpg?dpr=0.75 3888w,https://www.datocms-assets.com/23796/1612503468-jairph-ypl0a8v9qgo-unsplash.jpg 5184w',
32
- title: null,
33
- width: 5184
34
- };
35
- export const minimalData2 = {
36
- base64: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHBwgHBgoICBELERULDg8VDg0NDxUOFhEPFxgrGRYfFiEaHysjJh0oKRcWJDUxKC0vMjIyGSI4PTcwPCsxMi8BCgsLDg0OHBAQHDslIig7Ozs7NTs7Ly81Lzw7Ozs7Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy81Ly8vLy8vLy8vL//AABEIABgAGAMBIgACEQEDEQH/xAAaAAACAgMAAAAAAAAAAAAAAAAABQEHAwQG/8QAHxAAAgEEAgMAAAAAAAAAAAAAAAEDAgQFEVFxEiFB/8QAFQEBAQAAAAAAAAAAAAAAAAAAAwT/xAAbEQEAAgMBAQAAAAAAAAAAAAABAAIREiETA//aAAwDAQACEQMRAD8Ap1LdQ/sIW4kJKqfCVHT41JwroNztH4kUZdOOjtgbGfibjTXxgKNoCA8ii79NMe4m43Et8EAM1G8mtdr8xJmv0pVokAH1JB6WXM//2Q==',
37
- height: 1994,
38
- src: 'https://www.datocms-assets.com/23796/1583844698-gift-habeshaw-pgxxjrtfnjq-unsplash-edited.png',
39
- width: 1994
40
- };