@slicemachine/adapter-next 0.3.15-dev-next-release.8 → 0.3.15-dev-next-release.10

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 (30) hide show
  1. package/dist/CustomerLogos/screenshot-default.png +0 -0
  2. package/dist/Hero/screenshot-default.png +0 -0
  3. package/dist/Hero/screenshot-imageRight.png +0 -0
  4. package/dist/hooks/sliceTemplateLibrary-read.cjs +5 -4
  5. package/dist/hooks/sliceTemplateLibrary-read.cjs.map +1 -1
  6. package/dist/hooks/sliceTemplateLibrary-read.js +5 -4
  7. package/dist/hooks/sliceTemplateLibrary-read.js.map +1 -1
  8. package/dist/sliceTemplates/AlternateGrid/index.cjs +433 -411
  9. package/dist/sliceTemplates/AlternateGrid/index.cjs.map +1 -1
  10. package/dist/sliceTemplates/AlternateGrid/index.js +433 -411
  11. package/dist/sliceTemplates/AlternateGrid/index.js.map +1 -1
  12. package/dist/sliceTemplates/CallToAction/index.cjs +2 -0
  13. package/dist/sliceTemplates/CallToAction/index.cjs.map +1 -1
  14. package/dist/sliceTemplates/CallToAction/index.js +2 -0
  15. package/dist/sliceTemplates/CallToAction/index.js.map +1 -1
  16. package/dist/sliceTemplates/CustomerLogos/index.cjs +258 -257
  17. package/dist/sliceTemplates/CustomerLogos/index.cjs.map +1 -1
  18. package/dist/sliceTemplates/CustomerLogos/index.js +258 -257
  19. package/dist/sliceTemplates/CustomerLogos/index.js.map +1 -1
  20. package/dist/sliceTemplates/Hero/index.cjs +812 -0
  21. package/dist/sliceTemplates/Hero/index.cjs.map +1 -0
  22. package/dist/sliceTemplates/Hero/index.d.ts +9 -0
  23. package/dist/sliceTemplates/Hero/index.js +812 -0
  24. package/dist/sliceTemplates/Hero/index.js.map +1 -0
  25. package/package.json +3 -3
  26. package/src/hooks/sliceTemplateLibrary-read.ts +2 -1
  27. package/src/sliceTemplates/AlternateGrid/index.ts +433 -411
  28. package/src/sliceTemplates/CallToAction/index.ts +2 -0
  29. package/src/sliceTemplates/CustomerLogos/index.ts +258 -257
  30. package/src/sliceTemplates/Hero/index.ts +822 -0
@@ -0,0 +1,822 @@
1
+ import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
+ import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
3
+
4
+ import { pascalCase } from "../../lib/pascalCase";
5
+
6
+ import { stripIndent } from "common-tags";
7
+
8
+ export const mocks: SharedSliceContent[] = [
9
+ {
10
+ __TYPE__: "SharedSliceContent",
11
+ variation: "default",
12
+ primary: {
13
+ title: {
14
+ __TYPE__: "StructuredTextContent",
15
+ value: [
16
+ {
17
+ type: "heading2",
18
+ content: {
19
+ text: "Build a website that keeps getting better",
20
+ spans: [],
21
+ },
22
+ direction: "ltr",
23
+ },
24
+ ],
25
+ },
26
+ eyebrowHeadline: {
27
+ __TYPE__: "FieldContent",
28
+ type: "Text",
29
+ value: "Hero",
30
+ },
31
+ description: {
32
+ __TYPE__: "StructuredTextContent",
33
+ value: [
34
+ {
35
+ type: "paragraph",
36
+ content: {
37
+ text: "Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases",
38
+ spans: [],
39
+ },
40
+ direction: "ltr",
41
+ },
42
+ ],
43
+ },
44
+ image: {
45
+ url: "https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85",
46
+ origin: {
47
+ id: "h5yMpgOI5nI",
48
+ url: "https://images.unsplash.com/photo-1584559582128-b8be739912e1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHw5fHxmcnVpdHxlbnwwfHx8fDE2OTQ0NDI5NzZ8MA&ixlib=rb-4.0.3&q=85",
49
+ width: 3710,
50
+ height: 3710,
51
+ },
52
+ width: 3710,
53
+ height: 3710,
54
+ edit: {
55
+ background: "transparent",
56
+ zoom: 1,
57
+ crop: {
58
+ x: 0,
59
+ y: 0,
60
+ },
61
+ },
62
+ credits: null,
63
+ alt: "Image Content",
64
+ __TYPE__: "ImageContent",
65
+ thumbnails: {},
66
+ },
67
+ callToActionLabel: {
68
+ __TYPE__: "FieldContent",
69
+ type: "Text",
70
+ value: "Call to Action",
71
+ },
72
+ callToActionLink: {
73
+ __TYPE__: "LinkContent",
74
+ value: {
75
+ __TYPE__: "ExternalLink",
76
+ url: "https://prismic.io",
77
+ target: "",
78
+ },
79
+ },
80
+ },
81
+ items: [],
82
+ },
83
+ {
84
+ __TYPE__: "SharedSliceContent",
85
+ variation: "imageRight",
86
+ primary: {
87
+ eyebrowHeadline: {
88
+ __TYPE__: "FieldContent",
89
+ type: "Text",
90
+ value: "Image Right",
91
+ },
92
+ title: {
93
+ __TYPE__: "StructuredTextContent",
94
+ value: [
95
+ {
96
+ type: "heading1",
97
+ content: {
98
+ text: "Build a website",
99
+ spans: [],
100
+ },
101
+ direction: "ltr",
102
+ },
103
+ ],
104
+ },
105
+ description: {
106
+ __TYPE__: "StructuredTextContent",
107
+ value: [
108
+ {
109
+ type: "paragraph",
110
+ content: {
111
+ text: "Learn how prismic.io helps thousands of businesses around the world with some of our customers’ use-cases, including Image Right slice variations!",
112
+ spans: [],
113
+ },
114
+ direction: "ltr",
115
+ },
116
+ {
117
+ type: "paragraph",
118
+ content: {
119
+ text: "\nBy the way: this RichText field supports multi-paragraph!",
120
+ spans: [],
121
+ },
122
+ direction: "ltr",
123
+ },
124
+ ],
125
+ },
126
+ image: {
127
+ origin: {
128
+ id: "euqiHwS38Rw",
129
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85",
130
+ width: 2500,
131
+ height: 2500,
132
+ },
133
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjk0NDQyOTc2fDA&ixlib=rb-4.0.3&q=85",
134
+ width: 2500,
135
+ height: 2500,
136
+ edit: {
137
+ background: "transparent",
138
+ zoom: 1,
139
+ crop: {
140
+ x: 0,
141
+ y: 0,
142
+ },
143
+ },
144
+ credits: null,
145
+ alt: "Image Content",
146
+ __TYPE__: "ImageContent",
147
+ thumbnails: {},
148
+ },
149
+ callToActionLabel: {
150
+ __TYPE__: "FieldContent",
151
+ type: "Text",
152
+ value: "Call to Action",
153
+ },
154
+ callToActionLink: {
155
+ __TYPE__: "LinkContent",
156
+ value: {
157
+ __TYPE__: "ExternalLink",
158
+ url: "https://prismic.io",
159
+ target: "",
160
+ },
161
+ },
162
+ },
163
+ items: [
164
+ {
165
+ __TYPE__: "GroupItemContent",
166
+ value: [],
167
+ },
168
+ ],
169
+ },
170
+ ];
171
+
172
+ export const createComponentContents = (
173
+ model: SharedSlice,
174
+ isTypeScriptProject: boolean,
175
+ ): string => {
176
+ const pascalName = pascalCase(model.name);
177
+
178
+ if (isTypeScriptProject) {
179
+ return stripIndent`
180
+ import { Content, isFilled } from "@prismicio/client";
181
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
182
+ import { SliceComponentProps, PrismicRichText } from "@prismicio/react";
183
+
184
+ /**
185
+ * Props for \`${pascalName}\`.
186
+ */
187
+ export type ${pascalName}Props = SliceComponentProps<Content.${pascalName}Slice>;
188
+
189
+ /**
190
+ * Component for "${model.name}" Slices.
191
+ */
192
+ const ${pascalName} = ({ slice }: ${pascalName}Props): JSX.Element => {
193
+ return (
194
+ <section
195
+ data-slice-type={slice.slice_type}
196
+ data-slice-variation={slice.variation}
197
+ className="es-bounded es-fullpage-hero"
198
+ >
199
+ <div
200
+ className={\`
201
+ es-bounded__content
202
+ es-fullpage-hero__content
203
+ \${slice.variation === "imageRight"
204
+ ? "es-fullpage-hero__image--right"
205
+ : "es-fullpage-hero__image--left"
206
+ }
207
+ \`}
208
+ >
209
+ <div>
210
+ {isFilled.image(slice.primary.image) && (
211
+ <PrismicNextImage
212
+ field={slice.primary.image}
213
+ className="es-fullpage-hero__image"
214
+ />
215
+ )}
216
+ </div>
217
+
218
+ <div className="es-fullpage-hero__content-right">
219
+ <div className="es-fullpage-hero__content__intro">
220
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
221
+ <p className="es-fullpage-hero__content__intro__eyebrow">
222
+ {slice.primary.eyebrowHeadline}
223
+ </p>
224
+ )}
225
+ {isFilled.richText(slice.primary.title) && (
226
+ <div className="es-fullpage-hero__content__intro__headline">
227
+ <PrismicRichText field={slice.primary.title} />
228
+ </div>
229
+ )}
230
+ {isFilled.richText(slice.primary.description) && (
231
+ <div className="es-fullpage-hero__content__intro__description">
232
+ <PrismicRichText field={slice.primary.description} />
233
+ </div>
234
+ )}
235
+ {isFilled.link(slice.primary.callToActionLink) && (
236
+ <PrismicNextLink
237
+ className="es-call-to-action__link"
238
+ field={slice.primary.callToActionLink}
239
+ >
240
+ {slice.primary.callToActionLabel || "Learn more…"}
241
+ </PrismicNextLink>
242
+ )}
243
+ </div>
244
+ </div>
245
+ </div>
246
+ <style>
247
+ {\`
248
+ .es-bounded {
249
+ margin: 0px;
250
+ min-width: 0px;
251
+ position: relative;
252
+ }
253
+
254
+ .es-bounded-content {
255
+ min-width: 0px;
256
+ max-width: 90%;
257
+ margin: 0px auto;
258
+ }
259
+
260
+ .es-fullpage-hero {
261
+ font-family: system-ui, sans-serif;
262
+ background-color: #fff;
263
+ color: #333;
264
+ }
265
+
266
+ .es-fullpage-hero__image {
267
+ max-width: 100%;
268
+ height: auto;
269
+ align-self: center;
270
+ }
271
+
272
+ .es-fullpage-hero__image--left > div:first-child {
273
+ order: 1;
274
+ }
275
+
276
+ .es-fullpage-hero__image--left > div:nth-child(2) {
277
+ order: 2;
278
+ }
279
+
280
+ .es-fullpage-hero__image--right > div:first-child {
281
+ order: 2;
282
+ }
283
+
284
+ .es-fullpage-hero__image--right > div:nth-child(2) {
285
+ order: 1;
286
+ }
287
+
288
+ .es-fullpage-hero__content {
289
+ display: flex;
290
+ flex-direction: column;
291
+ gap: 2rem;
292
+ }
293
+
294
+ .es-fullpage-hero__content-right {
295
+ display: flex;
296
+ flex-direction: column;
297
+ justify-content: space-around;
298
+ padding: 1.5rem;
299
+ }
300
+
301
+ @media (min-width: 1080px) {
302
+ .es-fullpage-hero__content {
303
+ flex-direction: row;
304
+ }
305
+
306
+ .es-fullpage-hero__content > div {
307
+ width: 50%;
308
+ }
309
+ }
310
+
311
+ .es-fullpage-hero__content-right__intro {
312
+ margin-top: -2rem;
313
+ display: grid;
314
+ gap: 0.5rem;
315
+ }
316
+
317
+ .es-fullpage-hero__content__intro {
318
+ display: grid;
319
+ gap: 1rem;
320
+ }
321
+
322
+ .es-fullpage-hero__content__intro__eyebrow {
323
+ color: #47C1AF;
324
+ font-size: 1.15rem;
325
+ font-weight: 500;
326
+ margin: 0;
327
+ }
328
+
329
+ .es-fullpage-hero__content__intro__headline {
330
+ font-size: 1.625rem;
331
+ font-weight: 700;
332
+ }
333
+
334
+ .es-fullpage-hero__content__intro__headline > * {
335
+ margin: 0;
336
+ }
337
+
338
+ @media (min-width: 640px) {
339
+ .es-fullpage-hero__content__intro__headline {
340
+ font-size: 2rem;
341
+ }
342
+ }
343
+
344
+ @media (min-width: 1024px) {
345
+ .es-fullpage-hero__content__intro__headline {
346
+ font-size: 2.5rem;
347
+ }
348
+ }
349
+
350
+ @media (min-width: 1200px) {
351
+ .es-fullpage-hero__content__intro__headline {
352
+ font-size: 2.75rem;
353
+ }
354
+ }
355
+
356
+ .es-fullpage-hero__content__intro__description {
357
+ font-size: 1.15rem;
358
+ max-width: 38rem;
359
+ }
360
+
361
+ .es-fullpage-hero__content__intro__description > p {
362
+ margin: 0;
363
+ }
364
+
365
+ @media (min-width: 1200px) {
366
+ .es-fullpage-hero__content__intro__description {
367
+ font-size: 1.4rem;
368
+ }
369
+ }
370
+
371
+ .es-fullpage-hero__content__items {
372
+ display: grid;
373
+ gap: 2rem;
374
+ }
375
+
376
+ @media (min-width: 640px) {
377
+ .es-fullpage-hero__content__items {
378
+ grid-template-columns: repeat(2, 1fr);
379
+ }
380
+ }
381
+
382
+ .es-fullpage-hero__item {
383
+ display: grid;
384
+ align-content: start;
385
+ }
386
+
387
+ .es-fullpage-hero__item__icon {
388
+ max-height: 3rem;
389
+ }
390
+
391
+ .es-fullpage-hero__item__heading {
392
+ font-weight: 700;
393
+ font-size: 1.17rem;
394
+ margin-top: 0;
395
+ margin-bottom: .5rem;
396
+ }
397
+
398
+ .es-fullpage-hero__item__heading > * {
399
+ margin: 0;
400
+ }
401
+
402
+ .es-fullpage-hero__item__description {
403
+ font-size: 0.9rem;
404
+ }
405
+
406
+ .es-fullpage-hero__item__description > * {
407
+ margin: 0;
408
+ }
409
+
410
+ .es-call-to-action__link {
411
+ justify-self: flex-start;
412
+ border-radius: 0.25rem;
413
+ font-size: 0.875rem;
414
+ line-height: 1.3;
415
+ padding: 1rem 2.625rem;
416
+ transition: background-color 100ms linear;
417
+ background-color: #16745f;
418
+ color: #fff;
419
+ }
420
+
421
+ .es-call-to-action__link:hover {
422
+ background-color: #0d5e4c;
423
+ }
424
+ \`}
425
+ </style>
426
+ </section>
427
+ );
428
+ };
429
+
430
+ export default ${pascalName};
431
+
432
+ `;
433
+ }
434
+
435
+ return stripIndent`
436
+ import { isFilled } from "@prismicio/client";
437
+ import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
438
+ import { PrismicRichText } from "@prismicio/react";
439
+
440
+ /**
441
+ * @typedef {import("@prismicio/client").Content.${pascalName}Slice} ${pascalName}Slice
442
+ * @typedef {import("@prismicio/react").SliceComponentProps<${pascalName}Slice>} ${pascalName}Props
443
+ * @param {${pascalName}Props}
444
+ */
445
+ const ${pascalName} = ({ slice }) => {
446
+ return (
447
+ <section
448
+ data-slice-type={slice.slice_type}
449
+ data-slice-variation={slice.variation}
450
+ className="es-bounded es-fullpage-hero"
451
+ >
452
+ <div
453
+ className={\`
454
+ es-bounded__content
455
+ es-fullpage-hero__content
456
+ \${slice.variation === "imageRight"
457
+ ? "es-fullpage-hero__image--right"
458
+ : "es-fullpage-hero__image--left"
459
+ }
460
+ \`}
461
+ >
462
+ <div>
463
+ {isFilled.image(slice.primary.image) && (
464
+ <PrismicNextImage
465
+ field={slice.primary.image}
466
+ className="es-fullpage-hero__image"
467
+ />
468
+ )}
469
+ </div>
470
+
471
+ <div className="es-fullpage-hero__content-right">
472
+ <div className="es-fullpage-hero__content__intro">
473
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
474
+ <p className="es-fullpage-hero__content__intro__eyebrow">
475
+ {slice.primary.eyebrowHeadline}
476
+ </p>
477
+ )}
478
+ {isFilled.richText(slice.primary.title) && (
479
+ <div className="es-fullpage-hero__content__intro__headline">
480
+ <PrismicRichText field={slice.primary.title} />
481
+ </div>
482
+ )}
483
+ {isFilled.richText(slice.primary.description) && (
484
+ <div className="es-fullpage-hero__content__intro__description">
485
+ <PrismicRichText field={slice.primary.description} />
486
+ </div>
487
+ )}
488
+ {isFilled.link(slice.primary.callToActionLink) && (
489
+ <PrismicNextLink
490
+ className="es-call-to-action__link"
491
+ field={slice.primary.callToActionLink}
492
+ >
493
+ {slice.primary.callToActionLabel || "Learn more…"}
494
+ </PrismicNextLink>
495
+ )}
496
+ </div>
497
+ </div>
498
+ </div>
499
+ <style>
500
+ {\`
501
+ .es-bounded {
502
+ margin: 0px;
503
+ min-width: 0px;
504
+ position: relative;
505
+ }
506
+
507
+ .es-bounded-content {
508
+ min-width: 0px;
509
+ max-width: 90%;
510
+ margin: 0px auto;
511
+ }
512
+
513
+ .es-fullpage-hero {
514
+ font-family: system-ui, sans-serif;
515
+ background-color: #fff;
516
+ color: #333;
517
+ }
518
+
519
+ .es-fullpage-hero__image {
520
+ max-width: 100%;
521
+ height: auto;
522
+ align-self: center;
523
+ }
524
+
525
+ .es-fullpage-hero__image--left > div:first-child {
526
+ order: 1;
527
+ }
528
+
529
+ .es-fullpage-hero__image--left > div:nth-child(2) {
530
+ order: 2;
531
+ }
532
+
533
+ .es-fullpage-hero__image--right > div:first-child {
534
+ order: 2;
535
+ }
536
+
537
+ .es-fullpage-hero__image--right > div:nth-child(2) {
538
+ order: 1;
539
+ }
540
+
541
+ .es-fullpage-hero__content {
542
+ display: flex;
543
+ flex-direction: column;
544
+ gap: 2rem;
545
+ }
546
+
547
+ .es-fullpage-hero__content-right {
548
+ display: flex;
549
+ flex-direction: column;
550
+ justify-content: space-around;
551
+ padding: 1.5rem;
552
+ }
553
+
554
+ @media (min-width: 1080px) {
555
+ .es-fullpage-hero__content {
556
+ flex-direction: row;
557
+ }
558
+
559
+ .es-fullpage-hero__content > div {
560
+ width: 50%;
561
+ }
562
+ }
563
+
564
+ .es-fullpage-hero__content-right__intro {
565
+ margin-top: -2rem;
566
+ display: grid;
567
+ gap: 0.5rem;
568
+ }
569
+
570
+ .es-fullpage-hero__content__intro {
571
+ display: grid;
572
+ gap: 1rem;
573
+ }
574
+
575
+ .es-fullpage-hero__content__intro__eyebrow {
576
+ color: #47C1AF;
577
+ font-size: 1.15rem;
578
+ font-weight: 500;
579
+ margin: 0;
580
+ }
581
+
582
+ .es-fullpage-hero__content__intro__headline {
583
+ font-size: 1.625rem;
584
+ font-weight: 700;
585
+ }
586
+
587
+ .es-fullpage-hero__content__intro__headline > * {
588
+ margin: 0;
589
+ }
590
+
591
+ @media (min-width: 640px) {
592
+ .es-fullpage-hero__content__intro__headline {
593
+ font-size: 2rem;
594
+ }
595
+ }
596
+
597
+ @media (min-width: 1024px) {
598
+ .es-fullpage-hero__content__intro__headline {
599
+ font-size: 2.5rem;
600
+ }
601
+ }
602
+
603
+ @media (min-width: 1200px) {
604
+ .es-fullpage-hero__content__intro__headline {
605
+ font-size: 2.75rem;
606
+ }
607
+ }
608
+
609
+ .es-fullpage-hero__content__intro__description {
610
+ font-size: 1.15rem;
611
+ max-width: 38rem;
612
+ }
613
+
614
+ .es-fullpage-hero__content__intro__description > p {
615
+ margin: 0;
616
+ }
617
+
618
+ @media (min-width: 1200px) {
619
+ .es-fullpage-hero__content__intro__description {
620
+ font-size: 1.4rem;
621
+ }
622
+ }
623
+
624
+ .es-fullpage-hero__content__items {
625
+ display: grid;
626
+ gap: 2rem;
627
+ }
628
+
629
+ @media (min-width: 640px) {
630
+ .es-fullpage-hero__content__items {
631
+ grid-template-columns: repeat(2, 1fr);
632
+ }
633
+ }
634
+
635
+ .es-fullpage-hero__item {
636
+ display: grid;
637
+ align-content: start;
638
+ }
639
+
640
+ .es-fullpage-hero__item__icon {
641
+ max-height: 3rem;
642
+ }
643
+
644
+ .es-fullpage-hero__item__heading {
645
+ font-weight: 700;
646
+ font-size: 1.17rem;
647
+ margin-top: 0;
648
+ margin-bottom: .5rem;
649
+ }
650
+
651
+ .es-fullpage-hero__item__heading > * {
652
+ margin: 0;
653
+ }
654
+
655
+ .es-fullpage-hero__item__description {
656
+ font-size: 0.9rem;
657
+ }
658
+
659
+ .es-fullpage-hero__item__description > * {
660
+ margin: 0;
661
+ }
662
+
663
+ .es-call-to-action__link {
664
+ justify-self: flex-start;
665
+ border-radius: 0.25rem;
666
+ font-size: 0.875rem;
667
+ line-height: 1.3;
668
+ padding: 1rem 2.625rem;
669
+ transition: background-color 100ms linear;
670
+ background-color: #16745f;
671
+ color: #fff;
672
+ }
673
+
674
+ .es-call-to-action__link:hover {
675
+ background-color: #0d5e4c;
676
+ }
677
+ \`}
678
+ </style>
679
+ </section>
680
+ );
681
+ };
682
+
683
+ export default ${pascalName};
684
+
685
+ `;
686
+ };
687
+
688
+ export const model: SharedSlice = {
689
+ id: "hero",
690
+ type: "SharedSlice",
691
+ name: "Hero",
692
+ description: "Hero",
693
+ variations: [
694
+ {
695
+ id: "default",
696
+ name: "Default",
697
+ docURL: "...",
698
+ version: "initial",
699
+ description: "Default",
700
+ imageUrl: "",
701
+ primary: {
702
+ eyebrowHeadline: {
703
+ type: "Text",
704
+ config: {
705
+ label: "eyebrowHeadline",
706
+ placeholder: "Eyebrow",
707
+ },
708
+ },
709
+ title: {
710
+ type: "StructuredText",
711
+ config: {
712
+ label: "title",
713
+ placeholder: "",
714
+ allowTargetBlank: true,
715
+ single:
716
+ "heading1,heading2,heading3,heading4,heading5,heading6,strong,em",
717
+ },
718
+ },
719
+ description: {
720
+ type: "StructuredText",
721
+ config: {
722
+ label: "description",
723
+ placeholder: "",
724
+ allowTargetBlank: true,
725
+ multi:
726
+ "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item",
727
+ },
728
+ },
729
+ image: {
730
+ type: "Image",
731
+ config: {
732
+ label: "image",
733
+ constraint: {},
734
+ thumbnails: [],
735
+ },
736
+ },
737
+ callToActionLabel: {
738
+ type: "Text",
739
+ config: {
740
+ label: "callToActionLabel",
741
+ placeholder: "",
742
+ },
743
+ },
744
+ callToActionLink: {
745
+ type: "Link",
746
+ config: {
747
+ label: "callToActionLink",
748
+ placeholder: "",
749
+ select: null,
750
+ },
751
+ },
752
+ },
753
+ items: {},
754
+ },
755
+ {
756
+ id: "imageRight",
757
+ name: "Image Right",
758
+ docURL: "...",
759
+ version: "initial",
760
+ description: "Default",
761
+ imageUrl: "",
762
+ primary: {
763
+ eyebrowHeadline: {
764
+ type: "Text",
765
+ config: {
766
+ label: "eyebrowHeadline",
767
+ placeholder: "Eyebrow",
768
+ },
769
+ },
770
+ title: {
771
+ type: "StructuredText",
772
+ config: {
773
+ label: "title",
774
+ placeholder: "",
775
+ allowTargetBlank: true,
776
+ single:
777
+ "heading1,heading2,heading3,heading4,heading5,heading6,strong,em",
778
+ },
779
+ },
780
+ description: {
781
+ type: "StructuredText",
782
+ config: {
783
+ label: "description",
784
+ placeholder: "",
785
+ allowTargetBlank: true,
786
+ multi:
787
+ "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item",
788
+ },
789
+ },
790
+ image: {
791
+ type: "Image",
792
+ config: {
793
+ label: "image",
794
+ constraint: {},
795
+ thumbnails: [],
796
+ },
797
+ },
798
+ callToActionLabel: {
799
+ type: "Text",
800
+ config: {
801
+ label: "callToActionLabel",
802
+ placeholder: "",
803
+ },
804
+ },
805
+ callToActionLink: {
806
+ type: "Link",
807
+ config: {
808
+ label: "callToActionLink",
809
+ placeholder: "",
810
+ select: null,
811
+ },
812
+ },
813
+ },
814
+ items: {},
815
+ },
816
+ ],
817
+ };
818
+
819
+ export const screenshotPaths = {
820
+ default: "Hero/screenshot-default.png",
821
+ imageRight: "Hero/screenshot-imageRight.png",
822
+ };